Go to the FreeLists Home Page Home Signup Help Login
 



[openbeos] || [Date Prev] [10-2007 Date Index] [Date Next] || [Thread Prev] [10-2007 Thread Index] [Thread Next]

[openbeos] Re: Building on 64 bit linux

  • From: "Fredrik Ekdahl" <fekdahl@xxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Sat, 27 Oct 2007 09:07:41 +0200
2007/10/19, Ingo Weinhold <ingo_weinhold@xxxxxx>:
> AFAIK you can't build on 64 bit machines with the gcc 2.95.3 cross-compiler,
> since it's so old that it doesn't have host support for those "new"
> platforms. You have to use the gcc 4 cross-compiler.
>
> I've heard mixed reports whether that works or not. You definitely have to
> pass the "--use-32bit" flag to Haiku's configure script to have a chance at
> all, as neither Haiku itself nor our tools we use for building are 64 bit
> ready yet.

Hi. Now I've installed the 64 bit version of Ubuntu 7.10 and tried
building Haiku, but there are unfortunately some problems. Here's the
error message, and sorry for the localized terminal (btw is there an
easy way of disabling that?):

...found 61452 target(s)...
...updating 6598 target(s)...
InitScript1 generated/haiku.image-init-vars
C++ generated/objects/linux/x86/release/tools/bfs_shell/BlockAllocator.o
I fil inkluderad från /usr/include/features.h:345,
                 från /usr/include/stdlib.h:25,
                 från headers/private/fs_shell/fssh_api_wrapper.h:8,
                 från
src/add-ons/kernel/file_systems/bfs/system_dependencies.h:11,
                 från src/add-ons/kernel/file_systems/bfs/Debug.h:9,
                 från src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp:9:
/usr/include/gnu/stubs.h:7:27: fel: gnu/stubs-32.h: Filen eller
katalogen finns inte

cc -c "src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp" -O1
-Wall -Wno-trigraphs -Wno-ctor-dtor-privacy -Woverloaded-virtual
-Wpointer-arith -Wcast-align -Wsign-compare -m32 -Wno-multichar
-DBFS_SHELL -Wall -Wno-multichar -fno-rtti
-D_ZETA_USING_DEPRECATED_API_=1 -D_ZETA_TS_FIND_DIR_=1 -DARCH_x86
-D_NO_INLINE_ASM -D__INTEL__ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-DHAIKU_HOST_PLATFORM_LINUX -iquote src/tools/bfs_shell -iquote
generated/objects/common/tools/bfs_shell -iquote
generated/objects/linux/x86/common/tools/bfs_shell -iquote
generated/objects/haiku/x86/common/tools/bfs_shell -iquote
src/add-ons/kernel/file_systems/bfs -I headers/private/fs_shell -I
headers/build/host/linux -o
"generated/objects/linux/x86/release/tools/bfs_shell/BlockAllocator.o"
;

...failed C++ 
generated/objects/linux/x86/release/tools/bfs_shell/BlockAllocator.o
...
...skipped <build>bfs_shell for lack of <src!tools!bfs_shell>BlockAllocator.o...
...skipped <HaikuImage>haiku.image-init-vars for lack of <build>bfs_shell...
...skipped sda6 for lack of <HaikuImage>haiku.image-init-vars...
...failed updating 1 target(s)...
...skipped 3 target(s)...

It says it can't find "/usr/include/gnu/stubs-32.h" included from
"/usr/include/gnu/stubs.h". There is a stubs-64.h file in that folder
but not the stubs-32.h file. I guess it's looking for stubs-32.h
because of the -m32 option.

Here's the contents of "/usr/include/gnu/stubs.h":
------------------------------------------------------
/* This file selects the right generated file of `__stub_FUNCTION' macros
   based on the architecture being compiled for.  */

#include <bits/wordsize.h>

#if __WORDSIZE == 32
# include <gnu/stubs-32.h>
#elif __WORDSIZE == 64
# include <gnu/stubs-64.h>
#else
# error "unexpected value for __WORDSIZE macro"
#endif
------------------------------------------------------
Any advices regarding this?

/Fredrik Ekdahl





[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.