-ldl is for libdl, and it's a "Linuxism" according to:
https://forums.freebsd.org/threads/usr-bin-ld-cannot-find-ldl.5799/
As for getting Jam to build on FreeBSD, that'll likely take some time and
effort to figure out how to replace libdl, and using Linux would be faster,
I think.
În mie., 5 iun. 2019 la 01:07, FreeLists Mailing List Manager <
ecartis@xxxxxxxxxxxxx> a scris:
haiku-development Digest Wed, 05 Jun 2019 Volume: 13 Issue:
078
In This Issue:
[haiku-development] /usr/local/bin/ld: cannot find -ldl ,
wh
----------------------------------------------------------------------
Date: Wed, 05 Jun 2019 04:29:22 +0000
From: "Thomas Mueller" <mueller6723@xxxxxxx>
Subject: [haiku-development] /usr/local/bin/ld: cannot find -ldl , what is
this
I am again trying to cross-compile Haiku (master branch) from FreeBSD, but
the build (jam -q @anyboot-image, or jam -q @nightly-anyboot) quickly
fails. What is -ldl?
Past attempts didn't fail so quickly or for this reason.
This is for amd64. Configure script for x86-gcc2 hybrid consistency
failed apparently because of something incompatible in the gcc2 part:
collect2: error: ld returned 1 exit status
*** The command 'gcc -m32 -o conftest -O2 -U_FORTIFY_SOURCE conftest.c'
failed.
*** You must set the environment variable CC to a working compiler.
What does that mean? I set CC to the path to gcc.
With Haiku for amd64, from host FreeBSD amd64, build (jam) log is
[arlene@amelia ~/haiku/fb64generated.amd64.gcc6aux]$ jam -q
@anyboot-image 2>&1 | tee anyboot.log
Starting build of type regular ...
Skipping setjmp_test2.S test on non-x86
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...found 100811 target(s)...
...updating 14932 target(s)...
MkDir1 objects/freebsd
MkDir1 objects/freebsd/x86_64
MkDir1 objects/freebsd/x86_64/release
MkDir1 objects/freebsd/x86_64/release/tools
MkDir1 objects/freebsd/x86_64/release/tools/anyboot
C++ objects/freebsd/x86_64/release/tools/anyboot/anyboot.o
Link objects/freebsd/x86_64/release/tools/anyboot/anyboot
/usr/local/bin/ld: cannot find -ldl
collect2: error: ld returned 1 exit status
export
"LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/arlene/haiku/fb64generated.amd64.gcc6aux/objects/freebsd/lib"
; ../haiku/build/scripts/rm_attrs
objects/freebsd/x86_64/release/tools/rm_attrs -f
"objects/freebsd/x86_64/release/tools/anyboot/anyboot"
/usr/local/gcc6-aux/bin/gcc -Xlinker --no-as-needed -lm -ldl
-L/usr/local/lib -lz -o
"objects/freebsd/x86_64/release/tools/anyboot/anyboot"
"objects/freebsd/x86_64/release/tools/anyboot/anyboot.o" \
-lstdc++ \
...failed Link objects/freebsd/x86_64/release/tools/anyboot/anyboot ...
BUILD FAILURE:
...failed updating 1 target(s)...
...skipped 1 target(s)...
...updated 6 target(s)...
That was so short but not sweet that I include the entire log file!
Would Linux figure to do better than FreeBSD with either Haiku amd64 or
gcc2-x86 hybrid? Or is building for the far outdated gcc2 practically
impossible from a modern build platform?
Tom
------------------------------
End of haiku-development Digest V13 #78
***************************************