This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/1] erc32 sim: Add libdl to build of sis

On 8/14/2014 7:30 PM, Mike Frysinger wrote:
> On Thu 14 Aug 2014 17:21:06 Joel Sherrill wrote:
>> sis failed to link on Fedora 20 because it was not linking against
>> libdl. There may be a better way but this does work.
> can you post some errors ?  the only sim that actually uses libdl is the 
> Blackfin one.  i suspect the dl usage is coming from another binutils lib 
> (like bfd?) which means the fix is not this :).

I just saw the sparc failure and fixed it.  Once I saw that all of our
targets with simulators enabled failed like this (from v850), I was pretty
sure I had fixed a symptom and not the root cause.

make[3]: Entering directory
-DWITH_RESERVED_BITS=1    -Wall -Wdeclaration-after-statement
-Wpointer-arith -Wpointer-sign -Wno-unused -Wunused-value
-Wunused-function -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type
-Wold-style-declaration -Wold-style-definition -Wformat-nonliteral   
-I../../../binutils-gdb/sim/v850/../../newlib/libc/sys/sysnecv850   -I.
-I../../../binutils-gdb/sim/v850 -I../common
-I../../../binutils-gdb/sim/v850/../common -I../../include
-I../../../binutils-gdb/sim/v850/../../include -I../../bfd
-I../../../binutils-gdb/sim/v850/../../bfd -I../../opcodes
-I../../../binutils-gdb/sim/v850/../../opcodes  -g -O2 -static-libstdc++
-static-libgcc  -o run \
  nrun.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a 
../../libiberty/libiberty.a -lz -lnsl
../../bfd/libbfd.a(plugin.o): In function `try_load_plugin':
undefined reference to `dlopen'
undefined reference to `dlsym'
undefined reference to `dlerror'
collect2: error: ld returned 1 exit status

> -mike

Joel Sherrill, Ph.D.             Director of Research & Development        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]