Bug 128434 - strip on non-i386 object in devel/cross-gcc
Summary: strip on non-i386 object in devel/cross-gcc
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Stanislav Sedov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-28 10:40 UTC by Emmanuel Vadot
Modified: 2008-12-07 09:42 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emmanuel Vadot 2008-10-28 10:40:04 UTC
The cross-gcc ports is trying to strip some object while installing.
Of course it fails on non-i386 binaries or libs.

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.
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.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-10-28 10:47:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->stas

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Stanislav Sedov freebsd_committer freebsd_triage 2008-12-06 16:25:06 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What build options were you using while building this port?
I can't reproduce this problem. Furthermore, it builds
successfully on build cluster. Have you performed the
full cleanup (make clean) before building this port?
There might be problems linked with it.

It may be helpfull also to upload the full build log
somewhere so I can take a look.

Thanks!

- -- 
Stanislav Sedov
ST4096-RIPE
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAkk6p20ACgkQK/VZk+smlYGXsQCffsqGDwOUcW+YJfhzRraZ1mhG
bQwAn3pLE8xJgO1fW40jj39PcYDw58kJ
=plhC
-----END PGP SIGNATURE-----
Comment 3 dfilter service freebsd_committer freebsd_triage 2008-12-06 18:25:50 UTC
stas        2008-12-06 18:25:36 UTC

  FreeBSD ports repository

  Modified files:
    devel/cross-gcc      Makefile 
  Log:
  - Do not strip target binaries. It causes problems in some cases.
  
  PR:             ports/128434
  Submitted by:   Emmanuel Vadot <elbarto@arcadebsd.org>
  
  Revision  Changes    Path
  1.10      +1 -0      ports/devel/cross-gcc/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Stanislav Sedov freebsd_committer freebsd_triage 2008-12-07 09:42:53 UTC
State Changed
From-To: open->closed

The fix was committed.