From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Huang\, Ying" Subject: Re: Link to ~/.guix-profile/lib/*.so Date: Sun, 19 Feb 2017 16:10:53 +0800 Message-ID: <87tw7qtxbm.fsf@163.com> References: <871suuyen5.fsf@163.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfMaL-0001aL-Aw for help-guix@gnu.org; Sun, 19 Feb 2017 03:11:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfMaG-0003Q6-D1 for help-guix@gnu.org; Sun, 19 Feb 2017 03:11:09 -0500 Received: from m12-11.163.com ([220.181.12.11]:38528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfMaF-0003P0-Mq for help-guix@gnu.org; Sun, 19 Feb 2017 03:11:04 -0500 In-Reply-To: <871suuyen5.fsf@163.com> (Ying Huang's message of "Sun, 19 Feb 2017 12:43:10 +0800") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix "Huang, Ying" writes: > I tried to build Linux kernel by hand with Guix. But run `make > menuconfig` failed. I checked the menuconfig program, found some > library couldn't be found. > > $ ldd scripts/kconfig/mconf > linux-vdso.so.1 (0x00007ffe87fe8000) > libncursesw.so.6 => not found > libgcc_s.so.1 => /gnu/store/vfvd0r69nv3221p907nb7cgk7inzmf9q-gcc-6.3.0-lib/lib/libgcc_s.so.1 (0x00007fd7fd492000) > libc.so.6 => /gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib/libc.so.6 (0x00007fd7fd0f3000) > /gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib/ld-linux-x86-64.so.2 (0x00007fd7fd6a9000) > > $ ls ~/.guix-profile/lib/libncursesw.so.6 > /home//.guix-profile/lib/libncursesw.so.6@ > > Set LD_LIBRARY_PATH=$HOME/.guix-profile/lib could solve this, but it is > said that is not a good solution. So I think we need a solution to make > $HOME/.guix-profile/lib the fallback to search dynamic linked library. I can fix this via adding -Wl,-rpath=xxx into gcc command line when compiling scripts/kconfig/mconf. Is there any better solution? A more general use case, say I want to develop a GTK application, so I use pkg-config to get the compiler options. But it appears that this doesn't work on Guix because the RUN_PATH doesn't set in the built binaries. How to do that in Guix? Best Regards, Huang, Ying