From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28536 invoked by alias); 18 Aug 2014 22:13:24 -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 28527 invoked by uid 89); 18 Aug 2014 22:13:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 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; Mon, 18 Aug 2014 22:13:22 +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; Mon, 18 Aug 2014 17:07:10 -0500 Message-ID: <53F27A7E.8000205@oarcorp.com> Date: Mon, 18 Aug 2014 22: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 CC: "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> <53EE0774.7020707@oarcorp.com> <13304922.YQySRetGzW@vapier> In-Reply-To: <13304922.YQySRetGzW@vapier> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00067.txt.bz2 On 8/17/2014 8:20 AM, Mike Frysinger wrote: > On Fri 15 Aug 2014 08:13:24 Joel Sherrill wrote: >> 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. > Roland just regenerated the sim configure files due to changes in the common > plugin/dlfcn logic. i guess pull the latest repo and see if you still have > troubles building ? This seemed to fix all but the ppc. gcc -g -O2 -static-libstdc++ -static-libgcc -o psim main.o libsim.a ../../bfd/libbfd.a ../../libiberty/libiberty.a -lz ../../bfd/libbfd.a(plugin.o): In function `try_load_plugin': /users/joel/test-gcc/b-powerpc-rtems4.11-bin/bfd/../../binutils-gdb/bfd/plugin.c:168: undefined reference to `dlopen' /users/joel/test-gcc/b-powerpc-rtems4.11-bin/bfd/../../binutils-gdb/bfd/plugin.c:175: undefined reference to `dlsym' /users/joel/test-gcc/b-powerpc-rtems4.11-bin/bfd/../../binutils-gdb/bfd/plugin.c:171: undefined reference to `dlerror' > -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