Hi Pierre! thank you for the input. I've made the changes as suggested. Sadly it does not help, I'm getting the same behavior.
Inside the environment-variables I can see the gcc-5.4.0-lib listed: export LIBRARY_PATH="/gnu/store/bzn4wyrbdmfc1bd7lq05db5psfl5f8x8-perl-5.26.0/lib:/gnu/store/6hicns85s8ddp0y539wdspwx22ac2kmv-bzip2-1.0.6/lib:/gnu/store/g3nari57wcfnm00kv9bnpyzdzfq4h8pk-xz-5.2.2/lib:/gnu/store/msw2q7nr3vfmgwyxf15y0x7qbngs9y3d-file-5.30/lib:/gnu/store/9pq16kfcldqqcbd58mmfp37g3awhg4sd-gawk-4.1.4/lib:/gnu/store/nnykzgwfy8mwh2gmxm715sjxykg8qjwn-binutils-2.28/lib:/gnu/store/n6nvxlk2j8ysffjh3jphn1k5silnakh6-glibc-2.25/lib:/gnu/store/y31sxrygd9ifpxra06bmlx8c52gbydd4-glibc-utf8-locales-2.25/lib:/gnu/store/mpa86gcr3wk7yzvbdxc58j5vddqcs3w0-epics-base-3.15.5/lib:/gnu/store/j9rxwf40xw2r5drycijl4l25l4bja8qv-epics-asyn-R4-33/lib:/gnu/store/f0m8rdd0vv0gdddi2grpcb5swxd5zp2f-epics-busy-R1-7/lib:/gnu/store/61fcp65n6jvaz2hyzy31im408h5a79yl-epics-autosave-R5-9/lib:/gnu/store/s55cw29248kzl3c61vgawb4csrbkivry-epics-calc-R3-7/lib:/gnu/store/6dv72pq83gv7y2qxk60rasa2dqjr2nmm-epics-sscan-R2-11/lib:/gnu/store/a35yjr26wizmj7vbxbf2s8x3p6g7hb4m-epics-seq-R2-2-6/lib:/gnu/store/gs898mgcbzi0zx5wikylz0zrb756mg75-epics-adsupport-R1-4/lib:/gnu/store/i4vqyz44pa31iypwbq06zvw52yk2jmlg-epics-adcore-R3-2/lib:/gnu/store/mipizipnr4y2hly9b429j8id1albbgqi-readline-7.0/lib:/gnu/store/2rzp2py00609lvkh977bfyxja7wd5idx-gcc-5.4.0-lib/lib:/gnu/store/09j7scnl3hahcmql986fsjpzj6gqsmzv-ncurses-6.0/lib" Let me point out that the library depending on libstdc++.so.6 does not get compiled, nor does the package use it in anyway. What I'm getting at is that since libstdc++.so.6 is not actually referenced by the package in any way (though the failing lib), can it be that that gcc-5.4.0-lib gets stripped away somewhere along the way? Thanks! Hinko ________________________________________ From: Pierre Neidhardt <[email protected]> Sent: Monday, June 25, 2018 9:03 PM To: Hinko Kocevar Cc: [email protected] Subject: Re: 'libstdc++.so.6' cannot be found in RUNPATH () Hi Hinko! Packaging is done in a sandboxed environment that is totally independent of your installation. So you don't need to install gcc at all. You don't need to propagate the input either, because the end-user only cares about the package, not the dependent libraries. Last, you seem to have forgotten the version in the input. Try with the following line instead: (inputs `(("gcc:lib" ,gcc-5 "lib"))) Hope that helps. -- Pierre Neidhardt Speak softly and own a big, mean Doberman. -- Dave Millman
