Mailing List Archive

bootstrap gcc-apple fails
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@gentoo.org mailing list
Re: bootstrap gcc-apple fails [ In reply to ]
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@gentoo.org mailing list
>

--
Fabian Groffen
Gentoo for Mac OS X Project
--
gentoo-osx@gentoo.org mailing list
Re: bootstrap gcc-apple fails [ In reply to ]
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@gentoo.org mailing list
>>
>
> --
> Fabian Groffen
> Gentoo for Mac OS X Project
> --
> gentoo-osx@gentoo.org mailing list
>

--
gentoo-osx@gentoo.org mailing list
Re: bootstrap gcc-apple fails [ In reply to ]
I'm experiencing bug http://gcc.gnu.org/bugzilla/show_bug.cgi?
id=26628 (I can't understand marking that bug invalid. It's
definitely something autoconf should be able to detect. But support
for machines that don't understand tail -n seems to be more of a
priority to the gcc people...) since I'm still on a G4. Where's the
correct point to --disable-multilib (profile, bootstrap-script?)

Tobias

Adding multilib support to Makefile in ../../../gcc-5247/libstdc++-v3
multidirs=ppc64
with_multisubdir=
Running configure in multilib subdirs ppc64
pwd: /tmp/gcc-apple/build/powerpc-apple-darwin8/libstdc++-v3
Running configure in multilib subdir ppc64
pwd: /tmp/gcc-apple/build/powerpc-apple-darwin8
configure: creating cache ./config.cache
checking build system type... powerpc-apple-darwin8
checking host system type... powerpc-apple-darwin8
checking target system type... powerpc-apple-darwin8
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for powerpc-apple-darwin8-gcc... /tmp/gcc-apple/build/gcc/
xgcc -B/tmp/gcc-apple/build/gcc/ -B/tmp/gcc-apple/usr/powerpc-apple-
darwin8/bin/ -B/tmp/gcc-apple/usr/powerpc-apple-darwin8/lib/ -
isystem /tmp/gcc-apple/usr/powerpc-apple-darwin8/include -isystem /
tmp/gcc-apple/usr/powerpc-apple-darwin8/sys-include -m64
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run
C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: *** Waiting for unfinished jobs....

--
gentoo-osx@gentoo.org mailing list
Re: bootstrap gcc-apple fails [ In reply to ]
I don't really understand. Unless you really want to build the upstream
GCC release you probably need to give configure that flag, but for
Apple's GCC it should just work as far as I know.

Did you use the bootstrap script? If so does this failure comes during
the bootstrap? Have you tried a recent (== a few days ago) version of
the bootstrap script?

On 07-04-2006 13:43:29 +0200, Tobias Hahn wrote:
> I'm experiencing bug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26628 (I can't
> understand marking that bug invalid. It's definitely something autoconf should
> be able to detect. But support for machines that don't understand tail -n seems
> to be more of a priority to the gcc people...) since I'm still on a G4. Where's
> the correct point to --disable-multilib (profile, bootstrap-script?)
>
> Tobias
>
> Adding multilib support to Makefile in ../../../gcc-5247/libstdc++-v3
> multidirs=ppc64
> with_multisubdir=
> Running configure in multilib subdirs ppc64
> pwd: /tmp/gcc-apple/build/powerpc-apple-darwin8/libstdc++-v3
> Running configure in multilib subdir ppc64
> pwd: /tmp/gcc-apple/build/powerpc-apple-darwin8
> configure: creating cache ./config.cache
> checking build system type... powerpc-apple-darwin8
> checking host system type... powerpc-apple-darwin8
> checking target system type... powerpc-apple-darwin8
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking for powerpc-apple-darwin8-gcc... /tmp/gcc-apple/build/gcc/xgcc
> -B/tmp/gcc-apple/build/gcc/ -B/tmp/gcc-apple/usr/powerpc-apple-darwin8/bin/
> -B/tmp/gcc-apple/usr/powerpc-apple-darwin8/lib/ -isystem
> /tmp/gcc-apple/usr/powerpc-apple-darwin8/include -isystem
> /tmp/gcc-apple/usr/powerpc-apple-darwin8/sys-include -m64
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... configure: error: cannot run C
> compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details.
> make[1]: *** [configure-target-libstdc++-v3] Error 1
> make[1]: *** Waiting for unfinished jobs....
>
> --
> gentoo-osx@gentoo.org mailing list
>

--
Fabian Groffen
Gentoo for Mac OS X Project
--
gentoo-osx@gentoo.org mailing list
Re: bootstrap gcc-apple fails [ In reply to ]
Sorry if I wasn't precise enough.

1. My hardware is a G4 (i.e. 32bit ppc cpu, no 64bit support) running
Mac OS X 10.4.6, reinstalled in the last month from scratch, i.e.
blank hard disk, formatted HFSX+J.
2. I have Xcode 2.2 installed.
3. I am using a special user portage, group portage, to experiment
with portage-prefix. Homedir is /Volumes/portage, again HFSX+J.
4. I am using portage-alt-prefix-20060406.
5. I have no special environment, i.e. SHELL=/bin/bash, TERM=xterm-
color, PATH=/bin:/sbin:/usr/bin:/usr/sbin, DEFAULT_PATH etc. unset.
6. I try to bootstrap portage using the command
$ ./portage-alt-prefix/scripts/bootstrap-prefix.sh /Volumes/portage/
prefix
This script first fetches and compiles odcctools, then gcc-apple-5247.
7. In particular, this script does not pass --disable-multilib to gcc
configure.
8. The following make boostrap-lean fails as posted before. As I
suspected, I was not the only one experiencing this bug, even though
the reference in my last mail is to mainline-gnu-gcc.
9. The gcc-people don't seem to consider this a bug, I filed one with
apple, though, to see what they think.
10. In the meantime: What's the correct way to --disable-multilib,
i.e. a profile ppc32 and a profile ppc64, hardcoded in bootstrap or a
bootstrap commandline option --disable-multilibs? What are multilibs,
i.e. does this mean the compiler executable will take advantage of
64bit hardware even if compiled on 32bit hardware or just that the
compiler is able to generate fat binaries? Do we want multilibs in
portage or do we want to give the user a choice? It's Gentoo after
all...


Am 07.04.2006 um 13:09 schrieb Grobian:

> I don't really understand. Unless you really want to build the
> upstream
> GCC release you probably need to give configure that flag, but for
> Apple's GCC it should just work as far as I know.
>
> Did you use the bootstrap script? If so does this failure comes
> during
> the bootstrap? Have you tried a recent (== a few days ago) version of
> the bootstrap script?
>
> On 07-04-2006 13:43:29 +0200, Tobias Hahn wrote:
>> I'm experiencing bug http://gcc.gnu.org/bugzilla/show_bug.cgi?
>> id=26628 (I can't
>> understand marking that bug invalid. It's definitely something
>> autoconf should
>> be able to detect. But support for machines that don't understand
>> tail -n seems
>> to be more of a priority to the gcc people...) since I'm still on
>> a G4. Where's
>> the correct point to --disable-multilib (profile, bootstrap-script?)
>>
>> Tobias
>>
>> Adding multilib support to Makefile in ../../../gcc-5247/libstdc++-v3
>> multidirs=ppc64
>> with_multisubdir=
>> Running configure in multilib subdirs ppc64
>> pwd: /tmp/gcc-apple/build/powerpc-apple-darwin8/libstdc++-v3
>> Running configure in multilib subdir ppc64
>> pwd: /tmp/gcc-apple/build/powerpc-apple-darwin8
>> configure: creating cache ./config.cache
>> checking build system type... powerpc-apple-darwin8
>> checking host system type... powerpc-apple-darwin8
>> checking target system type... powerpc-apple-darwin8
>> checking for a BSD-compatible install... /usr/bin/install -c
>> checking whether build environment is sane... yes
>> checking for gawk... no
>> checking for mawk... no
>> checking for nawk... no
>> checking for awk... awk
>> checking whether make sets $(MAKE)... yes
>> checking for powerpc-apple-darwin8-gcc... /tmp/gcc-apple/build/gcc/
>> xgcc
>> -B/tmp/gcc-apple/build/gcc/ -B/tmp/gcc-apple/usr/powerpc-apple-
>> darwin8/bin/
>> -B/tmp/gcc-apple/usr/powerpc-apple-darwin8/lib/ -isystem
>> /tmp/gcc-apple/usr/powerpc-apple-darwin8/include -isystem
>> /tmp/gcc-apple/usr/powerpc-apple-darwin8/sys-include -m64
>> checking for C compiler default output file name... a.out
>> checking whether the C compiler works... configure: error: cannot
>> run C
>> compiled programs.
>> If you meant to cross compile, use `--host'.
>> See `config.log' for more details.
>> make[1]: *** [configure-target-libstdc++-v3] Error 1
>> make[1]: *** Waiting for unfinished jobs....
>>
>> --
>> gentoo-osx@gentoo.org mailing list
>>
>
> --
> Fabian Groffen
> Gentoo for Mac OS X Project
> --
> gentoo-osx@gentoo.org mailing list
>

--
gentoo-osx@gentoo.org mailing list
Re: bootstrap gcc-apple fails [ In reply to ]
Thank you for your detailed info. I think I was lazy, because I think
you have said all of it already.

I have no G4 machine to test on, only a G5, which might explain why it
works for me, and not for you. I think the bootstrap script can be made
smarter, such that it detects ppc32 (`sysctl hw.optional.64bitops` ?) to
automatically insert this --disable-multilib configure flag.


On 07-04-2006 19:01:37 +0200, Tobias Hahn wrote:
> Sorry if I wasn't precise enough.
>
> 1. My hardware is a G4 (i.e. 32bit ppc cpu, no 64bit support) running Mac OS X
> 10.4.6, reinstalled in the last month from scratch, i.e. blank hard disk,
> formatted HFSX+J.
> 2. I have Xcode 2.2 installed.
> 3. I am using a special user portage, group portage, to experiment with
> portage-prefix. Homedir is /Volumes/portage, again HFSX+J.
> 4. I am using portage-alt-prefix-20060406.
> 5. I have no special environment, i.e. SHELL=/bin/bash, TERM=xterm-color,
> PATH=/bin:/sbin:/usr/bin:/usr/sbin, DEFAULT_PATH etc. unset.
> 6. I try to bootstrap portage using the command
> $ ./portage-alt-prefix/scripts/bootstrap-prefix.sh /Volumes/portage/prefix
> This script first fetches and compiles odcctools, then gcc-apple-5247.
> 7. In particular, this script does not pass --disable-multilib to gcc
> configure.
> 8. The following make boostrap-lean fails as posted before. As I suspected, I
> was not the only one experiencing this bug, even though the reference in my
> last mail is to mainline-gnu-gcc.
> 9. The gcc-people don't seem to consider this a bug, I filed one with apple,
> though, to see what they think.
> 10. In the meantime: What's the correct way to --disable-multilib, i.e. a
> profile ppc32 and a profile ppc64, hardcoded in bootstrap or a bootstrap
> commandline option --disable-multilibs? What are multilibs, i.e. does this mean
> the compiler executable will take advantage of 64bit hardware even if compiled
> on 32bit hardware or just that the compiler is able to generate fat binaries?
> Do we want multilibs in portage or do we want to give the user a choice? It's
> Gentoo after all...
>
>
> Am 07.04.2006 um 13:09 schrieb Grobian:
>
> >I don't really understand. Unless you really want to build the upstream
> >GCC release you probably need to give configure that flag, but for
> >Apple's GCC it should just work as far as I know.
> >
> >Did you use the bootstrap script? If so does this failure comes during
> >the bootstrap? Have you tried a recent (== a few days ago) version of
> >the bootstrap script?
> >
> >On 07-04-2006 13:43:29 +0200, Tobias Hahn wrote:
> >>I'm experiencing bug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26628 (I
> >>can't
> >>understand marking that bug invalid. It's definitely something autoconf
> >>should
> >>be able to detect. But support for machines that don't understand tail -n
> >>seems
> >>to be more of a priority to the gcc people...) since I'm still on a G4.
> >>Where's
> >>the correct point to --disable-multilib (profile, bootstrap-script?)
> >>
> >>Tobias
> >>
> >>Adding multilib support to Makefile in ../../../gcc-5247/libstdc++-v3
> >>multidirs=ppc64
> >>with_multisubdir=
> >>Running configure in multilib subdirs ppc64
> >>pwd: /tmp/gcc-apple/build/powerpc-apple-darwin8/libstdc++-v3
> >>Running configure in multilib subdir ppc64
> >>pwd: /tmp/gcc-apple/build/powerpc-apple-darwin8
> >>configure: creating cache ./config.cache
> >>checking build system type... powerpc-apple-darwin8
> >>checking host system type... powerpc-apple-darwin8
> >>checking target system type... powerpc-apple-darwin8
> >>checking for a BSD-compatible install... /usr/bin/install -c
> >>checking whether build environment is sane... yes
> >>checking for gawk... no
> >>checking for mawk... no
> >>checking for nawk... no
> >>checking for awk... awk
> >>checking whether make sets $(MAKE)... yes
> >>checking for powerpc-apple-darwin8-gcc... /tmp/gcc-apple/build/gcc/xgcc
> >>-B/tmp/gcc-apple/build/gcc/ -B/tmp/gcc-apple/usr/powerpc-apple-darwin8/bin/
> >>-B/tmp/gcc-apple/usr/powerpc-apple-darwin8/lib/ -isystem
> >>/tmp/gcc-apple/usr/powerpc-apple-darwin8/include -isystem
> >>/tmp/gcc-apple/usr/powerpc-apple-darwin8/sys-include -m64
> >>checking for C compiler default output file name... a.out
> >>checking whether the C compiler works... configure: error: cannot run C
> >>compiled programs.
> >>If you meant to cross compile, use `--host'.
> >>See `config.log' for more details.
> >>make[1]: *** [configure-target-libstdc++-v3] Error 1
> >>make[1]: *** Waiting for unfinished jobs....
> >>
> >>--
> >>gentoo-osx@gentoo.org mailing list
> >>
> >
> >--
> >Fabian Groffen
> >Gentoo for Mac OS X Project
> >--
> >gentoo-osx@gentoo.org mailing list
> >
>
> --
> gentoo-osx@gentoo.org mailing list
>

--
Fabian Groffen
Gentoo for Mac OS X Project
--
gentoo-osx@gentoo.org mailing list
Re: bootstrap gcc-apple fails [ In reply to ]
I have included the --disable-multilib manually in the boostrap
script and now everything works fine :-).

I.e. almost everything. The script bootstraps portage to $PREFIX/usr/
portage-alt-prefix, which portage does not know about. I added a
symlink portage->portage-alt-prefix to fix this. And for some reason,
the bootstrap script sets up the symlink for curl, but does not add
FETCHCOMMAND and RESUMECOMMAND to make.conf.

BTW, I think it's not sufficient to add --disable-multilib to the
bootstrap script, the gcc-apple ebuild needs to be fixed, too. I've
also done this manually right now.

Tobias
--
gentoo-osx@gentoo.org mailing list
Re: bootstrap gcc-apple fails [ In reply to ]
On 09-04-2006 12:24:03 +0200, Tobias Hahn wrote:
> I have included the --disable-multilib manually in the boostrap script
> and now everything works fine :-).

Ok.

> I.e. almost everything. The script bootstraps portage to
> $PREFIX/usr/portage-alt-prefix, which portage does not know about. I added a
> symlink portage->portage-alt-prefix to fix this. And for some reason, the

Hmmm, I thought I dealt with this. Looks like a bug to me.

> bootstrap script sets up the symlink for curl, but does not add FETCHCOMMAND
> and RESUMECOMMAND to make.conf.

Yeah, this is where I stopped. Adding the symlink for curl or wget is
wrong, as that should be solved through DEFAULT_PATH. But that route
has not yet been explored. The idea is to be able to just grab the
binaries from the host-os as long as necessary.

> BTW, I think it's not sufficient to add --disable-multilib to the bootstrap
> script, the gcc-apple ebuild needs to be fixed, too. I've also done this
> manually right now.

Ok, but that is beyond our direct control, so I'd like to have that
"fixed" in the bootstrap script for now.


--
Fabian Groffen
--
gentoo-osx@gentoo.org mailing list