Opened 16 years ago

Closed 16 years ago

#2874 closed bug (fixed)

Haiku build fails on Ubuntu 8.10

Reported by: netster403 Owned by: bonefish
Priority: normal Milestone: R1
Component: Build System Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: x86

Description

Ubuntu 8.10 had some changes and some additions that prevent the buildtools in svn to compile...

Steps taken: svn checkouts of haiku and buildtools svn updates performed in each directory " ./configure --build-cross-tools ../buildtools/ " performed in haiku dir.

Results: Failure to compile gcc:

gcc -DCROSS_COMPILE -DIN_GCC -O2 -DHAVE_CONFIG_H -I. -I/home/alex/haiku/buildtools/legacy/gcc/gcc -I/home/alex/haiku/buildtools/legacy/gcc/gcc/config -I/home/alex/haiku/buildtools/legacy/gcc/gcc/../include \

-DTARGET_MACHINE=\"i586-pc-haiku\" \ -c echo /home/alex/haiku/buildtools/legacy/gcc/gcc/collect2.c | sed 's,^\./,,'

In function ‘open’,

inlined from ‘collect_execute’ at /home/alex/haiku/buildtools/legacy/gcc/gcc/collect2.c:1779:

/usr/include/bits/fcntl2.h:51: error: call to ‘open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments make[1]: * [collect2.o] Error 1 make[1]: Leaving directory `/home/alex/haiku/haiku/generated/cross-tools-build/gcc/gcc' make: * [cross] Error 2 ERROR: Building gcc failed.

This error is documented on ubuntu's wiki. There is a work-around listed ( -U_FORTIFY_SOURCE ) but I can't figure out how to implement it in CPPFLAGS :'(

https://wiki.ubuntu.com/CompilerFlags#-D_FORTIFY_SOURCE=2

Attachments (1)

haiku_ibex.diff (598 bytes ) - added by augiedoggie 16 years ago.
Patch for cross compile script to undefine _FORTIFY_SOURCE

Download all attachments as: .zip

Change History (4)

by augiedoggie, 16 years ago

Attachment: haiku_ibex.diff added

Patch for cross compile script to undefine _FORTIFY_SOURCE

comment:1 by augiedoggie, 16 years ago

change directory to your haiku svn checkout and apply the patch with:

patch -p0 < /path/to/haiku_ibex.diff

Then proceed to run your configure and build commands as normal

comment:2 by netster403, 16 years ago

I am checking out the sources again to tidy up and will apply this patch and give it a whirl tomorrow.

Thanks!

comment:3 by bonefish, 16 years ago

Resolution: fixed
Status: newclosed

Applied the change in hrev28396. Thanks!

Note: See TracTickets for help on using tickets.