From owner-freebsd-ports@freebsd.org Sat Sep 19 18:48:01 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 E537EA05558 for ; Sat, 19 Sep 2015 18:48:01 +0000 (UTC) (envelope-from antoine.brodin.freebsd@gmail.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 C58021028 for ; Sat, 19 Sep 2015 18:48:01 +0000 (UTC) (envelope-from antoine.brodin.freebsd@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id C16B3A05557; Sat, 19 Sep 2015 18:48:01 +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 A7298A05555 for ; Sat, 19 Sep 2015 18:48:01 +0000 (UTC) (envelope-from antoine.brodin.freebsd@gmail.com) Received: from mail-ig0-x231.google.com (mail-ig0-x231.google.com [IPv6:2607:f8b0:4001:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 68F431025; Sat, 19 Sep 2015 18:48:01 +0000 (UTC) (envelope-from antoine.brodin.freebsd@gmail.com) Received: by igbkq10 with SMTP id kq10so37901472igb.0; Sat, 19 Sep 2015 11:48:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=hU0ie0uKFsjrCpzZZcL3XYapOWdJVWJYUTn+Cc/B/Ek=; b=serSBWnE+sHSt+4BI/zutVwJhyhtqVHtyuA+ZYxIhv678v2cbR+uWGPh+P/K0BvNAV MkaqL1Tl8gSv3cJHD1FQ5UgDSeovLrZKApiNQNJYHK0FPalaQ/eKwXKIDiwlxxacM6XI hbTmqtNJrAEMKy+gC0uUzFQ8z0COhasqV8nLyZqwT4ec7M9XpeFAoZisjw4jaPl5rLR/ 5Lw3917iGnSva4PJhJHqJ4hRvTxsFUwFK/JF8s1JgEs0asZ9KvvyvvC7DXvmBwxkmUkt cU0uGC1VJIuoHjsKRRKdqgLzg/ihDC4MvlRHRzwF8Q5+PQwiXqhQ0QegEB/PwA794ZXe HGUQ== MIME-Version: 1.0 X-Received: by 10.50.137.103 with SMTP id qh7mr4174962igb.24.1442688480425; Sat, 19 Sep 2015 11:48:00 -0700 (PDT) Sender: antoine.brodin.freebsd@gmail.com Received: by 10.107.138.36 with HTTP; Sat, 19 Sep 2015 11:48:00 -0700 (PDT) In-Reply-To: <201509191732.t8JHWCbv063405@fire.js.berklix.net> References: <201509191732.t8JHWCbv063405@fire.js.berklix.net> Date: Sat, 19 Sep 2015 18:48:00 +0000 X-Google-Sender-Auth: tW-rTFZ0jLl_y_KUWMhTR_N_Dro Message-ID: Subject: Re: graphics/jpeg-turbo breaks on strip-debug From: Antoine Brodin To: "Julian H. Stacey" Cc: ports@freebsd.org, FreeBSD Ports Management Team , Ed Maste Content-Type: text/plain; charset=UTF-8 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:48:02 -0000 On Sat, Sep 19, 2015 at 5:32 PM, Julian H. Stacey wrote: > 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 ? Hi, Could you check that the version of nasm you are using has this fix: https://svnweb.freebsd.org/changeset/ports/384314 It's supposed to fix this issue. Cheers, Antoine > 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.