From nobody@FreeBSD.org  Tue Sep 29 15:52:28 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 9528C1065670
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Sep 2009 15:52:28 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 6B3E78FC18
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Sep 2009 15:52:28 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n8TFqRi1066407
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Sep 2009 15:52:27 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n8TFqRdD066405;
	Tue, 29 Sep 2009 15:52:27 GMT
	(envelope-from nobody)
Message-Id: <200909291552.n8TFqRdD066405@www.freebsd.org>
Date: Tue, 29 Sep 2009 15:52:27 GMT
From: Zhukovsky Alexey <beetle@gambler.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: /usr/bin/ld: Please report this bug.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         139239
>Category:       gnu
>Synopsis:       ld(1) /usr/bin/ld: Please report this bug.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 29 16:00:12 UTC 2009
>Closed-Date:    Thu Feb 24 21:10:27 EST 2011
>Last-Modified:  Fri Feb 25 07:20:08 UTC 2011
>Originator:     Zhukovsky Alexey
>Release:        7.2 amd64
>Organization:
www.gambler.ru - logical online games (not casino or game play!)
>Environment:
FreeBSD mig.gambler.ru 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 07:18:07 UTC 2009     root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
g++   -m32 -Lmysql32 -L/usr/lib32/ -lmysqlclient  -pg -o gambler.run  .. my object files.o ...
/usr/bin/ld: warning: libcrypt.so.4, needed by mysql32/libmysqlclient.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libm.so.5, needed by mysql32/libmysqlclient.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libz.so.4, needed by mysql32/libmysqlclient.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libc.so.7, needed by mysql32/libmysqlclient.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: i386:x86-64 architecture of input file `/usr/lib/gcrt1.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `/usr/lib/crti.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `/usr/lib/crtbegin.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `/usr/lib/crtend.o' is incompatible with i386 output
/usr/bin/ld: warning: i386:x86-64 architecture of input file `/usr/lib/crtn.o' is incompatible with i386 output
/usr/bin/ld: BFD 2.15 [FreeBSD] 2004-05-23 internal error, aborting at /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/reloc.c line 4274 in bfd_generic_get_relocated_section_contents

/usr/bin/ld: Please report this bug.
>How-To-Repeat:
Im trying to build 32bit executable on 64bit machine
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: eadler 
State-Changed-When: Thu Feb 24 08:12:26 EST 2011 
State-Changed-Why:  
Is this still an issue with the recent binutils update? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=139239 
State-Changed-From-To: feedback->closed 
State-Changed-By: eadler 
State-Changed-When: Thu Feb 24 21:09:26 EST 2011 
State-Changed-Why:  
Feedback said that they no longer use ld in this manner and are unable to test 

http://www.freebsd.org/cgi/query-pr.cgi?pr=139239 

From: Bruce Cran <bruce@cran.org.uk>
To: bug-followup@freebsd.org,
 beetle@gambler.ru
Cc:  
Subject: Re: gnu/139239: ld(1) /usr/bin/ld: Please report this bug.
Date: Fri, 25 Feb 2011 07:18:47 +0000

 It looks like this has been fixed, too: passing -m32 automatically causes ld 
 to link with libraries in /usr/lib32 on 9-CURRENT.
  
 -- 
 Bruce Cran
>Unformatted:
