Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Oct 2008 10:39:08 GMT
From:      Emmanuel Vadot <elbarto@arcadebsd.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/128434: strip on non-i386 object in cross-gcc
Message-ID:  <200810281039.m9SAd8oU011665@www.freebsd.org>
Resent-Message-ID: <200810281040.m9SAe5lc043251@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810281039.m9SAd8oU011665>