From owner-freebsd-ports@freebsd.org Sat Sep 19 18:15:23 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3044A9CF5AC for ; Sat, 19 Sep 2015 18:15:23 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 15AB61A79 for ; Sat, 19 Sep 2015 18:15:23 +0000 (UTC) (envelope-from jhs@berklix.com) Received: by mailman.ysv.freebsd.org (Postfix) id 122689CF5AB; Sat, 19 Sep 2015 18:15:23 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11B029CF5AA for ; Sat, 19 Sep 2015 18:15:23 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from slim.berklix.org (slim.berklix.org [94.185.90.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1CDF81A76; Sat, 19 Sep 2015 18:15:21 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mart.js.berklix.net (p5083CCEE.dip0.t-ipconnect.de [80.131.204.238]) (authenticated bits=128) by slim.berklix.org (8.14.5/8.14.5) with ESMTP id t8JHVnen084191; Sat, 19 Sep 2015 19:31:49 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id t8JHWU2R093900; Sat, 19 Sep 2015 19:32:30 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.7/8.14.7) with ESMTP id t8JHWCbv063405; Sat, 19 Sep 2015 19:32:24 +0200 (CEST) (envelope-from jhs@berklix.com) Message-Id: <201509191732.t8JHWCbv063405@fire.js.berklix.net> To: ports@FreeBSD.org cc: portmgr@FreeBSD.org Subject: graphics/jpeg-turbo breaks on strip-debug From: "Julian H. Stacey" Organization: http://berklix.com BSD Linux Unix Consultants, Munich Germany User-agent: EXMH on FreeBSD http://www.berklix.com/free/ X-URL: http://www.berklix.com/~jhs/cv/ Date: Sat, 19 Sep 2015 19:32:12 +0200 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Sep 2015 18:15:23 -0000 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." gnu/usr.bin/binutils/objcopy/objcopy.1:.IX Item "1." 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.