[haiku-development] [buildtools] building on ubuntu 8.10

  • From: Marco Minutoli <mminutoli@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 03 Jan 2009 23:09:38 +0100

Good evening people,

today I tried to build a vmware haiku image following the guide at [1].

Following the instruction buildtools compilation fails with the error in
the attachment error.txt.

Doing some search I found a fix for the problem contained in the
attached patch btw even with that fix the compilation failed with other
errors.

Doing some more search with the help of Salvatore we haven't found a fix
for those errors but he point me to [2] so I checked out the revision
24508 of buildtools.

Compiling it on ubuntu 8.10 (glibc 2.8 I guess) failed with the same
error in error.txt but applying the patch this time did the job.

I am emailing this just in case someone else get stuck on the same error
but I am not sure this is the way to go.

Looking forward to read you ideas,

Good evening
Marco


[1]
http://www.haiku-os.org/documents/dev/building_haiku_on_ubuntu_linux_step_by_step

[2]
//www.freelists.org/post/haiku-development/Broken-toolchain-build-on-Linux-here,2



 In function ‘open’,
    inlined from ‘collect_execute’ at 
/home/mminutoli/develop/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/mminutoli/develop/haiku/haiku/generated/cross-tools-build/gcc/gcc'
make: *** [cross] Error 2
ERROR: Building gcc failed.

Index: legacy/gcc/gcc/collect2.c
===================================================================
--- legacy/gcc/gcc/collect2.c   (revision 24507)
+++ legacy/gcc/gcc/collect2.c   (working copy)
@@ -1776,7 +1776,7 @@
   if (redir)
     {
       /* Open response file.  */
-      redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);
+      redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, 0666);
 
       /* Duplicate the stdout and stderr file handles
         so they can be restored later.  */

Other related posts: