Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Joel Sherrill <joel.sherrill@oarcorp.com>
To: Mike Frysinger <vapier@gentoo.org>,
	 "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: [PATCH 1/1] erc32 sim: Add libdl to build of sis
Date: Fri, 15 Aug 2014 13:13:00 -0000	[thread overview]
Message-ID: <53EE0774.7020707@oarcorp.com> (raw)
In-Reply-To: <1507685.62jiOPJB0J@vapier>


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
`/users/joel/test-gcc/b-v850-rtems4.11-bin/sim/v850'
gcc -DHAVE_CONFIG_H    -DTRACE=1 -DWITH_TRACE=-1 -DPROFILE=1
-DWITH_PROFILE=-1   -DWITH_DEFAULT_ALIGNMENT=NONSTRICT_ALIGNMENT
-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31
-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN   
-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN -DDEFAULT_INLINE=0  
-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   
-DDEBUG
-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':
/users/joel/test-gcc/b-v850-rtems4.11-bin/bfd/../../binutils-gdb/bfd/plugin.c:168:
undefined reference to `dlopen'
/users/joel/test-gcc/b-v850-rtems4.11-bin/bfd/../../binutils-gdb/bfd/plugin.c:175:
undefined reference to `dlsym'
/users/joel/test-gcc/b-v850-rtems4.11-bin/bfd/../../binutils-gdb/bfd/plugin.c:171:
undefined reference to `dlerror'
collect2: error: ld returned 1 exit status


> -mike

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


  reply	other threads:[~2014-08-15 13:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-14 22:21 Joel Sherrill
2014-08-14 22:37 ` Joel Sherrill
2014-08-15  0:30 ` Mike Frysinger
2014-08-15 13:13   ` Joel Sherrill [this message]
2014-08-17 13:20     ` Mike Frysinger
2014-08-18 22:13       ` Joel Sherrill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53EE0774.7020707@oarcorp.com \
    --to=joel.sherrill@oarcorp.com \
    --cc=gdb@sourceware.org \
    --cc=vapier@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox