From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: bug#20102: Problem with ld.so RUNPATH on armhf Date: Mon, 06 Apr 2015 17:02:17 -0400 Message-ID: <87d23hynqe.fsf@netris.org> References: <87y4n0ybdd.fsf@netris.org> <87pp7jh7y8.fsf@gnu.org> <87384f5goy.fsf@netris.org> <87oan16m4z.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfE9n-0000yb-JY for bug-guix@gnu.org; Mon, 06 Apr 2015 17:02:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfE9i-0003BM-MM for bug-guix@gnu.org; Mon, 06 Apr 2015 17:02:07 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:56790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfE9i-0003BG-J6 for bug-guix@gnu.org; Mon, 06 Apr 2015 17:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YfE9i-0000gh-3N for bug-guix@gnu.org; Mon, 06 Apr 2015 17:02:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87oan16m4z.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 06 Apr 2015 22:24:12 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 20102@debbugs.gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Could you send the output of: > > $(guix build -e '(@ (gnu packages commencement) gcc-final)' | grep -ve = -lib)/bin/gcc -dumpspecs > > It could be that the patching of config/gnu-user*.h ends up adding > -rpath in the wrong place. Here it is: --8<---------------cut here---------------start------------->8--- mhw@novena:~$ $(guix build -e '(@ (gnu packages commencement) gcc-final)' |= grep -ve -lib)/bin/gcc -dumpspecs *asm: %{mbig-endian:-EB} %{mlittle-endian:-EL} %(asm_cpu_spec) %{mapcs-*:-mapcs-%= *} %(subtarget_asm_float_spec) %{mthumb-interwork:-mthumb-interwork} %{mflo= at-abi=3D*} %{mfpu=3D*} %(subtarget_extra_asm_spec) *asm_debug: %{!g0:%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}} %{fdebug-prefix-map= =3D*:--debug-prefix-map %*} *asm_final: %{gsplit-dwarf:=20 objcopy --extract-dwo %{c:%{o*:%*}%{!o*:%b%O}}%{!c:%U%O} %{c:%{o= *:%:replace-extension(%{o*:%*} .dwo)}%{!o*:%b.dwo}}%{!c:%b.dwo}=20 objcopy --strip-dwo %{c:%{o*:%*}%{!o*:%b%O}}%{!c:%U%O} } *asm_options: %{-target-help:%:print-asm-header()} %{v} %{w:-W} %{I*} %a %Y %{c:%W{o*}%{!= o*:-o %w%b%O}}%{!c:-o %d%w%u%O} *invoke_as: %{!fwpa: %{fcompare-debug=3D*|fdump-final-insns=3D*:%:compare-debug-dump-= opt()} %{!S:-o %|.s | as %(asm_options) %m.s %A } } *cpp: %(subtarget_cpp_spec) %{mfloat-abi=3Dsoft:%{mfloat-abi=3Dhard: %e-= mfloat-abi=3Dsoft and -mfloat-abi=3Dhard may not be used together}} %{mbig-= endian:%{mlittle-endian: %e-mbig-endian and -mlittle-endian may not b= e used together}} *cpp_options: %(cpp_unique_options) %1 %{m*} %{std*&ansi&trigraphs} %{W*&pedantic*} %{w} = %{f*} %{g*:%{!g0:%{g*} %{!fno-working-directory:-fworking-directory}}} %{O*= } %{undef} %{save-temps*:-fpch-preprocess} *cpp_debug_options: %{d*} *cpp_unique_options: %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*&F*} %{P} %I %{MD:-MD %{!o:%b= .d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %= {MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{!MT:%{!MQ:%{MD|MMD:%{o*:-MQ %*}}}}}}} = %{remap} %{g3|ggdb3|gstabs3|gcoff3|gxcoff3|gvms3:-dD} %{!iplugindir*:%{fplu= gin*:%:find-plugindir()}} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{fmudflap:-D_MUD= FLAP -include mf-runtime.h} %{fmudflapth:-D_MUDFLAP -D_MUDFLAPTH -include m= f-runtime.h} %{E|M|MM:%W{o*}} *trad_capable_cpp: cc1 -E %{traditional|traditional-cpp:-traditional-cpp} *cc1: %{!mandroid|tno-android-cc:%{profile:-p};:%{profile:-p} %{!mglibc:%{!muclib= c:%{!mbionic: -mbionic}}} %{!fno-pic:%{!fno-PIC:%{!fpic:%{!fPIC: -fPIC}}}}} *cc1_options: %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}= } %{!iplugindir*:%{fplugin*:%:find-plugindir()}} %1 %{!Q:-quiet} %{!dumpbas= e:-dumpbase %B} %{d*} %{m*} %{aux-info*} %{fcompare-debug-second:%:compare-= debug-auxbase-opt(%b)} %{!fcompare-debug-second:%{c|S:%{o*:-auxbase-strip = %*}%{!o*:-auxbase %b}}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*}= %{w} %{std*&ansi&trigraphs} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Q= n:-fno-ident} %{Qy:} %{-help:--help} %{-target-help:--target-help} %{-versi= on:--version} %{-help=3D*:--help=3D%*} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %= b.s}}} %{fsyntax-only:-o %j} %{-param*} %{fmudflap|fmudflapth:-fno-builtin = -fno-merge-constants} %{coverage:-fprofile-arcs -ftest-coverage} *cc1plus: %{!mandroid|tno-android-cc:;:%{!fexceptions:%{!fno-exceptions: -fno-excepti= ons}} %{!frtti:%{!fno-rtti: -fno-rtti}}} *link_gcc_c_sequence: %{static:--start-group} %G %L %{static:--end-group}%{!static:%G} *link_ssp: %{fstack-protector:} *endfile: %{!mandroid|tno-android-ld:%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s;:= %{shared: crtend_so%O%s;: crtend_android%O%s}} *link: %{!static:--eh-frame-hdr} %{mbig-endian:%{march=3Darmv7-a|mcpu=3Dcortex-a5= |mcpu=3Dcortex-a7 |mcpu= =3Dcortex-a8|mcpu=3Dcortex-a9|mcpu=3Dcortex-a15 |mcpu=3Dmarvell-pj= 4 |mcpu=3Dgeneric-armv7-a |march= =3Darmv7-m|mcpu=3Dcortex-m3 |march=3Darmv7e-m|mcp= u=3Dcortex-m4 |march=3Darmv6-m|mcpu=3Dcortex-m0 = |march=3Darmv8-a :%{!r:--be8}}}%{!mandroid|t= no-android-ld:%{h*} %{static:-Bstatic} %{shared:-shared} %{symboli= c:-Bsymbolic} %{!static: %{rdynamic:-export-dynamic} -dynamic-= linker %{muclibc:/lib/ld-uClibc.so.0;:%{mbionic:/system/bin/linker;:/gnu/st= ore/fbdjazgwy3zyx8qc5z4ag0j78k2d7raw-glibc-2.21/lib/ld-linux-armhf.so.3}}} = -X %{mbig-endian:-EB} %{mlittle-endian:-EL} -m armelf_linux_eabi;:%{h= *} %{static:-Bstatic} %{shared:-shared} %{symbolic:-Bsymbolic} = %{!static: %{rdynamic:-export-dynamic} -dynamic-linker %{muclibc:= /lib/ld-uClibc.so.0;:%{mbionic:/system/bin/linker;:/gnu/store/fbdjazgwy3zyx= 8qc5z4ag0j78k2d7raw-glibc-2.21/lib/ld-linux-armhf.so.3}}} -X %{mbig-e= ndian:-EB} %{mlittle-endian:-EL} -m armelf_linux_eabi %{shared: -Bsymbolic}} *lib: %{!mandroid|tno-android-ld:-L/gnu/store/fbdjazgwy3zyx8qc5z4ag0j78k2d7raw-gl= ibc-2.21/lib %{!static:-rpath=3D/gnu/store/fbdjazgwy3zyx8qc5z4ag0j78k2d7raw= -glibc-2.21/lib %{!static-libgcc:-rpath=3D/gnu/store/fc8kqk3dazn6mcgcjxd931= 752b2pf3wj-gcc-4.8.4-lib/lib64 -rpath=3D/gnu/store/fc8kqk3dazn6mcgcjxd93175= 2b2pf3wj-gcc-4.8.4-lib/lib -lgcc_s}} %{pthread:-lpthread} %{shared:-lc} = %{!shared:%{mieee-fp:-lieee} %{profile:-lc_p}%{!profile:-lc}};:-L/gnu/st= ore/fbdjazgwy3zyx8qc5z4ag0j78k2d7raw-glibc-2.21/lib %{!static:-rpath=3D/gnu= /store/fbdjazgwy3zyx8qc5z4ag0j78k2d7raw-glibc-2.21/lib %{!static-libgcc:-rp= ath=3D/gnu/store/fc8kqk3dazn6mcgcjxd931752b2pf3wj-gcc-4.8.4-lib/lib64 -rpat= h=3D/gnu/store/fc8kqk3dazn6mcgcjxd931752b2pf3wj-gcc-4.8.4-lib/lib -lgcc_s}}= %{pthread:-lpthread} %{shared:-lc} %{!shared:%{mieee-fp:-lieee} %{pr= ofile:-lc_p}%{!profile:-lc}} %{!static: -ldl}} *mfwrap: %{static: %{fmudflap|fmudflapth: --wrap=3Dmalloc --wrap=3Dfree --wrap=3Dc= alloc --wrap=3Drealloc --wrap=3Dmmap --wrap=3Dmmap64 --wrap=3Dmunmap --wrap= =3Dalloca} %{fmudflapth: --wrap=3Dpthread_create}} %{fmudflap|fmudflapth: -= -wrap=3Dmain} *mflib: %{fmudflap|fmudflapth: -export-dynamic} *link_gomp: *libgcc: %{static|static-libgcc:-lgcc -lgcc_eh}%{!static:%{!static-libgcc:%{!shared-= libgcc:-lgcc --as-needed -lgcc_s --no-as-needed}%{shared-libgcc:-lgcc_s%{!s= hared: -lgcc}}}} *startfile: %{!mandroid|tno-android-ld:%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%= s;:crt1.o%s}} crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:= crtbegin.o%s};:%{shared: crtbegin_so%O%s;: %{static: crtbegin_static%O%s;:= crtbegin_dynamic%O%s}}} *cross_compile: 0 *version: 4.8.4 *multilib: . ; *multilib_defaults: marm mlittle-endian mfloat-abi=3Dhard mno-thumb-interwork *multilib_extra: *multilib_matches: *multilib_exclusions: *multilib_options: *multilib_reuse: *linker: collect2 *linker_plugin_file: *lto_wrapper: *lto_gcc: *link_libgcc: %D *md_exec_prefix: *md_startfile_prefix: *md_startfile_prefix_1: *startfile_prefix_spec: *sysroot_spec: --sysroot=3D%R *sysroot_suffix_spec: *sysroot_hdrs_suffix_spec: *self_spec: *subtarget_cpp_spec: %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT} *asm_cpu_spec: %{mcpu=3Dgeneric-*:-march=3D%*; :%{mcpu=3D*:-mcpu=3D%*} %{march=3D*:-mar= ch=3D%*}} *subtarget_extra_asm_spec: %{mabi=3Dapcs-gnu|mabi=3Datpcs:-meabi=3Dgnu;:-meabi=3D5} %{mcpu=3Darm8|mcpu= =3Darm810|mcpu=3Dstrongarm*|march=3Darmv4|mcpu=3Dfa526|mcpu=3Dfa626:--fix-v= 4bx} *subtarget_asm_float_spec: %{mapcs-float:-mfloat} *link_command: %{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S: %(linker) %{!fno-use-linker-p= lugin:%{flto|flto=3D*|fuse-linker-plugin: -plugin %(linker_plugin_file)= -plugin-opt=3D%(lto_wrapper) -plugin-opt=3D-fresolution=3D%u.res = %{!nostdlib:%{!nodefaultlibs:%:pass-through-libs(%(link_gcc_c_sequence))= }} }}%{flto|flto=3D*:%8---