all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 'libstdc++.so.6' cannot be found in RUNPATH ()
@ 2018-06-25 18:45 Hinko Kocevar
  2018-06-25 19:03 ` Pierre Neidhardt
  2018-06-26 11:43 ` Ludovic Courtès
  0 siblings, 2 replies; 6+ messages in thread
From: Hinko Kocevar @ 2018-06-25 18:45 UTC (permalink / raw)
  To: help-guix@gnu.org

Hi,

I have a prebuilt shared library that depends on 'libstdc++.so.6'. For that I installed gcc@5.4.0:lib and added it to the propagated-inputs:

    (propagated-inputs
      `(("gcc:lib" ,gcc "lib")))

The package builds fine, but validate-runpath phase fails with messages:

starting phase `validate-runpath'
validating RUNPATH of 10 binaries in "/gnu/store/i7qkw5j3d0rm00l2k88p0bbaj6b204fh-epics-adandor-R2-7/lib"...
/gnu/store/i7qkw5j3d0rm00l2k88p0bbaj6b204fh-epics-adandor-R2-7/lib/linux-x86_64-debug/libandor.so: error: depends on 'libstdc++.so.6', which cannot be found in RUNPATH ()
/gnu/store/i7qkw5j3d0rm00l2k88p0bbaj6b204fh-epics-adandor-R2-7/lib/linux-x86_64-debug/libandor.so: error: depends on 'libgcc_s.so.1', which cannot be found in RUNPATH ()
/gnu/store/i7qkw5j3d0rm00l2k88p0bbaj6b204fh-epics-adandor-R2-7/lib/linux-x86_64-debug/libandor.so.2: error: depends on 'libstdc++.so.6', which cannot be found in RUNPATH ()
/gnu/store/i7qkw5j3d0rm00l2k88p0bbaj6b204fh-epics-adandor-R2-7/lib/linux-x86_64-debug/libandor.so.2: error: depends on 'libgcc_s.so.1', which cannot be found in RUNPATH ()
/gnu/store/i7qkw5j3d0rm00l2k88p0bbaj6b204fh-epics-adandor-R2-7/lib/linux-x86_64-debug/libshamrockcif.so: error: depends on 'libstdc++.so.6', which cannot be found in RUNPATH ()
/gnu/store/i7qkw5j3d0rm00l2k88p0bbaj6b204fh-epics-adandor-R2-7/lib/linux-x86_64-debug/libshamrockcif.so: error: depends on 'libgcc_s.so.1', which cannot be found in RUNPATH ()
/gnu/store/i7qkw5j3d0rm00l2k88p0bbaj6b204fh-epics-adandor-R2-7/lib/linux-x86_64-debug/libshamrockcif.so.2: error: depends on 'libstdc++.so.6', which cannot be found in RUNPATH ()
/gnu/store/i7qkw5j3d0rm00l2k88p0bbaj6b204fh-epics-adandor-R2-7/lib/linux-x86_64-debug/libshamrockcif.so.2: error: depends on 'libgcc_s.so.1', which cannot be found in RUNPATH ()
/gnu/store/i7qkw5j3d0rm00l2k88p0bbaj6b204fh-epics-adandor-R2-7/lib/linux-x86_64/libandor.so: error: depends on 'libstdc++.so.6', which cannot be found in RUNPATH ()
/gnu/store/i7qkw5j3d0rm00l2k88p0bbaj6b204fh-epics-adandor-R2-7/lib/linux-x86_64/libandor.so: error: depends on 'libgcc_s.so.1', which cannot be found in RUNPATH ()
/gnu/store/i7qkw5j3d0rm00l2k88p0bbaj6b204fh-epics-adandor-R2-7/lib/linux-x86_64/libandor.so.2: error: depends on 'libstdc++.so.6', which cannot be found in RUNPATH ()
/gnu/store/i7qkw5j3d0rm00l2k88p0bbaj6b204fh-epics-adandor-R2-7/lib/linux-x86_64/libandor.so.2: error: depends on 'libgcc_s.so.1', which cannot be found in RUNPATH ()
/gnu/store/i7qkw5j3d0rm00l2k88p0bbaj6b204fh-epics-adandor-R2-7/lib/linux-x86_64/libshamrockcif.so: error: depends on 'libstdc++.so.6', which cannot be found in RUNPATH ()
/gnu/store/i7qkw5j3d0rm00l2k88p0bbaj6b204fh-epics-adandor-R2-7/lib/linux-x86_64/libshamrockcif.so: error: depends on 'libgcc_s.so.1', which cannot be found in RUNPATH ()
/gnu/store/i7qkw5j3d0rm00l2k88p0bbaj6b204fh-epics-adandor-R2-7/lib/linux-x86_64/libshamrockcif.so.2: error: depends on 'libstdc++.so.6', which cannot be found in RUNPATH ()
/gnu/store/i7qkw5j3d0rm00l2k88p0bbaj6b204fh-epics-adandor-R2-7/lib/linux-x86_64/libshamrockcif.so.2: error: depends on 'libgcc_s.so.1', which cannot be found in RUNPATH ()
phase `validate-runpath' failed after 0.0 seconds


I can see the path to gcc-5.4.0-lib/lib in exported LIBRARY_PATH inside the the environment-variables, after keep the build tree. If I enter the environment and then issue ldd the results looks like this:

hinxx@obzen /tmp/guix-build-epics-adandor-R2-7.drv-0/ADAndor-R2-7 $ ldd /gnu/store/y7i1a9nv3y45zm2zg1sp2wa0nlzdw9f0-epics-adandor-R2-7/lib/linux-x86_64/libandor.so
ldd: warning: you do not have execution permission for `/gnu/store/y7i1a9nv3y45zm2zg1sp2wa0nlzdw9f0-epics-adandor-R2-7/lib/linux-x86_64/libandor.so'
	linux-vdso.so.1 (0x00007ffd4b5fd000)
	libpthread.so.0 => /gnu/store/n6nvxlk2j8ysffjh3jphn1k5silnakh6-glibc-2.25/lib/libpthread.so.0 (0x00007f4ca7abe000)
	libdl.so.2 => /gnu/store/n6nvxlk2j8ysffjh3jphn1k5silnakh6-glibc-2.25/lib/libdl.so.2 (0x00007f4ca78ba000)
	librt.so.1 => /gnu/store/n6nvxlk2j8ysffjh3jphn1k5silnakh6-glibc-2.25/lib/librt.so.1 (0x00007f4ca76b2000)
	libstdc++.so.6 => not found
	libm.so.6 => /gnu/store/n6nvxlk2j8ysffjh3jphn1k5silnakh6-glibc-2.25/lib/libm.so.6 (0x00007f4ca73a0000)
	libgcc_s.so.1 => not found
	libc.so.6 => /gnu/store/n6nvxlk2j8ysffjh3jphn1k5silnakh6-glibc-2.25/lib/libc.so.6 (0x00007f4ca7001000)
	/gnu/store/n6nvxlk2j8ysffjh3jphn1k5silnakh6-glibc-2.25/lib/ld-linux-x86-64.so.2 (0x00007f4ca85b4000)



Any ideas why is it failing to locate libstdc++.so.6?

TIA,
Hinko

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-06-27 17:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-25 18:45 'libstdc++.so.6' cannot be found in RUNPATH () Hinko Kocevar
2018-06-25 19:03 ` Pierre Neidhardt
2018-06-25 19:57   ` Hinko Kocevar
2018-06-26 11:43 ` Ludovic Courtès
2018-06-26 12:35   ` Hinko Kocevar
2018-06-27 17:53     ` Timothy Sample

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.