all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Link to ~/.guix-profile/lib/*.so
@ 2017-02-19  4:43 Huang, Ying
  2017-02-19  8:10 ` Huang, Ying
  2017-02-19  8:29 ` Mathieu OTHACEHE
  0 siblings, 2 replies; 4+ messages in thread
From: Huang, Ying @ 2017-02-19  4:43 UTC (permalink / raw)
  To: help-guix

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/<user>/.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.

Best Regards,
Huang, Ying

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

* Re: Link to ~/.guix-profile/lib/*.so
  2017-02-19  4:43 Link to ~/.guix-profile/lib/*.so Huang, Ying
@ 2017-02-19  8:10 ` Huang, Ying
  2017-02-19  8:29 ` Mathieu OTHACEHE
  1 sibling, 0 replies; 4+ messages in thread
From: Huang, Ying @ 2017-02-19  8:10 UTC (permalink / raw)
  To: help-guix

"Huang, Ying" <huang_ying_caritas@163.com> 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/<user>/.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

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

* Re: Link to ~/.guix-profile/lib/*.so
  2017-02-19  4:43 Link to ~/.guix-profile/lib/*.so Huang, Ying
  2017-02-19  8:10 ` Huang, Ying
@ 2017-02-19  8:29 ` Mathieu OTHACEHE
  2017-02-19  8:49   ` Huang, Ying
  1 sibling, 1 reply; 4+ messages in thread
From: Mathieu OTHACEHE @ 2017-02-19  8:29 UTC (permalink / raw)
  To: Huang, Ying; +Cc: help-guix


Hi,

> 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.

It works for me without any tricks. Make sure you are using
gcc-toolchain and not gcc package.

You can try the following command :

guix package -i gcc-toolchain -r gcc binutils glibc

Mathieu

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

* Re: Link to ~/.guix-profile/lib/*.so
  2017-02-19  8:29 ` Mathieu OTHACEHE
@ 2017-02-19  8:49   ` Huang, Ying
  0 siblings, 0 replies; 4+ messages in thread
From: Huang, Ying @ 2017-02-19  8:49 UTC (permalink / raw)
  To: Mathieu OTHACEHE; +Cc: help-guix

Mathieu OTHACEHE <m.othacehe@gmail.com> writes:

> Hi,
>
>> 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.
>
> It works for me without any tricks. Make sure you are using
> gcc-toolchain and not gcc package.
>
> You can try the following command :
>
> guix package -i gcc-toolchain -r gcc binutils glibc

Thanks a lot!  This does the trick!

Best Regards,
Huang, Ying

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

end of thread, other threads:[~2017-02-19  9:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-19  4:43 Link to ~/.guix-profile/lib/*.so Huang, Ying
2017-02-19  8:10 ` Huang, Ying
2017-02-19  8:29 ` Mathieu OTHACEHE
2017-02-19  8:49   ` Huang, Ying

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.