[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/16203] New: gold -ldl link fails on Gentoo/FreeBSD
From: |
nigoro.gentoo at 0x100 dot com |
Subject: |
[Bug gold/16203] New: gold -ldl link fails on Gentoo/FreeBSD |
Date: |
Fri, 22 Nov 2013 10:40:08 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=16203
Bug ID: 16203
Summary: gold -ldl link fails on Gentoo/FreeBSD
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: gold
Assignee: ian at airs dot com
Reporter: nigoro.gentoo at 0x100 dot com
CC: ccoutant at google dot com
dlfcn.h exists in FreeBSD.
However, libdl.{a,so} does not exist.
# ls /usr/include/dlfcn.h
/usr/include/dlfcn.h
# ls /usr/lib/libdl*
ls: /usr/lib/libdl*: No such file or directory
FYI,
Function of dlopen is included in libc on FreeBSD.
http://www.freebsd.org/cgi/man.cgi?query=dlopen&sektion=3
error log)
ar cru libgold.a archive.o attributes.o binary.o common.o compressed_output.o
copy-relocs.o cref.o defstd.o descriptors.o dirsearch.o dynobj.o dwarf_reader.o
ehframe.o errors.o expression.o fileread.o gc.o gdb-index.o gold.o
gold-threads.o icf.o incremental.o int_encoding.o layout.o mapfile.o merge.o
nacl.o object.o options.o output.o parameters.o plugin.o readsyms.o
reduced_debug_output.o reloc.o resolve.o script-sections.o script.o
stringpool.o symtab.o target.o target-select.o timer.o version.o workqueue.o
workqueue-threads.o yyscript.o mremap.o
ranlib libgold.a
g++ -DHAVE_CONFIG_H -I. -I../../binutils/gold -I../../binutils/gold
-I../../binutils/gold/../include -I../../binutils/gold/../elfcpp
-DLOCALEDIR="\"/usr/local/share/locale\"" -DBINDIR="\"/usr/local/bin\""
-DTOOLBINDIR="\"/usr/local/x86_64-unknown-freebsd10.0_beta3/bin\""
-DTOOLLIBDIR="\"/usr/local/x86_64-unknown-freebsd10.0_beta3/lib\"" -W -Wall
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=dwp.o -g -O2 -MT
dwp.o -MD -MP -MF .deps/dwp.Tpo -c -o dwp.o ../../binutils/gold/dwp.cc
mv -f .deps/dwp.Tpo .deps/dwp.Po
g++ -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=dwp -g
-O2 -static-libstdc++ -static-libgcc -o dwp dwp.o libgold.a
../libiberty/libiberty.a -lintl -lpthread -ldl -lz
/usr/lib/gcc/x86_64-gentoo-freebsd9.0/4.6.4/../../../../x86_64-gentoo-freebsd9.0/bin/ld:
cannot find -ldl
collect2: ld returned 1 exit status
gmake[4]: *** [dwp] Error 1
gmake[4]: Leaving directory `/tmp/binutils/build/gold'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/tmp/binutils/build/gold'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/tmp/binutils/build/gold'
gmake[1]: *** [all-gold] Error 2
gmake[1]: Leaving directory `/tmp/binutils/build'
gmake: *** [all] Error 2
Steps to Reproduce:
1. git clone git://sourceware.org/git/binutils.git
2. mkdir build && cd build
3. ../binutils/configure --enable-gold --enable-plugins
--without-included-gettext --with-zlib --enable-obsolete --enable-shared
--enable-threads --disable-werror --disable-static
4. gmake
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/16203] New: gold -ldl link fails on Gentoo/FreeBSD,
nigoro.gentoo at 0x100 dot com <=