From: Hinko Kocevar <Hinko.Kocevar@esss.se>
To: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: 'libstdc++.so.6' cannot be found in RUNPATH ()
Date: Mon, 25 Jun 2018 18:45:18 +0000 [thread overview]
Message-ID: <603614f230c34b95bb3605c455d2f16b@esss.se> (raw)
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
next reply other threads:[~2018-06-25 18:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-25 18:45 Hinko Kocevar [this message]
2018-06-25 19:03 ` 'libstdc++.so.6' cannot be found in RUNPATH () 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=603614f230c34b95bb3605c455d2f16b@esss.se \
--to=hinko.kocevar@esss.se \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.