Date: Sat, 19 Sep 2015 19:32:12 +0200 From: "Julian H. Stacey" <jhs@berklix.com> To: ports@FreeBSD.org Cc: portmgr@FreeBSD.org Subject: graphics/jpeg-turbo breaks on strip-debug Message-ID: <201509191732.t8JHWCbv063405@fire.js.berklix.net>
next in thread | raw e-mail | index | archive | help
Hi ports@ cc portmgr@ as MAINTAINER= of graphics/jpeg-turbo graphics/jpeg-turbo breaks on strip-debug I've commented out all occurences I can find, but it's still breaking. Any ideas ? Or a fix even ? On current, kernel & src from yesterday, ports todays uname -a FreeBSD lapr.js.berklix.net 11.0-CURRENT FreeBSD 11.0-CURRENT #12135: Thu Sep 17 14:54:15 CEST 2015 jhs@lapr.js.berklix.net:/usr/src/sys/amd64/compile/LAPR.small amd64 rm -r /var/db/ports/graphics_jpeg-turbo cd /usr/ports/graphics/jpeg-turbo ; make clean ; make strip --strip-debug /data/release/11.0-CURRENT/usr/ports/graphics/jpeg-turbo/work/stage/usr/local/lib/libjpeg.a strip: elf_update() failed: Layout constraint violation *** Error code 1 file /data/release/11.0-CURRENT/usr/ports/graphics/jpeg-turbo/work/stage/usr/local/lib/libjpeg.a /data/release/11.0-CURRENT/usr/ports/graphics/jpeg-turbo/work/\ stage/usr/local/lib/libjpeg.a: current ar archive -rwxr-xr-x 1 root wheel 560734 Sep 19 16:06 strip --strip-debug /data/release/11.0-CURRENT/usr/ports/graphics/\ jpeg-turbo/work/stage/usr/local/lib/libjpeg.a strip: elf_update() failed: Layout constraint violation strip /data/release/11.0-CURRENT/usr/ports/graphics/jpeg-turbo/work/stage/usr/local/lib/libjpeg.a Succeeded -rwxr-xr-x 1 root wheel 411050 Sep 19 16:08 /data/release/\ 11.0-CURRENT/usr/ports/graphics/jpeg-turbo/work/stage/\ usr/local/lib/libjpeg.a* file `which strip` /usr/bin/strip: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 11.0 (1100079), stripped strip-debug is not in a clean /usr/ports/graphics/jpeg-turbo/ but strip-debug turns up during building: work/libjpeg-turbo-1.4.1/aclocal.m4: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" work/libjpeg-turbo-1.4.1/configure.libtool.bak: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" work/libjpeg-turbo-1.4.1/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" work/libjpeg-turbo-1.4.1/libtool:old_striplib="strip --strip-debug" strip-debug is coming from a macro or include, but not from my /etc/make.conf or includes MK/Uses/kmod.mk:STRIP_CMD+= --strip-debug # do not strip kernel symbols Commented out rm -r /var/db/ports/graphics_jpeg-turbo cd /usr/ports/graphics/jpeg-turbo ; make clean ; make Still breaks cd /usr/share/mk Grep strip-debug bsd.lib.mk: ${OBJCOPY} --strip-debug --add-gnu-debuglink=${SHLIB_NAME}.debug \ bsd.prog.mk: ${OBJCOPY} --strip-debug --add-gnu-debuglink=${PROGNAME}.debug \ rm -r /var/db/ports/graphics_jpeg-turbo cd /usr/ports/graphics/jpeg-turbo ; make clean ; make MK_DEBUG_FILES=no strip --strip-debug /data/release/11.0-CURRENT/usr/ports/graphics/jpeg-turbo/work/stage/\ usr/local/lib/libjpeg.a strip: elf_update() failed: Layout constraint violation PS I did a trawl for strip-debug ports/ Mk/Uses/kmod.mk:STRIP_CMD+= --strip-debug # do not strip kernel symbols devel/nasm/files/patch-elf64-alignment:% strip -o /dev/null --strip-debug jccolss2-64.o emulators/virtualbox-ose/files/extrapatch-Config.kmk:+# objcopy --strip-debug $(out) emulators/virtualbox-ose/files/extrapatch-Config.kmk:- objcopy --strip-debug $(out) src/ contrib/apr/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/binutils/bfd/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/binutils/binutils/ChangeLog-0203: (strip): Document -d as an alias for --strip-debug. contrib/binutils/binutils/ChangeLog-0203: --strip-debug. contrib/binutils/binutils/ChangeLog-0203: Mention that --strip-debug removes sections as well. contrib/binutils/binutils/NEWS: those sections that would be stripped out by --strip-debug. The idea is that contrib/binutils/binutils/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/binutils/binutils/doc/binutils.7: [-g|--strip-debug] contrib/binutils/binutils/doc/binutils.7: [-S|-g|-d|--strip-debug] contrib/binutils/binutils/doc/binutils.7:.It --strip-debug contrib/binutils/binutils/doc/binutils.7:.Li objcopy --strip-debug foo contrib/binutils/binutils/doc/binutils.7:.Li strip --strip-debug foo contrib/binutils/binutils/doc/binutils.7:.Op --strip-debug contrib/binutils/binutils/doc/binutils.texi: [@option{-g}|@option{--strip-debug}] contrib/binutils/binutils/doc/binutils.texi: [@option{-S}|@option{-g}|@option{-d}|@option{--strip-debug}] contrib/binutils/binutils/doc/binutils.texi:@item Run @code{objcopy --strip-debug foo} contrib/binutils/binutils/doc/binutils.texi:@item Run @code{objcopy --strip-debug foo} to create a contrib/binutils/binutils/doc/binutils.texi:@item Run @code{strip --strip-debug foo} contrib/binutils/binutils/doc/binutils.texi:@itemx --strip-debug contrib/binutils/binutils/doc/binutils.texi:When stripping a file, perhaps with @option{--strip-debug} or contrib/binutils/binutils/doc/binutils.texi:stripped by @option{--strip-debug} and leaving the debugging sections contrib/binutils/binutils/objcopy.c: -g --strip-debug Remove all debugging symbols & sections\n\ contrib/binutils/binutils/objcopy.c: -g -S -d --strip-debug Remove all debugging symbols & sections\n\ contrib/binutils/binutils/objcopy.c: {"strip-debug", no_argument, 0, 'S'}, contrib/binutils/binutils/objcopy.c: {"strip-debug", no_argument, 0, 'g'}, contrib/binutils/binutils/po/binutils.pot:" -g --strip-debug Remove all debugging symbols & sections\n" contrib/binutils/binutils/po/binutils.pot:" -g -S -d --strip-debug Remove all debugging symbols & sections\n" contrib/binutils/gas/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/binutils/ld/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/binutils/ld/ld.7:.It --strip-debug contrib/binutils/ld/ld.texinfo:@itemx --strip-debug contrib/binutils/ld/ld.texinfo:@kindex --strip-debug contrib/binutils/ld/lexsup.c: { {"strip-debug", no_argument, NULL, 'S'}, contrib/binutils/libtool.m4: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/binutils/opcodes/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/elftoolchain/elfcopy/elfcopy.1:.It Fl d | Fl g | Fl -strip-debug contrib/elftoolchain/elfcopy/elfcopy.1:.Op Fl d | Fl g | Fl -strip-debug contrib/elftoolchain/elfcopy/main.c: {"strip-debug", no_argument, 0, 'g'}, contrib/elftoolchain/elfcopy/main.c: {"strip-debug", no_argument, NULL, 'S'}, contrib/elftoolchain/elfcopy/main.c: -d | -g | --strip-debug Remove debugging information from the output.\n\ contrib/elftoolchain/elfcopy/main.c: -d | -g | -S | --strip-debug Remove debugging symbols.\n\ contrib/elftoolchain/elfcopy/strip.1:.It Fl d | Fl g | Fl S | Fl -strip-debug contrib/elftoolchain/elfcopy/strip.1:.Op Fl d | Fl g | Fl S | Fl -strip-debug contrib/file/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/file/m4/libtool.m4: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/gcclibs/libgomp/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/gdb/ltconfig: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/ldns/aclocal.m4: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/ldns/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/ldns/m4/libtool.m4: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/libxo/m4/libtool.m4: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/llvm/lib/Transforms/IPO/StripSymbols.cpp:INITIALIZE_PASS(StripDebugDeclare, "strip-debug-declare", contrib/llvm/tools/opt/opt.cpp: // If the -strip-debug command line option was specified, add it. contrib/llvm/tools/opt/opt.cpp:StripDebug("strip-debug", contrib/ntp/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/ntp/sntp/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/ntp/sntp/libevent/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/ntp/sntp/libevent/m4/libtool.m4: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/ntp/sntp/m4/libtool.m4: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/ofed/libibcm/aclocal.m4: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/ofed/libibcm/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/ofed/librdmacm/aclocal.m4: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/ofed/librdmacm/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/openbsm/aclocal.m4: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/openbsm/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/openbsm/m4/libtool.m4: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/openpam/aclocal.m4: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/openpam/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/sqlite3/aclocal.m4: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/sqlite3/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/subversion/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/unbound/aclocal.m4: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" contrib/unbound/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" crypto/heimdal/configure: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" gnu/usr.bin/binutils/ld/ld.1:.IX Item "--strip-debug" gnu/usr.bin/binutils/objcopy/objcopy.1:.IX Item "--strip-debug" gnu/usr.bin/binutils/objcopy/objcopy.1:.IX Item "1.<Run objcopy --strip-debug foo to create a>" gnu/usr.bin/binutils/objcopy/objcopy.1:.IX Item "1.<Run objcopy --strip-debug foo>" share/mk/bsd.lib.mk: ${OBJCOPY} --strip-debug --add-gnu-debuglink=${SHLIB_NAME}.debug \ share/mk/bsd.prog.mk: ${OBJCOPY} --strip-debug --add-gnu-debuglink=${PROGNAME}.debug \ sys/conf/kern.post.mk: ${OBJCOPY} --strip-debug ${.TARGET} sys/conf/kern.post.mk: ${OBJCOPY} --strip-debug --add-gnu-debuglink=${KERNEL_KO}.symbols\ sys/conf/kmod.mk: ${OBJCOPY} --strip-debug ${.TARGET} sys/conf/kmod.mk: ${OBJCOPY} --strip-debug --add-gnu-debuglink=${PROG}.symbols\ Cheers, Julian -- Julian Stacey, BSD Linux Unix C Sys Eng Consultant Munich http://berklix.com Reply after previous text, like a play - Not before, which looses context. Indent previous text with "> " Insert new lines before 80 chars. Send plain text, Not quoted-printable, Not HTML, Not ms.doc, Not base64.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509191732.t8JHWCbv063405>