From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 27 09:46:20 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9EE4516A417 for ; Fri, 27 Jul 2007 09:46:20 +0000 (UTC) (envelope-from sharadc@niksun.com) Received: from in.niksun.com (210.18.76.166.sify.net [210.18.76.166]) by mx1.freebsd.org (Postfix) with ESMTP id 47D3C13C478 for ; Fri, 27 Jul 2007 09:46:20 +0000 (UTC) (envelope-from sharadc@niksun.com) Received: from sharadc.niksun.com (unknown [10.60.5.27]) by in.niksun.com (Postfix) with ESMTP id 68CB85D5E for ; Fri, 27 Jul 2007 15:21:08 +0530 (IST) From: Sharad Chandra Organization: Niksun India To: "FreeBSD Hackers" Date: Fri, 27 Jul 2007 15:13:48 +0530 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707271513.48639.sharadc@niksun.com> Subject: gcc -m32 option on amd64. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jul 2007 09:46:20 -0000 Hi guys, I am trying gcc -m32 on freebsd 6.1 amd64 env, but it does not seems to be working. i also installed /usr/port/lang/linux-libgcc/ but did not help what i did is=> echo "main () {}" > t.c; gcc -m32 t.c /usr/bin/ld: skipping incompatible /usr/local/lib/gcc/x86_64-portbld-freebsd6.1/4.2.0/gcc/x86_64-portbld-freebsd6.1/4.2.0/libgcc.a when searching for -lgcc /usr/bin/ld: cannot find -lgcc collect2: ld returned 1 exit status how can we make this working? Thanks Sharad Chandra