From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Oct 28 10:40:05 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 642B4106566C for ; Tue, 28 Oct 2008 10:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 420CA8FC2B for ; Tue, 28 Oct 2008 10:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9SAe5C0043252 for ; Tue, 28 Oct 2008 10:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9SAe5lc043251; Tue, 28 Oct 2008 10:40:05 GMT (envelope-from gnats) Resent-Date: Tue, 28 Oct 2008 10:40:05 GMT Resent-Message-Id: <200810281040.m9SAe5lc043251@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Emmanuel Vadot Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C0971065681 for ; Tue, 28 Oct 2008 10:39:09 +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 0C3E58FC3C for ; Tue, 28 Oct 2008 10:39:09 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id m9SAd8TN011666 for ; Tue, 28 Oct 2008 10:39:08 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id m9SAd8oU011665; Tue, 28 Oct 2008 10:39:08 GMT (envelope-from nobody) Message-Id: <200810281039.m9SAd8oU011665@www.freebsd.org> Date: Tue, 28 Oct 2008 10:39:08 GMT From: Emmanuel Vadot To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/128434: strip on non-i386 object in cross-gcc X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 10:40:05 -0000 >Number: 128434 >Category: ports >Synopsis: strip on non-i386 object in cross-gcc >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 28 10:40:04 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Emmanuel Vadot >Release: 7.0-RELEASE-p4 >Organization: ArcadeBSD >Environment: FreeBSD khan.epitech.net 7.0-RELEASE-p4 FreeBSD 7.0-RELEASE-p4 #0: Tue Sep 2 19:32:35 UTC 2008 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: The cross-gcc ports is trying to strip some object while installing. Of course it fails on non-i386 binaries or libs. >How-To-Repeat: $ cd /usr/ports/devel/cross-gcc $ make TGTARCH=m68k TGTABI=elf install (should repeat for each TGTARCH) .. # install SIM stuff install -s -o root -g wheel -m 555 sim-crt0.o /usr/local/m68k-elf/lib/sim-crt0.o strip: /usr/local/m68k-elf/lib/sim-crt0.o: File format not recognized install: wait: No such file or directory gmake[3]: *** [install_m68k] Error 70 gmake[3]: Leaving directory `/usr/ports/devel/cross-gcc/work/gcc-4.2.3/m68k-elf/libgloss/m68k' gmake[2]: *** [install] Error 2 gmake[2]: Leaving directory `/usr/ports/devel/cross-gcc/work/gcc-4.2.3/m68k-elf/libgloss' gmake[1]: *** [install-target-libgloss] Error 2 gmake[1]: Leaving directory `/usr/ports/devel/cross-gcc/work/gcc-4.2.3' gmake: *** [install] Error 2 *** Error code 2 Stop in /usr/ports/devel/cross-gcc. *** Error code 1 Stop in /usr/ports/devel/cross-gcc. >Fix: $ mv /usr/bin/strip /usr/bin/strip.orig $ cat << EOF > /usr/bin/strip > #!/bin/sh > /usr/bin/strip.orig $@ > return 0 > EOF $ chmod +x /usr/bin/strip $ make TGTARCH=m68k TGTABI=elf install Or use the TGTARCH-TGTABI-strip installed from binutils but I don't know how to fix with this solution. >Release-Note: >Audit-Trail: >Unformatted: