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 :'(
Attachments (1)
Change History (4)
by , 16 years ago
Attachment: | haiku_ibex.diff added |
---|
comment:1 by , 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 , 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 , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Applied the change in hrev28396. Thanks!
Patch for cross compile script to undefine _FORTIFY_SOURCE