[openbeos] Re: Problems compiling haiku in ubuntu

  • From: Pablo Barrera Gonzalez <barrera@xxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Wed, 21 Feb 2007 16:03:35 +0100

El mié, 21-02-2007 a las 14:33 +0100, Ingo Weinhold escribió:
> On 2007-02-21 at 10:00:40 [+0100], Pablo Barrera Gonzalez <barrera@xxxxxxx> 
> wrote:
> [...]
> > I don't understand why jam is including the system libraries
> > from /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3.
> > 
> > Any idea?
> 
> Yes, you haven't correctly configured the build for cross-compilation. 
> Please have a look at the ReadMe.cross-compile.
> 

Thank you, but I've already followed all instructions in
ReadMe.cross-compile and ReadMe. Is there any method to test the cross
building tools? 

I've tried again with same results. I updated my local copy: 

[envite@buildtools]$ svn update
Updated to revision 20188.
[envite@buildtools]$ cd ../haiku
[envite@haiku]$ svn update
Updated to revision 20188.

And I followed the instructions: 
[envite@haiku]$ cd ../buildtools/jam
[envite@haiku]$ make
cc -o ./jam0  builtins.c command.c compile.c execunix.c execvms.c
expand.c filent.c fileos2.c fileunix.c filevms.c glob.c hash.c headers.c
jam.c jambase.c jamgram.c lists.c make.c make1.c newstr.c option.c
parse.c pathunix.c pathvms.c regexp.c rules.c scan.c search.c
timestamp.c variable.c
....... continue .... 
GenFile1 jambase.c
Cc bin.linuxx86/jambase.o
Link bin.linuxx86/jam
Chmod1 bin.linuxx86/jam
...updated 33 target(s)...

[envite@jam]$ su 
[root@envite:/users/barrera/src/haiku/buildtools/jam# ./jam0 install
...found 225 target(s)...
...updating 1 target(s)...
Install /usr/local/bin/jam
Chmod1 /usr/local/bin/jam
...updated 1 target(s)...

[envite@jam]$ jam -v
Jam 2.5-haiku-20060813. OS=LINUX. Copyright 1993-2002 Christopher
Seiwald.

[envite@jam]$ cd ../haiku/
[envite@haiku]$ ./configure --build-cross-tools ../buildtools/
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i586-pc-beos
checking build system type... i686-pc-linux-gnu
... continue ...
        fi
make[1]: Leaving directory
`/users/barrera/src/haiku/haiku/generated/cross-tools-build/gcc/gcc'

binutils and gcc for cross compilation have been built successfully!
[envite@jam]$ 


Apparently everything is compiled ok. 





Other related posts: