Can objcopy(1) handle coff? (was update math/mprime)

Mario Sergio Fujikawa Ferreira lioux at
Mon May 23 18:59:46 PDT 2005


	I am having trouble updating the port math/mprime.
I need to convert from .obj coff to .o elf32. However, I get a
complain "Invalid bfd target"

	I have the sample port at

	I believe that the problem is related to the fact
that we are unable to handle coff files. Am I doing something wrong?

	Just try building it to see the problem. 

FreeBSD 5.4-STABLE FreeBSD 5.4-STABLE #3: Sun May  8 10:28:48 BRT 2005     lioux at exxodus:/usr/obj/usr/src/sys/LIOUX  i386

Script started on Mon May 23 22:37:29 2005
===>  Extracting for mprime-
=> Checksum OK for mprime/
=> Checksum OK for mprime/prime95-text-2004022600-23.5.tar.bz2.
===>   mprime- depends on executable: unzip - found
/bin/cp /usr/home/lioux/src/myports/ports/math/mprime/files/makebsd /usr/home/lioux/src/myports/ports/math/mprime/work/linux
===>  Patching for mprime-
===>   mprime- depends on executable: gmake - found
===>  Configuring for mprime-
===>  Building for mprime-
rm -f mprime sprime prime.o menu.o mult.o mult1.o mult2.o mult2a.o mult3.o mult3a.o mult4.o mult4a.o mult4b.o mult1p.o mult2p.o mult2ap.o mult3p.o mult3ap.o mult3q.o mult3aq.o mult4p.o mult4ap.o mult4bp.o mult4q.o mult4aq.o mult4bq.o mult1aux.o mult2aux.o mult3aux.o mult3auq.o mult4aux.o mult4auq.o xmult1.o xmult1ax.o xmult2.o xmult2a.o xmult2ax.o xmult3.o xmult3a.o xmult3ax.o ecmhelp.o cpuid.o dummy4.o dummy8.o dummy12.o dummy16.o dummy20.o dummy24.o dummy28.o dummyt4.o dummyt8.o dummyt12.o dummyt16.o dummyt20.o dummyt24.o dummyt28.o
[ ! -e ../security.h ] && touch ../security.h || true
[ ! -e ../security.c ] && touch ../security.c || true
/usr/local/libexec/ccache/cc -O -pipe -pipe -funit-at-a-time -m3dnow -msse -mfpmath=sse,387 -falign-functions -fforce-addr -fforce-mem -foptimize-register-move -foptimize-sibling-calls -fpeel-loops -fprefetch-loop-arrays -freorder-blocks -march=athlon-xp -I..   -malign-double -c prime.c
/usr/local/libexec/ccache/cc -O -pipe -pipe -funit-at-a-time -m3dnow -msse -mfpmath=sse,387 -falign-functions -fforce-addr -fforce-mem -foptimize-register-move -foptimize-sibling-calls -fpeel-loops -fprefetch-loop-arrays -freorder-blocks -march=athlon-xp -I..   -malign-double -c menu.c
menu.c: In function `options_preferences':
menu.c:698: warning: the address of `PRIMENET', will always evaluate as `true'
menu.c:700: warning: the address of `PRIMENET', will always evaluate as `true'
menu.c:702: warning: the address of `PRIMENET', will always evaluate as `true'
objcopy -v --input-target=coff-i386 --output-target=elf32-i386-freebsd ../prime95/mult.obj mult.o
objcopy: ../prime95/mult.obj: Invalid bfd target
gmake: *** [mult.o] Error 1
*** Error code 2

Stop in /usr/home/lioux/src/myports/ports/math/mprime.

Script done on Mon May 23 22:37:32 2005

ps: Please, CC: me because I do not subscribe to this mailing list.

Mario S F Ferreira - DF - Brazil - "I guess this is a signature."
feature, n: a documented bug | bug, n: an undocumented feature
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-stable mailing list