From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7215 invoked by alias); 15 Aug 2014 13:13:31 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 7204 invoked by uid 89); 15 Aug 2014 13:13:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: OARmail.OARCORP.com Received: from oarmail.oarcorp.com (HELO OARmail.OARCORP.com) (67.63.146.244) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Aug 2014 13:13:28 +0000 Received: from [192.168.1.169] (192.168.1.169) by OARmail.OARCORP.com (192.168.2.2) with Microsoft SMTP Server (TLS) id 8.3.342.0; Fri, 15 Aug 2014 08:07:07 -0500 Message-ID: <53EE0774.7020707@oarcorp.com> Date: Fri, 15 Aug 2014 13:13:00 -0000 From: Joel Sherrill User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Mike Frysinger , "gdb@sourceware.org" Subject: Re: [PATCH 1/1] erc32 sim: Add libdl to build of sis References: <1408054866-9877-1-git-send-email-joel.sherrill@oarcorp.com> <1507685.62jiOPJB0J@vapier> In-Reply-To: <1507685.62jiOPJB0J@vapier> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00052.txt.bz2 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