misc/getopt ===> Building for getopt-1.1.5 gmake[1]: Entering directory `/usr/ports/misc/getopt/work/getopt-1.1.5' cc -c -DLIBCGETOPT=0 -DWITHOUT_GETTEXT=0 -DLOCALEDIR=\"/usr/local/share/locale\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"getopt\" -Dprogram_version=\"1.1.5\" -I./gnu -O2 -pipe -I/usr/local/include -fno-strict-aliasing getopt.c -o getopt.o msgfmt -o po/ca.mo po/ca.po msgfmt -o po/cs.mo po/cs.po msgfmt -o po/da.mo po/da.po msgfmt -o po/de.mo po/de.po msgfmt -o po/es.mo po/es.po msgfmt -o po/et.mo po/et.po msgfmt -o po/eu.mo po/eu.po msgfmt -o po/fi.mo po/fi.po msgfmt -o po/fr.mo po/fr.po msgfmt -o po/gl.mo po/gl.po msgfmt -o po/hu.mo po/hu.po msgfmt -o po/id.mo po/id.po msgfmt -o po/it.mo po/it.po msgfmt -o po/ja.mo po/ja.po msgfmt -o po/nl.mo po/nl.po msgfmt -o po/pl.mo po/pl.po msgfmt -o po/pt_BR.mo po/pt_BR.po msgfmt -o po/ru.mo po/ru.po msgfmt -o po/sl.mo po/sl.po msgfmt -o po/sv.mo po/sv.po msgfmt -o po/tr.mo po/tr.po msgfmt -o po/uk.mo po/uk.po msgfmt -o po/vi.mo po/vi.po msgfmt -o po/zh_CN.mo po/zh_CN.po msgfmt -o po/zh_TW.mo po/zh_TW.po cc -L/usr/local/lib -lintl -o getopt getopt.o gnu/getopt.o gnu/getopt1.o gnu/getopt.o: file not recognized: File format not recognized cc: error: linker command failed with exit code 1 (use -v to see invocation) gmake[1]: *** [getopt] Error 1 gmake[1]: Leaving directory `/usr/ports/misc/getopt/work/getopt-1.1.5' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make: stopped in /usr/ports/misc/getopt compiles with out any issue on amd64
Auto-assigned to maintainer sunpoet@FreeBSD.org
Created attachment 147893 [details] getopt-i386.patch The source package contains two .o files in the gnu subdir and their's modification daet is later than the corresponding .c files, so make won't recompile the .c file. These .o files are x86-64 format, so the compiler does not accept them for i386 target.
A commit references this bug: Author: sunpoet Date: Wed Oct 1 20:16:17 UTC 2014 New revision: 369764 URL: https://svnweb.freebsd.org/changeset/ports/369764 Log: - Cleanup *.o from tarball PR: ports/194074 Submitted by: Vikash Badal <vikashb@where-ever.za.net> Changes: head/misc/getopt/Makefile
Committed. Thanks!
The patch is otherwise ok but WRKSRC is mispelled as WKRSRC. If changed to the proper WRKSRC the port builds fine.
A commit references this bug: Author: antoine Date: Thu Oct 9 08:13:18 UTC 2014 New revision: 370508 URL: https://svnweb.freebsd.org/changeset/ports/370508 Log: MFH r369809 - Fix typo MFH r369764 - Cleanup *.o from tarball PR: ports/194074 Submitted by: Vikash Badal <vikashb@where-ever.za.net> Changes: _U branches/2014Q4/ branches/2014Q4/misc/getopt/Makefile