Gentoo Archives: gentoo-osx

From: Tobias Hahn <tobhahn@×××.de>
To: gentoo-osx@l.g.o
Subject: Re: [gentoo-osx] bootstrap gcc-apple fails
Date: Tue, 04 Apr 2006 10:08:52
Message-Id: 7CC29573-3929-47BC-B0EF-A5A416A66895@web.de
In Reply to: Re: [gentoo-osx] bootstrap gcc-apple fails by Grobian
I am using the latest Xcode, which comes with build 5247. It seems  
that the bootstrap script is able to build gcc-5247, but then fails  
in stage 2 when it tries to compile gcc-5247 again using the newly  
built gcc-5247.

my env is

$ env
SHELL=/bin/bash
TERM=xterm-color
USER=portage
PATH=/bin:/sbin:/usr/bin:/usr/sbin
PWD=/Volumes/portage/usr
SHLVL=1
HOME=/Volumes/portage
_=/usr/bin/env
OLDPWD=/Volumes/portage

here some output of bootstrap saying it's in stage 2:

lipo -output libgcc_s.10.4.dylib -create libgcc_s.10.4.dylib_T*
lipo -output libgcc_s.10.5.dylib -create libgcc_s.10.5.dylib_T*
rm libgcc_s.10.5.dylib_T*
rm libgcc_s.10.4.dylib_T*
echo timestamp > stage2_build
echo stage2_build > stage_last
make stage2
if [ -d stage2 ] ; then true ; else mkdir stage2 ; fi
make -f libgcc.mk libgcc-stage-start stage=stage2
for dir in libgcc ppc64 libgcc/ppc64 static libgcc/static kext libgcc/ 
kext; do \
   if [ -d stage2/$dir ]; then :; \
   else /bin/sh /Volumes/portage/var/tmp/gcc-5247/gcc-5247/gcc/../ 
mkinstalldirs stage2/$dir; fi; \
done
mkdir stage2/libgcc
mkdir stage2/ppc64
mkdir stage2/libgcc/ppc64
mkdir stage2/static
mkdir stage2/libgcc/static
mkdir stage2/kext
mkdir stage2/libgcc/kext
for dir in libgcc ppc64 libgcc/ppc64 static libgcc/static kext libgcc/ 
kext; do \
   mv $dir/*.o stage2/$dir; \
   mv $dir/*.vis stage2/$dir; \
     mv $dir/*.map stage2/$dir; \
   test ! -f $dir/libgcc.a || mv $dir/lib* stage2/$dir; \
done
mv: rename ppc64/*.o to stage2/ppc64/*.o: No such file or directory
mv: rename ppc64/*.vis to stage2/ppc64/*.vis: No such file or directory
mv: rename ppc64/*.map to stage2/ppc64/*.map: No such file or directory
mv: rename static/*.o to stage2/static/*.o: No such file or directory
mv: rename static/*.vis to stage2/static/*.vis: No such file or  
directory
mv: rename static/*.map to stage2/static/*.map: No such file or  
directory
mv: rename libgcc/static/*.map to stage2/libgcc/static/*.map: No such  
file or directory
mv: rename kext/*.o to stage2/kext/*.o: No such file or directory
mv: rename kext/*.vis to stage2/kext/*.vis: No such file or directory
mv: rename kext/*.map to stage2/kext/*.map: No such file or directory
mv: rename libgcc/kext/*.map to stage2/libgcc/kext/*.map: No such  
file or directory
subdirs="cp build"; for dir in $subdirs; \
do \
    if [ -d stage2/$dir ] ; then true ; else mkdir stage2/$dir ; fi ; \
done
# APPLE LOCAL begin mainline 2005-10-02 4218570
rm -f stage2/libgcc.a stage2/libgcov.a stage2/libgcc_eh.a
rm -f stage2/libgcc_s*.dylib
rm -f stage2/libunwind.a stage2/libunwind*.dylib
# APPLE LOCAL end mainline 2005-10-02 4218570
mv specs stage2/specs
mv *.o s-* xgcc cpp cc1 cc1*-dummy  crt2.o  gcc-cross protoize  
unprotoize specs collect2 gcov-iov gcov gcov-dump *.[0-9][0-9].* *. 
[si] *-checksum.c libbackend.a libgcc.mk g++ g++-cross cc1plus stage2
mv: crt2.o: No such file or directory
mv: rename gcc-cross to stage2/gcc-cross: No such file or directory
mv: rename protoize to stage2/protoize: No such file or directory
mv: rename unprotoize to stage2/unprotoize: No such file or directory
mv: specs: No such file or directory
mv: rename gcov-iov to stage2/gcov-iov: No such file or directory
mv: rename *.[si] to stage2/*.[si]: No such file or directory
mv: rename g++-cross to stage2/g++-cross: No such file or directory
make[2]: [stage2-start] Error 1 (ignored)
mv build/* stage2/build
cp -p insn-flags.h insn-config.h insn-codes.h insn-output.c insn- 
recog.c insn-emit.c insn-extract.c insn-peep.c insn-attr.h insn- 
attrtab.c insn-opinit.c insn-preds.c insn-constants.h tm-preds.h tree- 
check.h insn-conditions.c min-insn-modes.c insn-modes.c insn-modes.h  
genrtl.c genrtl.h gt-*.h gtype-*.h gtype-desc.c gtyp-gen.h stage2
if [ -f as ] ; then (cd stage2 && ln -s ../as .) ; else true ; fi
if [ -f ld ] ; then (cd stage2 && ln -s ../ld .) ; else true ; fi
if [ -f collect-ld ] ; then (cd stage2 && ln -s ../collect-ld .) ;  
else true ; fi
# APPLE LOCAL begin mainline 2005-10-02 4218570
# APPLE LOCAL end mainline 2005-10-02 4218570
cp libgcc.a stage2
ranlib stage2/libgcc.a
cp libgcov.a stage2
ranlib stage2/libgcov.a
if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage2; \
    ranlib stage2/libgcc_eh.a; \
fi
cp libgcc_s*.dylib stage2
cp libunwind.a libunwind*.dylib stage2
cp: libunwind*.dylib: No such file or directory
cp: libunwind.a: No such file or directory
make[2]: [stage2-start] Error 1 (ignored)
for f in .. ; do if [ x${f} != x.. ]; then \
   cp stage2/${f} . ; \
else true; \
fi; done
mv cp/*.o stage2/cp
echo timestamp > stage2_copy
echo stage3_build > stage_last
rm -rf stage1




Am 04.04.2006 um 11:44 schrieb Grobian:

> What compiler/env did you use to bootstrap? I did this last weekend > without a problem. Do you have the latest Xcode installed? > > On 04-04-2006 11:49:40 +0200, Tobias Hahn wrote: >> When I try to run the bootstrap script, I get the following error. >> Can anybody >> help, please? >> >> /Volumes/portage/var/tmp/gcc-5247/build/gcc/xgcc >> -B/Volumes/portage/var/tmp/gcc-5247/build/gcc/ >> -B/Volumes/portage/usr/powerpc-apple-darwin8/bin/ >> -B/Volumes/portage/usr/powerpc-apple-darwin8/lib/ -isystem >> /Volumes/portage/usr/powerpc-apple-darwin8/include -isystem >> /Volumes/portage/usr/powerpc-apple-darwin8/sys-include -c - >> DHAVE_CONFIG_H -O2 >> -O2 -pipe -m64 -I. >> -I/Volumes/portage/var/tmp/gcc-5247/gcc-5247/libiberty/../include >> -W -Wall >> -Wtraditional -pedantic >> /Volumes/portage/var/tmp/gcc-5247/gcc-5247/libiberty/strverscmp.c -o >> strverscmp.o >> /Volumes/portage/var/tmp/gcc-5247/gcc-5247/libiberty/strverscmp.c: >> In function >> 'strverscmp': >> /Volumes/portage/var/tmp/gcc-5247/gcc-5247/libiberty/strverscmp.c: >> 92: warning: >> traditional C rejects ISO C style function definitions >> /Volumes/portage/var/tmp/gcc-5247/gcc-5247/libiberty/strverscmp.c: >> 117: warning: >> traditional C rejects the unary plus operator >> /Volumes/portage/var/tmp/gcc-5247/gcc-5247/libiberty/strverscmp.c: >> 118: warning: >> traditional C rejects the unary plus operator >> /Volumes/portage/var/tmp/gcc-5247/gcc-5247/libiberty/strverscmp.c: >> 121: warning: >> traditional C rejects the unary plus operator >> /Volumes/portage/var/tmp/gcc-5247/gcc-5247/libiberty/strverscmp.c: >> 121: warning: >> traditional C rejects the unary plus operator >> rm -f ./libiberty.a pic/./libiberty.a >> ar rc ./libiberty.a \ >> ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./alloca.o ./argv.o >> ./choose-temp.o ./concat.o ./cp-demint.o ./dyn-string.o ./ >> fdmatch.o ./fibheap.o >> ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o >> ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./ >> lrealpath.o >> ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o >> ./partition.o ./physmem.o ./pex-unix.o ./safe-ctype.o ./sort.o ./ >> spaces.o >> ./splay-tree.o ./strerror.o ./strsignal.o ./ternary.o ./ >> xatexit.o ./xexit.o >> ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./mempcpy.o ./ >> stpncpy.o >> ./strverscmp.o >> ranlib -c ./libiberty.a >> if [ x"" != x ]; then \ >> cd pic; \ >> ar rc ./libiberty.a \ >> ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./alloca.o ./ >> argv.o >> ./choose-temp.o ./concat.o ./cp-demint.o ./dyn-string.o ./ >> fdmatch.o ./fibheap.o >> ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o >> ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./ >> lrealpath.o >> ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o >> ./partition.o ./physmem.o ./pex-unix.o ./safe-ctype.o ./sort.o ./ >> spaces.o >> ./splay-tree.o ./strerror.o ./strsignal.o ./ternary.o ./ >> xatexit.o ./xexit.o >> ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./mempcpy.o ./ >> stpncpy.o >> ./strverscmp.o; \ >> ranlib -c ./libiberty.a; \ >> cd ..; \ >> else true; fi >> make: *** [bootstrap-lean] Error 2 >> >> -- >> gentoo-osx@g.o mailing list >> > > -- > Fabian Groffen > Gentoo for Mac OS X Project > -- > gentoo-osx@g.o mailing list >
-- gentoo-osx@g.o mailing list

Replies

Subject Author
Re: [gentoo-osx] bootstrap gcc-apple fails Tobias Hahn <tobhahn@×××.de>