[uClibc] Question for making toolchain of gcc-2.95

Jin Ho Park lampbread at yahoo.co.kr
Sat Mar 1 03:33:15 UTC 2003


Hi,

I had a problem of making toolchain for gcc-2.95.

I have found the error of the Top Makefile which Eric provides in the toolchain source.

The error is the order of other tags at 'all' Tag.

For the case of gcc-9.25 toolchain, the origin contents are as follows.

#############################################################
#
# What shall we build today?
#
#############################################################
all: $(ELF2FLT) toolchain stlport
        @echo " "
        @echo "Finally finished!"
        @echo " "

In this case, the making is first done for toolchain, (if not use elf2flt)

In my opinion, the stlport should be done first. (My host system is RedHat 7.2.)

So, I modify the Makefile as follows.

all: $(ELF2FLT) stlport toolchain

After this change, I can successfully make toolchain for PowerPC.

For gcc-3.2 and gcc-3.2.1, the same problem seems to exist in Top Makefile.

For gcc-3.2.2, the problem don't exist in Top Makefile.

I hope to help you a bit.

Best regards,

Jin Ho Park.




----- Original Message ----- 
From: "Jin Ho Park" <lampbread at yahoo.co.kr>
To: <uclibc at uclibc.org>
Sent: Friday, February 28, 2003 5:38 PM
Subject: [uClibc] Question for making toolchain of gcc-2.95


> Hi, 
> 
> I have a problem of making toolchain for powerpc.
> 
> I download gcc-2.95.tar.gz at http://www.uclibc.org/cgi-bin/cvsweb/toolchain/gcc-2.95/
> 
> I modify gcc-2.95/Makefile as follows.
> 
> TARGET_PATH=$(BASEDIR)/toolchain
> ARCH:=powerpc
> HAS_MMU:=true
> USE_UCLIBC_SNAPSHOT:=false
> 
> Then, I run 'make' command.
> 
> When making libgcc2.a of gcc-final, an error is occured.
> 
> --------------------------------------------------------------------------------------------------------
> rm -f tmplibgcc2.a
> for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _c
> mpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi
> _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb _shtab _clear_cache _trampol
> ine __main _exit _ctors _pure; \
> do \
>   echo ${name}; \
>   /home/redsky/TOOLS/uClib-PPC/gcc-2.95/build/gcc-final/gcc/xgcc -B/home/redsky/TOOLS/uClib-PPC/gcc-2.95/build/gcc-final/gcc
> / -B/home/redsky/TOOLS/uClib-PPC/gcc-2.95/toolchain/powerpc-linux/bin/ -I/home/redsky/TOOLS/uClib-PPC/gcc-2.95/toolchain/pow
> erpc-linux/include -O2  -DCROSS_COMPILE -DIN_GCC -DHAIFA    -g -O2 -I./include  -fPIC -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NE
> EDED    -mstrict-align -I. -I/home/redsky/TOOLS/uClib-PPC/gcc-2.95/build/gcc-20011006/gcc -I/home/redsky/TOOLS/uClib-PPC/gcc
> -2.95/build/gcc-20011006/gcc/config -I/home/redsky/TOOLS/uClib-PPC/gcc-2.95/build/gcc-20011006/gcc/../include -c -DL${name}
> \
>        /home/redsky/TOOLS/uClib-PPC/gcc-2.95/build/gcc-20011006/gcc/libgcc2.c -o ${name}.o; \
>   if [ $? -eq 0 ] ; then true; else exit 1; fi; \
>   powerpc-uclibc-ar rc tmplibgcc2.a ${name}.o; \
>   rm -f ${name}.o; \
> done
> _muldi3
> /home/redsky/TOOLS/uClib-PPC/gcc-2.95/build/gcc-20011006/gcc/libgcc2.c:41: stdlib.h: No such file or directory
> /home/redsky/TOOLS/uClib-PPC/gcc-2.95/build/gcc-20011006/gcc/libgcc2.c:42: unistd.h: No such file or directory
> make[4]: *** [libgcc2.a] Error 1
> make[4]: Leaving directory `/home/redsky/TOOLS/uClib-PPC/gcc-2.95/build/gcc-final/gcc'
> make[3]: *** [stmp-multilib-sub] Error 2
> make[3]: Leaving directory `/home/redsky/TOOLS/uClib-PPC/gcc-2.95/build/gcc-final/gcc'
> make[2]: *** [stmp-multilib] Error 1
> make[2]: Leaving directory `/home/redsky/TOOLS/uClib-PPC/gcc-2.95/build/gcc-final/gcc'
> make[1]: *** [all-gcc] Error 2
> make[1]: Leaving directory `/home/redsky/TOOLS/uClib-PPC/gcc-2.95/build/gcc-final'
> make: *** [/home/redsky/TOOLS/uClib-PPC/gcc-2.95/build/gcc-final/.compiled] Error 2
> 
> --------------------------------------------------------------------------------------------------------
> 
> How to solve this compile problem ? 
> 
> Please, show me the way.
> 
> Thanks advance.
> 
> Best regards,
> 
> Jin Ho Park.
> 
> 
> †Ûÿù¦¢Ì†Š¢oá¶?ý«??†Š¢Jÿj?³û‚–&??Šx%ŠËn
> X›r?‰·(?m¶Ÿÿr?¦‡??™¨¥™??-Šwèþ?
†Ûÿù¦¢Ì†Š¢oá¶?ý«??†Š¢Jÿj?


More information about the uClibc mailing list