From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24592 invoked by alias); 10 Apr 2014 05:12:23 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 24563 invoked by uid 48); 10 Apr 2014 05:12:22 -0000 From: "chrisj at rtems dot org" To: gdb-prs@sourceware.org Subject: [Bug sim/16827] New: Duplication symbol _sim_addr_range_hit_p in sim common on Mavrick Date: Thu, 10 Apr 2014 05:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: sim X-Bugzilla-Version: 7.7 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chrisj at rtems dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q2/txt/msg00037.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16827 Bug ID: 16827 Summary: Duplication symbol _sim_addr_range_hit_p in sim common on Mavrick Product: gdb Version: 7.7 Status: NEW Severity: normal Priority: P2 Component: sim Assignee: unassigned at sourceware dot org Reporter: chrisj at rtems dot org CC: vapier at gentoo dot org Created attachment 7544 --> https://sourceware.org/bugzilla/attachment.cgi?id=7544&action=edit Clean up and fix the inline of the sim-arange code. Building RTEMS targets with a simulator fail on Mavrick using cc etc with: duplicate symbol _sim_addr_range_hit_p in: nrun.o libsim.a(sim-cpu.o) printed once for each object file libsim.a. The failure happens with the bfin and h8300 targets and I suspect all will fail. The same targets build on FreeBSD 10. The configure command line is: ../gdb-7.7/configure --build=x86_64-apple-darwin13.1.0 --host=x86_64-apple-darwin13.1.0 --target=h8300-rtems4.11 --verbose --disable-nls --without-included-gettext --disable-win32-registry --disable-werror --enable-sim --without-zlib --with-expat --with-python --prefix=/Users/chris/development/rtems/4.11 --bindir=/Users/chris/development/rtems/4.11/bin --exec-prefix=/Users/chris/development/rtems/4.11 --includedir=/Users/chris/development/rtems/4.11/include --libdir=/Users/chris/development/rtems/4.11/lib --mandir=/Users/chris/development/rtems/4.11/share/man --infodir=/Users/chris/development/rtems/4.11/share/info I attach a patch which works on Mavrick and FreeBSD. I am not sure it is 100% as some of the logic used in the way the inline, extern and extern inline are handled left me confused so I just cleaned up the code. -- You are receiving this mail because: You are on the CC list for the bug.