[haiku-development] Re: Build error

  • From: Gabriele Biffi <mlist@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 22 Aug 2013 12:41:54 +0200

Il 22/08/13 10:50, Axel Dörfler ha scritto:
Am 22/08/2013 03:27, schrieb Gabriele Biffi:
Looking for a solution for mi rPi build problem, I restarted from
scratch. This time I tried to build the standard gcc2 image. Well, it
didn't work :(

There is no point in using GCC2 for any platform besides x86. Not sure
if anyone has tried before this so it might be an additional source of
errors.

Of course I used gcc4 for all other platforms, I don't even want to think otherwise.

I'm pretty sure the root cause is missing from this excerpt. Since you
specified --use-xattr - do you
a) build from a file system like XFS or ReiserFS? While this won't be
the problem you're facing now, ext4 and other file systems have only
crippled xattr support that does not suffice to build Haiku.

It's a ReiserFS.


b) have you installed the xattr headers? Not sure how the package is
called in Debian/Ubuntu/Mint, maybe just xattr-dev?

I can't find anything related to that :(
However, I reconfigured without --use-xattr and the result is exactly the same.


In any case, it's always helpful to see the full failure output -- the
actual error might be quite hidden.

Here you go:


LLVM not available on GCC2
warning: libbe_build.so depends on itself
warning: libbe_build.so depends on itself
warning: libbe_build.so depends on itself
...patience...
warning: libbe_build.so depends on itself
warning: libbe_build.so depends on itself
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...found 32910 target(s)...
...updating 13599 target(s)...
InitScript1 /haiku/obj/gcc2/haiku.image-init-vars
MkDir1 /haiku/obj/gcc2/objects
MkDir1 /haiku/obj/gcc2/objects/linux
MkDir1 /haiku/obj/gcc2/objects/linux/x86
MkDir1 /haiku/obj/gcc2/objects/linux/x86/release
MkDir1 /haiku/obj/gcc2/objects/linux/x86/release/build
MkDir1 /haiku/obj/gcc2/objects/linux/x86/release/build/libroot
C++ /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/function_remapper.o
MkDir1 /haiku/obj/gcc2/objects/linux/lib
C++ /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/atomic.o
C++ /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/byteorder.o
Archive /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/libroot_build_function_remapper.a ar: creating /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/libroot_build_function_remapper.a Ranlib /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/libroot_build_function_remapper.a
C++ /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/errors.o
C++ /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/find_directory.o
C++ /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/fs.o
C++ /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/fs_attr.o
C++ /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/fs_descriptors.o
C++ /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/misc.o
C++ /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/sem.o
C++ /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/thread.o
C++ /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/driver_settings.o
Cc /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/strlcpy.o
Cc /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/strlcat.o
C++ /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/strnlen.o
C++ /haiku/obj/gcc2/objects/linux/x86/release/build/libroot/KMessage.o
MkDir1 /haiku/obj/gcc2/objects/linux/x86/release/tools
MkDir1 /haiku/obj/gcc2/objects/linux/x86/release/tools/addattr
C++ /haiku/obj/gcc2/objects/linux/x86/release/tools/addattr/main.o
C++ /haiku/obj/gcc2/objects/linux/x86/release/tools/addattr/addAttr.o
MkDir1 /haiku/obj/gcc2/objects/linux/x86/release/build/libbe
MkDir1 /haiku/obj/gcc2/objects/linux/x86/release/build/libbe/app
Link /haiku/obj/gcc2/objects/linux/lib/libroot_build.so
C++ /haiku/obj/gcc2/objects/linux/x86/release/build/libbe/app/Application.o
Chmod1 /haiku/obj/gcc2/objects/linux/lib/libroot_build.so
C++ /haiku/obj/gcc2/objects/linux/x86/release/build/libbe/app/AppMisc.o
C++ /haiku/obj/gcc2/objects/linux/x86/release/build/libbe/app/Looper.o
MkDir1 /haiku/obj/gcc2/objects/haiku
MkDir1 /haiku/obj/gcc2/objects/haiku/x86
MkDir1 /haiku/obj/gcc2/objects/haiku/x86/release
MkDir1 /haiku/obj/gcc2/objects/haiku/x86/release/system
MkDir1 /haiku/obj/gcc2/objects/haiku/x86/release/system/glue
Cc /haiku/obj/gcc2/objects/haiku/x86/release/system/glue/haiku_version_glue.o
MkDir1 /haiku/obj/gcc2/objects/haiku/x86/release/add-ons
MkDir1 /haiku/obj/gcc2/objects/haiku/x86/release/add-ons/kernel
MkDir1 /haiku/obj/gcc2/objects/haiku/x86/release/add-ons/kernel/network
MkDir1 /haiku/obj/gcc2/objects/haiku/x86/release/add-ons/kernel/network/stack C++ /haiku/obj/gcc2/objects/haiku/x86/release/add-ons/kernel/network/stack/ancillary_data.o C++ /haiku/obj/gcc2/objects/haiku/x86/release/add-ons/kernel/network/stack/datalink.o C++ /haiku/obj/gcc2/objects/haiku/x86/release/add-ons/kernel/network/stack/device_interfaces.o C++ /haiku/obj/gcc2/objects/haiku/x86/release/add-ons/kernel/network/stack/domains.o C++ /haiku/obj/gcc2/objects/haiku/x86/release/add-ons/kernel/network/stack/interfaces.o C++ /haiku/obj/gcc2/objects/haiku/x86/release/add-ons/kernel/network/stack/net_buffer.o C++ /haiku/obj/gcc2/objects/haiku/x86/release/add-ons/kernel/network/stack/net_socket.o C++ /haiku/obj/gcc2/objects/haiku/x86/release/add-ons/kernel/network/stack/notifications.o C++ /haiku/obj/gcc2/objects/haiku/x86/release/add-ons/kernel/network/stack/link.o C++ /haiku/obj/gcc2/objects/haiku/x86/release/add-ons/kernel/network/stack/routes.o C++ /haiku/obj/gcc2/objects/haiku/x86/release/add-ons/kernel/network/stack/stack.o C++ /haiku/obj/gcc2/objects/haiku/x86/release/add-ons/kernel/network/stack/stack_interface.o C++ /haiku/obj/gcc2/objects/haiku/x86/release/add-ons/kernel/network/stack/utility.o
C++ /haiku/obj/gcc2/objects/linux/x86/release/tools/settype.o
C++ /haiku/obj/gcc2/objects/linux/x86/release/tools/mimeset.o
C++ /haiku/obj/gcc2/objects/linux/x86/release/tools/Mime.o
Link /haiku/obj/gcc2/objects/linux/x86/release/tools/settype
cc: error: /haiku/obj/gcc2/objects/linux/lib/libbe_build.so: No such file or directory

cc -Xlinker --no-as-needed -lm -o "/haiku/obj/gcc2/objects/linux/x86/release/tools/settype" "/haiku/obj/gcc2/objects/linux/x86/release/tools/settype.o" \ "/haiku/obj/gcc2/objects/linux/x86/release/build/libroot/libroot_build_function_remapper.a" "/haiku/obj/gcc2/objects/linux/lib/libroot_build.so" "/haiku/obj/gcc2/objects/linux/lib/libbe_build.so" -lstdc++ -lsupc++ \
                        
        
...failed Link /haiku/obj/gcc2/objects/linux/x86/release/tools/settype ...
Link /haiku/obj/gcc2/objects/linux/x86/release/tools/mimeset
cc: error: /haiku/obj/gcc2/objects/linux/x86/release/tools/database_support.o: No such file or directory cc: error: /haiku/obj/gcc2/objects/linux/x86/release/tools/UpdateMimeInfoThread.o: No such file or directory cc: error: /haiku/obj/gcc2/objects/linux/x86/release/tools/MimeUpdateThread.o: No such file or directory cc: error: /haiku/obj/gcc2/objects/linux/lib/libbe_build.so: No such file or directory

cc -Xlinker --no-as-needed -lm -o "/haiku/obj/gcc2/objects/linux/x86/release/tools/mimeset" "/haiku/obj/gcc2/objects/linux/x86/release/tools/mimeset.o" "/haiku/obj/gcc2/objects/linux/x86/release/tools/Mime.o" "/haiku/obj/gcc2/objects/linux/x86/release/tools/database_support.o" "/haiku/obj/gcc2/objects/linux/x86/release/tools/UpdateMimeInfoThread.o" "/haiku/obj/gcc2/objects/linux/x86/release/tools/MimeUpdateThread.o" \ "/haiku/obj/gcc2/objects/linux/x86/release/build/libroot/libroot_build_function_remapper.a" "/haiku/obj/gcc2/objects/linux/lib/libroot_build.so" "/haiku/obj/gcc2/objects/linux/lib/libbe_build.so" -lstdc++ -lsupc++ \
                        
        
...failed Link /haiku/obj/gcc2/objects/linux/x86/release/tools/mimeset ...
...skipped stack for lack of <build>settype...
...skipped <src!build!libbe!app>Message.o for lack of <src!build!libbe!app>Message.cpp... ...skipped <libbe_build>app_kit.o for lack of <src!build!libbe!app>Message.o...
...skipped libbe_build.so for lack of <libbe_build>app_kit.o...
...skipped <build>addattr for lack of libbe_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 2 target(s)...
...skipped 7 target(s)...
...updated 61 target(s)...



Checking the Message.cpp source (which of course is not missing), it turns out that asm_offsets.h is missing, the same error I have when building for arm.


Gabriele


Other related posts: