Opened 14 years ago
Last modified 14 years ago
#5191 closed bug
Haiku build failure on Suse 11.2 x86_64 — at Initial Version
Reported by: | Grey | Owned by: | bonefish |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Build System | Version: | R1/Development |
Keywords: | Build Suse64 | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
Haiku build failure on Suse 11.2 x86_64, but all ok on Suse 11.1
Log:
# uname -a
Linux linux-4vdj 2.6.31.5-0.1-desktop #1 SMP PREEMPT 2009-10-26
15:49:03 +0100 x86_64 x86_64 x86_64 GNU/Linux
# gcc --version
gcc (SUSE Linux) 4.4.1 [gcc-4_4-branch revision 150839]
# gcc -dumpmachine
x86_64-suse-linux
# gcc -dumpversion
4.4
# jam -v
Jam 2.5. OS=LINUX. Copyright 1993-2002 Christopher Seiwald.
# ./configure --use-32bit --build-cross-tools-gcc4 x86
../buildtools/
...<skip>
binutils and gcc for cross compilation have been built successfully[[BR]]
# jam -q haiku-image
...patience...
...<skip>
...patience...
...found 31623 target(s)...
...updating 12081 target(s)...
InitScript1 generated/haiku.image-init-vars
C++ generated/objects/linux/release/build/libroot/atomic.o
In file included from headers/build/config_build/types.h:9,[[BR]]
from headers/build/os/support/SupportDefs.h:12,[[BR]] from headers/build/os/kernel/OS.h:12,[[BR]] from src/build/libroot/atomic.cpp:5:[[BR]]
headers/build/config_build/HaikuConfig.h:53:3: error: #error Unsupported architecture[[BR]]
In file included from src/build/libroot/atomic.cpp:5:[[BR]]
headers/build/os/kernel/OS.h:588: error: ‘B_MAX_CPU_COUNT’ was not declared in this scope
...<skip>
...failed C++ generated/objects/linux/release/build/libroot/atomic.o ...
...skipped libroot_build.so for lack of <src!build!libroot>atomic.o...
...skipped <build>addattr for lack of libroot_build.so...
...skipped <HaikuImage>haiku.image-init-vars for lack of <build>addattr...
...skipped haiku.image for lack of <HaikuImage>haiku.image-init-vars...
...failed updating 1 target(s)...
...skipped 4 target(s)...
...updated 1 target(s)...
#
IMHO, problems in build/jam/BuildSetup:
if $(HAIKU_HOST_USE_32BIT) = 1 {
# enable GCC -m32 option
HOST_GCC_BASE_FLAGS = -m32 ;
} else {
switch $(HOST_GCC_MACHINE) {
case x86_64-* : HOST_PLATFORM_IS_64_BIT = 1 ;
case i686-apple-darwin10 :
HOST_PLATFORM_IS_64_BIT = 1 ;
}
}
Why "else"?
And in headers/build/config_build/HaikuConfig.h
#ifdef INTEL
# ifdef HAIKU_HOST_PLATFORM_64_BIT
...
It look like INTEL undefined.