Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#4000 closed bug (invalid)

Haiku fails to compile buildtools for other GCC

Reported by: mmadia Owned by: bonefish
Priority: normal Milestone: R1
Component: Build System Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

hrev30928. Tried building x86gcc4 from within x86gcc2.

/builder/haiku> svn update buildtools haiku 
At revision 30976.
<snip>
Updated to revision 30976.

/generated/x86gcc4-crossbuilt> ../../builder/haiku/haiku/configure --build-cross-tools-gcc4 x86 ../../builder/haiku/buildtools/

Full output is included in the attachment. Here's some of the more obvious errors/issues:

checking the maximum length of command line arguments... expr: syntax error
expr: syntax error
gcc -c -DHAVE_CONFIG_H -O2 -I. -I/builder/haiku/buildtools/binutils/libiberty/../include  -W -Wall -Wwrite-strings -Wstrict-prototypes -pedantic  /builder/haiku/buildtools/binutils/libiberty/pex-unix.c -o pex-unix.o
/builder/haiku/buildtools/binutils/libiberty/pex-unix.c: In function `pex_child_error':
/builder/haiku/buildtools/binutils/libiberty/pex-unix.c:352: warning: `noreturn' function does return
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2   -o libbfd.la -rpath /generated/x86gcc4-crossbuilt/cross-tools/lib -release `cat libtool-soversion`  archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo cache.lo coffgen.lo corefile.lo format.lo init.lo libbfd.lo opncls.lo reloc.lo section.lo syms.lo targets.lo hash.lo linker.lo srec.lo binary.lo tekhex.lo ihex.lo stabs.lo stab-syms.lo merge.lo dwarf2.lo simple.lo compress.lo `cat ofiles`  -lz 
./libtool: line 7380: test: : integer expression expected
./libtool: line 7380: test: : integer expression expected
libtool: link: using piecewise archive linking...
./libtool: line 7401: test: : integer expression expected
make[3]: Leaving directory `/generated/x86gcc4-crossbuilt/cross-tools-build/binutils/libiberty/testsuite'
/bin/sh /builder/haiku/buildtools/binutils/libiberty/../mkinstalldirs /generated/x86gcc4-crossbuilt/cross-tools/lib/`gcc -O2 -print-multi-os-directory`
gcc: unrecognized option `-print-multi-os-directory'
gcc: No input files
/bin/install -c -m 644 ./libiberty.a /generated/x86gcc4-crossbuilt/cross-tools/lib/`gcc -O2 -print-multi-os-directory`/./libiberty.an
gcc: unrecognized option `-print-multi-os-directory'
gcc: No input files
( cd /generated/x86gcc4-crossbuilt/cross-tools/lib/`gcc -O2 -print-multi-os-directory` ; chmod 644 ./libiberty.an ;ranlib ./libiberty.an )
gcc: unrecognized option `-print-multi-os-directory'
gcc: No input files
mv -f /generated/x86gcc4-crossbuilt/cross-tools/lib/`gcc -O2 -print-multi-os-directory`/./libiberty.an /generated/x86gcc4-crossbuilt/cross-tools/lib/`gcc -O2 -print-multi-os-directory`/./libiberty.a
gcc: unrecognized option `-print-multi-os-directory'
gcc: No input files
gcc: unrecognized option `-print-multi-os-directory'
gcc: No input files
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
*** This configuration is not supported in the following subdirectories:
     target-libmudflap target-libgomp target-libiberty
    (Any other directories should still work fine.)
*** --with-headers is only supported when cross compiling
/generated/x86gcc4-crossbuilt> 

Attachments (1)

haiku.buildcrosstools-fail (224.1 KB ) - added by mmadia 10 years ago.

Download all attachments as: .zip

Change History (3)

by mmadia, 10 years ago

Attachment: haiku.buildcrosstools-fail added

comment:1 by mmadia, 10 years ago

Resolution: invalid
Status: newclosed

The buildtools are not meant to be compiled within Haiku. Closing as invalid

comment:2 by axeld, 10 years ago

Version: R1/pre-alpha1R1/Development

Why aren't they, anyway?

Note: See TracTickets for help on using tickets.