User Support Forum

Questions/problems with Haiku? Post here and get help from the community. If you think you have found a bug, please file a bug report at dev.haiku-os.org.

Building Haiku GCC Hybrid in Fedora 15 x86_64

Forum thread started by aspirin on Sun, 2011-07-10 10:53

I get an error when I jam Haiku. Apparently I am missing a file: libroot.so. It apparently isn't being created, but I do not know why.

My process is as follows:

Acquired Source (Haiku and buildtools):

svn checkout http://svn.haiku-os.org/haiku/buildtools/trunk haiku/buildtools
svn checkout http://svn.haiku-os.org/haiku/haiku/trunk haiku/haiku

Installed software required for build:

sudo yum install subversion yasm autoconf automake texinfo flex bison gawk build-essential unzip wget zip glibc-devel
sudo yum groupinstall "Development Tools" "Development Libraries"

Unable to find direct Fedora-equivalents for these Ubuntu pkgs necessary for build from within 64-bit:
gcc-multilib g++-multilib
Assuming that these are included in "Development Libraries" ...

I am confident that Jam is installed correctly. Built Jam from Haiku Jam source, as described here [https://www.haiku-os.org/guides/building/jam#build_jam]
Running jam -v returns:

Jam 2.5-haiku-20090626. OS=LINUX. Copyright 1993-2002 Christopher Seiwald.

Configuration steps:

cd $HAIKU_HEAD/haiku
mkdir generated.x86gcc2
mkdir generated.x86gcc4
cd generated.x86gcc2
linux32 ../configure --alternative-gcc-output-dir ../generated.x86gcc4 --build-cross-tools ../../buildtools/ --use-gcc-pipe

System returns:

binutils and gcc for cross compilation have been built successfully!

Continuing the Hybrid configuration:

cd ../generated.x86gcc4
linux32 ../configure --alternative-gcc-output-dir ../generated.x86gcc2 --build-cross-tools-gcc4 x86 ../../buildtools/ --use-gcc-pipe

System returns:

binutils and gcc for cross compilation have been built successfully!

Now it's time to jam: gcc2/gcc4-secondary Hybrid

cd ../generated.x86gcc2
jam -q @nightly-raw

Oh no! it doesn't work:

Building Haiku Nightly 
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...found 101152 target(s)...
...updating 13131 target(s)...
InitScript1 /home/aspirin/svn/haiku/haiku/generated.x86gcc2/haiku.image-init-vars 
MkDir1 /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects 
MkDir1 /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux 
MkDir1 /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/lib 
MkDir1 /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86 
MkDir1 /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release 
MkDir1 /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build 
MkDir1 /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot 
C++ /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/atomic.o 
C++ /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/byteorder.o 
C++ /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/errors.o 
C++ /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/fs.o 
C++ /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/fs_attr.o 
In file included from /home/aspirin/svn/haiku/haiku/src/build/libroot/fs_attr.cpp:4:0:
/home/aspirin/svn/haiku/haiku/src/build/libroot/fs_attr_generic.cpp: In function ‘std::string get_attribute_dir_path(BPrivate::NodeRef)’:
/home/aspirin/svn/haiku/haiku/src/build/libroot/fs_attr_generic.cpp:116:42: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘int64’ [-Wformat]
/home/aspirin/svn/haiku/haiku/src/build/libroot/fs_attr_generic.cpp: In function ‘status_t ensure_attribute_dir_exists(BPrivate::NodeRef, const char*, int)’:
/home/aspirin/svn/haiku/haiku/src/build/libroot/fs_attr_generic.cpp:138:13: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘ino_t’ [-Wformat]
C++ /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/fs_descriptors.o 
C++ /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/misc.o 
C++ /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/sem.o 
C++ /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/thread.o 
Cc /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/strlcpy.o 
/home/aspirin/svn/haiku/haiku/src/system/libroot/posix/string/strlcpy.c:11:1: warning: no previous prototype for ‘strlcpy’ [-Wmissing-prototypes]
Cc /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/strlcat.o 
/home/aspirin/svn/haiku/haiku/src/system/libroot/posix/string/strlcat.c:19:1: warning: no previous prototype for ‘strlcat’ [-Wmissing-prototypes]
Cc /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/strnlen.o 
C++ /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/KMessage.o 
Link /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/lib/libroot_build.so 
/usr/bin/ld: cannot find -lsupc++
collect2: ld returned 1 exit status

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/lib ; /home/aspirin/svn/haiku/haiku/build/scripts/rm_attrs /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/tools/rm_attrs -f "/home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/lib/libroot_build.so"
cc -shared -Xlinker -soname="libroot_build.so" -o "/home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/lib/libroot_build.so"   "/home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/atomic.o" "/home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/byteorder.o" "/home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/errors.o" "/home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/fs.o" "/home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/fs_attr.o" "/home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/fs_descriptors.o" "/home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/misc.o" "/home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/sem.o" "/home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/thread.o" "/home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/strlcpy.o" "/home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/strlcat.o" "/home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/strnlen.o" "/home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/x86/release/build/libroot/KMessage.o" \
 -lsupc++ -lstdc++  \


...failed Link /home/aspirin/svn/haiku/haiku/generated.x86gcc2/objects/linux/lib/libroot_build.so ...

BUILD FAILURE:
...failed updating 1 target(s)...
...skipped 3 target(s)...
...updated 21 target(s)...

Sure enough, when I navigate to generated.x86gcc2/objects/linux/lib/, there's nothing there. Any pointers?

Are legacy Replicants supposed to work?

Forum thread started by rhester72 on Thu, 2011-07-07 13:04

I dug out a positively ancient app called AllPossibleImages (that for some strange reason I have a bit of fascination with *laughs*), which rewardingly works quite well at a binary-compatibility level with Haiku alpha 3 (the binary being x86 R4.5).

However, despite it having a Replicant corner to drag onto the desktop, it doesn't seem to actually create a replicant...you get the ghosted box, but once you release, nothing.

Other than that, the application seems to work fine. Are Replicants from legacy applications supposed to function in Haiku, or does it require a recompile (for which, of course, there is no source ;)?

Thanks,

Rodney

unable to install haiku in bootcamp

Forum thread started by togermano on Tue, 2011-07-05 14:32

The first alpha I was about to install on my imac using boot camp the 3rd release will restart the whole computer after ...... loads up after booting from the haiku 3 cd. I cant even get into safemode screen to change anything around. Anyone got any work arounds?

netboot (PXE)

Forum thread started by photor on Thu, 2011-06-30 15:30

Greeting from China!
How to netboot (PXE) Haiku R1 Alpha 3?
Thanks.

Deleting folders

Forum thread started by TedH on Mon, 2011-06-27 11:48

Whilst cleaning up my installation to minimize it (system, browser and email only needed), I ran across the folder with all the development tools in. Can I delete this?

Also, is Vision needed? Can I delete it too?

Thanks - Ted

Shutdown Script

Forum thread started by DFergATL on Mon, 2011-06-27 00:18

Is there a shutdown scipt for Haiku yet? Or,something equilivent?

Default safe mode booting

Forum thread started by andrewclunn on Sun, 2011-06-26 21:14

I am loving alpha 3, but in order to boot my machine I need to hold space at boot to get into the safe boot menu and deactivate an item. I'm just wondering if there is a system file I can change that will allow me to set that as a default boot option (so that I can just boot right into Haiku). Thanks in advance.

Syndicate content