2007/4/17, Ingo Weinhold <bonefish@xxxxxxxxxxxxxxx>:
On 2007-04-17 at 00:19:18 [+0200], Pier Luigi Fiorini <pierluigi.fiorini@xxxxxxxxx> wrote: > Hello, > I am trying to build Haiku from its sources on Linux. > After checking out trunk/ and buildtools/ I just built and installed jam > successfully. > Unfortunately when I build following the cross compile howto it says > (building the cross compiler) that x86_64-unknown-linux is not a valid > system. While I haven't tested building for 64 bit Linux (lacking a respective machine), I wouldn't see why it shouldn't work. If you provided a little more info, we could maybe tell you what the problem is. > I'm using Kubuntu Feisty on a AMD 64 X2 (x86-64). > Anyone has got the same problem? > > PS: Now I am trying to build with GCC4 although the read me says that it's > better to build with 2.95.
I configured with: ./configure --build-cross-tools ../buildtools/ --use-xattr --use-gcc-pipe --include-gpl-addons And here's the error I get: [cut] make[3]: Entering directory `/home/plfiorini/Progetti/BeOS/Haiku/trunk/generated/cross-tools-build/binutils/libiberty/testsuite' make[3]: Nothing to be done for `install'. make[3]: Leaving directory `/home/plfiorini/Progetti/BeOS/Haiku/trunk/generated/cross-tools-build/binutils/libiberty/testsuite' make[2]: Leaving directory `/home/plfiorini/Progetti/BeOS/Haiku/trunk/generated/cross-tools-build/binutils/libiberty' make[1]: Nothing to be done for `install-target'. make[1]: Leaving directory `/home/plfiorini/Progetti/BeOS/Haiku/trunk/generated/cross-tools-build/binutils' Configuring for a x86_64-unknown-linux-gnu host. Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized Unrecognized host system name x86_64-unknown-linux-gnu. At this point I think that gcc 2.95.3 cannot be built on 64 bit OSs. Unfortunately I get some errors also with GCC4, this time it's building Haiku not gcc! I wouldn't even be surprised, if gcc 2.95.3 even fails to build on 64 bit
platforms. The gcc 4 build should basically work, although it might have a few more problems than the gcc 2.95.3 build.
Building with GCC4 gives me these errors: [cut] MkDir1 generated/objects MkDir1 generated/objects/linux MkDir1 generated/objects/linux/release MkDir1 generated/objects/linux/release/tests MkDir1 generated/objects/linux/release/tests/add-ons MkDir1 generated/objects/linux/release/tests/add-ons/kernel MkDir1 generated/objects/linux/release/tests/add-ons/kernel/file_systems MkDir1 generated/objects/linux/release/tests/add-ons/kernel/file_systems/bfs MkDir1 generated/objects/linux/release/tests/add-ons/kernel/file_systems/bfs/bfs_shell C++ generated/objects/linux/release/tests/add-ons/kernel/file_systems/bfs/bfs_shell/Volume.o In file included from headers/posix/sys/types.h:8, from headers/posix/stdio.h:8, from ./src/tests/add-ons/kernel/file_systems/bfs/bfs_shell/Debug.h:14, from <command line>:1: headers/os/BeBuild.h:36:3: error: #error Configure BeBuild.h for your platform headers/os/BeBuild.h:106: error: aggregate '_IMPEXP_BE BArchivable' has incomplete type and cannot be defined headers/os/BeBuild.h:107: error: aggregate '_IMPEXP_BE BAutolock' has incomplete type and cannot be defined headers/os/BeBuild.h:108: error: aggregate '_IMPEXP_BE BBlockCache' has incomplete type and cannot be defined headers/os/BeBuild.h:109: error: aggregate '_IMPEXP_BE BBufferIO' has incomplete type and cannot be defined headers/os/BeBuild.h:110: error: aggregate '_IMPEXP_BE BDataIO' has incomplete type and cannot be defined headers/os/BeBuild.h:111: error: aggregate '_IMPEXP_BE BPositionIO' has incomplete type and cannot be defined headers/os/BeBuild.h:112: error: aggregate '_IMPEXP_BE BMallocIO' has incomplete type and cannot be defined [cut] ...failed C++ generated/objects/linux/release/tests/add-ons/kernel/file_systems/bfs/bfs_shell/Volume.o ... ...skipped bfs_shell for lack of <src!tests!add-ons!kernel!file_systems!bfs!bfs_shell>Volume.o... ...skipped <HaikuImage>haiku.image-init-vars for lack of bfs_shell... ...skipped haiku.image for lack of <HaikuImage>haiku.image-init-vars... ...failed updating 1 target(s)... ...skipped 3 target(s)... ...updated 10 target(s)... Configured with: ./configure --build-cross-tools-gcc4 x86 ../buildtools/ --use-xattr --use-gcc-pipe --include-gpl-addons Thanks.