unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* build issues w/ system glibc
@ 2019-12-18 23:50 Michael Zucchi
  2019-12-19  8:03 ` Julien Lepiller
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Zucchi @ 2019-12-18 23:50 UTC (permalink / raw)
  To: help-guix


Morning,

Just a couple of comments re: building from git.  Well that was the 
intention, but it's turned into a failure to build.

1) bootstrap isn't mentioned anywhere in the README, it just mentions 
configure
2) i know the README is for a web service to reformat, but it's really 
miserable trying to read it from a shell
3) using "guix environment guix" the build fails.

$ make V=1
...
g++ -Wall -std=c++11 -g -O2   -o guix-daemon 
nix/nix-daemon/guix_daemon-nix-daemon.o 
nix/nix-daemon/guix_daemon-guix-daemon.o libstore.a libutil.a 
libformat.a -lz 
-L/gnu/store/i6l1579g80387rda658jy9cfqq82643d-sqlite-3.28.0/lib 
-lsqlite3 -L/usr/lib64 -lgcrypt -lbz2
/usr/bin/ld: 
/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/libpthread.so.0: 
undefined reference to `__libc_vfork@GLIBC_PRIVATE'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:3469: guix-daemon] Error 1
make[2]: Leaving directory '/home/notzed/src/guix'
make[1]: *** [Makefile:4766: all-recursive] Error 1
make[1]: Leaving directory '/home/notzed/src/guix'
make: *** [Makefile:3257: all] Error 2
notzed@shitzone:~/src/guix$

I'm using guix on Slackware-current and that (currently) uses 
glibc-2.30, and when using the platform compiler it links against that 
and not the guix glibc.

I tried installing gcc-toolchain but the same thing happens.  I tried 
-L/gnu/store/<path to glibc> but that doesn't work.

Regards,
  Z

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

* Re: build issues w/ system glibc
  2019-12-18 23:50 build issues w/ system glibc Michael Zucchi
@ 2019-12-19  8:03 ` Julien Lepiller
  2019-12-21 21:06   ` Michael Zucchi
  0 siblings, 1 reply; 5+ messages in thread
From: Julien Lepiller @ 2019-12-19  8:03 UTC (permalink / raw)
  To: help-guix, Michael Zucchi

Le 19 décembre 2019 00:50:18 GMT+01:00, Michael Zucchi <notzed@gmail.com> a écrit :
>
>Morning,
>
>Just a couple of comments re: building from git.  Well that was the 
>intention, but it's turned into a failure to build.
>
>1) bootstrap isn't mentioned anywhere in the README, it just mentions 
>configure
>2) i know the README is for a web service to reformat, but it's really 
>miserable trying to read it from a shell
>3) using "guix environment guix" the build fails.
>
>$ make V=1
>...
>g++ -Wall -std=c++11 -g -O2   -o guix-daemon 
>nix/nix-daemon/guix_daemon-nix-daemon.o 
>nix/nix-daemon/guix_daemon-guix-daemon.o libstore.a libutil.a 
>libformat.a -lz 
>-L/gnu/store/i6l1579g80387rda658jy9cfqq82643d-sqlite-3.28.0/lib 
>-lsqlite3 -L/usr/lib64 -lgcrypt -lbz2
>/usr/bin/ld: 
>/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/libpthread.so.0:
>
>undefined reference to `__libc_vfork@GLIBC_PRIVATE'
>collect2: error: ld returned 1 exit status
>make[2]: *** [Makefile:3469: guix-daemon] Error 1
>make[2]: Leaving directory '/home/notzed/src/guix'
>make[1]: *** [Makefile:4766: all-recursive] Error 1
>make[1]: Leaving directory '/home/notzed/src/guix'
>make: *** [Makefile:3257: all] Error 2
>notzed@shitzone:~/src/guix$
>
>I'm using guix on Slackware-current and that (currently) uses 
>glibc-2.30, and when using the platform compiler it links against that 
>and not the guix glibc.
>
>I tried installing gcc-toolchain but the same thing happens.  I tried 
>-L/gnu/store/<path to glibc> but that doesn't work.
>
>Regards,
>  Z

Hi, have you tried runinhg everything in a pure environment, from the bootstrap? Guix environment guix --pure should give you an environment where none of your system is visible.

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

* Re: build issues w/ system glibc
  2019-12-19  8:03 ` Julien Lepiller
@ 2019-12-21 21:06   ` Michael Zucchi
  2019-12-22  9:05     ` Julien Lepiller
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Zucchi @ 2019-12-21 21:06 UTC (permalink / raw)
  To: Julien Lepiller, help-guix

On 19/12/19 6:33 pm, Julien Lepiller wrote:
> Le 19 décembre 2019 00:50:18 GMT+01:00, Michael Zucchi <notzed@gmail.com> a écrit :
>> Morning,
>>
>> Just a couple of comments re: building from git.  Well that was the
>> intention, but it's turned into a failure to build.
>>
>>
>> Hi, have you tried runinhg everything in a pure environment, from the bootstrap? Guix environment guix --pure should give you an environment where none of your system is visible.
>>
Hi Julien,

Ok I did that (again not mentioned in readme), sourced the profile and 
tried again from scratch, same error.  libc is installed in the 
directory LIBRARY_PATH is set to by the guix profile script.

This is the output running the link line manually with "g++ -v", it is 
unfortunately rather difficult to read.

notzed@shitzone:~/src/guix$ g++ -v -Wall -std=c++11 -g -O2   -o 
guix-daemon nix/nix-daemon/guix_daemon-nix-daemon.o 
nix/nix-daemon/guix_daemon-guix-daemon.o libstore.a libutil.a 
libformat.a -lz 
-L/gnu/store/i6l1579g80387rda658jy9cfqq82643d-sqlite-3.28.0/lib 
-lsqlite3 -L/usr/lib64 -lgcrypt -lbz2
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/9.2.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with:
Thread model: posix
gcc version 9.2.0 (GCC)
COMPILER_PATH=/gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/9.2.0/:/gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/9.2.0/:/gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/:/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/:/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/
LIBRARY_PATH=/gnu/store/fkxd3lilg97sn5qb2xsf80f76bjghcs4-profile/lib/:/gnu/store/x6ybr0rx2mz3ywdj7ai3xfh3p5ybd8ki-profile/lib/:/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/:/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/../../../:/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib
COLLECT_GCC_OPTIONS='-v' '-Wall' '-std=c++11' '-g' '-O2' '-o' 
'guix-daemon' 
'-L/gnu/store/i6l1579g80387rda658jy9cfqq82643d-sqlite-3.28.0/lib' 
'-L/usr/lib64' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
  /gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/9.2.0/collect2 -plugin /gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/9.2.0/liblto_plugin.so -plugin-opt=/gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/9.2.0/lto-wrapper -plugin-opt=-fresolution=/tmp/ccQDgVTV.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --eh-frame-hdr -m elf_x86_64 -dynamic-linker /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/ld-linux-x86-64.so.2 -o guix-daemon /gnu/store/fkxd3lilg97sn5qb2xsf80f76bjghcs4-profile/lib/crt1.o /gnu/store/fkxd3lilg97sn5qb2xsf80f76bjghcs4-profile/lib/crti.o /gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/crtbegin.o -L/gnu/store/i6l1579g80387rda658jy9cfqq82643d-sqlite-3.28.0/lib -L/usr/lib64 -L/gnu/store/fkxd3lilg97sn5qb2xsf80f76bjghcs4-profile/lib -L/gnu/store/x6ybr0rx2mz3ywdj7ai3xfh3p5ybd8ki-profile/lib -L/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0 -L/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/../../.. -L/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib nix/nix-daemon/guix_daemon-nix-daemon.o nix/nix-daemon/guix_daemon-guix-daemon.o libstore.a libutil.a libformat.a -lz -lsqlite3 -lgcrypt -lbz2 -lstdc++ -lm -lgcc_s -lgcc -L/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib -rpath=/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib -rpath=/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib -lgcc_s -lc -lgcc_s -lgcc /gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/crtend.o /gnu/store/fkxd3lilg97sn5qb2xsf80f76bjghcs4-profile/lib/crtn.o
guile: warning: failed to install locale
ld: 
/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/libpthread.so.0: 
undefined reference to `__libc_vfork@GLIBC_PRIVATE'
collect2: error: ld returned 1 exit status
notzed@shitzone:~/src/guix$

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

* Re: build issues w/ system glibc
  2019-12-21 21:06   ` Michael Zucchi
@ 2019-12-22  9:05     ` Julien Lepiller
  2019-12-22 23:06       ` Michael Zucchi
  0 siblings, 1 reply; 5+ messages in thread
From: Julien Lepiller @ 2019-12-22  9:05 UTC (permalink / raw)
  To: Michael Zucchi, help-guix

Le 21 décembre 2019 22:06:26 GMT+01:00, Michael Zucchi <notzed@gmail.com> a écrit :
>On 19/12/19 6:33 pm, Julien Lepiller wrote:
>> Le 19 décembre 2019 00:50:18 GMT+01:00, Michael Zucchi
><notzed@gmail.com> a écrit :
>>> Morning,
>>>
>>> Just a couple of comments re: building from git.  Well that was the
>>> intention, but it's turned into a failure to build.
>>>
>>>
>>> Hi, have you tried runinhg everything in a pure environment, from
>the bootstrap? Guix environment guix --pure should give you an
>environment where none of your system is visible.
>>>
>Hi Julien,
>
>Ok I did that (again not mentioned in readme), sourced the profile and 
>tried again from scratch, same error.  libc is installed in the 
>directory LIBRARY_PATH is set to by the guix profile script.
>
>This is the output running the link line manually with "g++ -v", it is 
>unfortunately rather difficult to read.
>
>notzed@shitzone:~/src/guix$ g++ -v -Wall -std=c++11 -g -O2   -o 
>guix-daemon nix/nix-daemon/guix_daemon-nix-daemon.o 
>nix/nix-daemon/guix_daemon-guix-daemon.o libstore.a libutil.a 
>libformat.a -lz 
>-L/gnu/store/i6l1579g80387rda658jy9cfqq82643d-sqlite-3.28.0/lib 
>-lsqlite3 -L/usr/lib64 -lgcrypt -lbz2
>Using built-in specs.
>COLLECT_GCC=g++
>COLLECT_LTO_WRAPPER=/gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/9.2.0/lto-wrapper
>Target: x86_64-unknown-linux-gnu
>Configured with:
>Thread model: posix
>gcc version 9.2.0 (GCC)
>COMPILER_PATH=/gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/9.2.0/:/gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/9.2.0/:/gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/:/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/:/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/
>LIBRARY_PATH=/gnu/store/fkxd3lilg97sn5qb2xsf80f76bjghcs4-profile/lib/:/gnu/store/x6ybr0rx2mz3ywdj7ai3xfh3p5ybd8ki-profile/lib/:/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/:/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/../../../:/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib
>COLLECT_GCC_OPTIONS='-v' '-Wall' '-std=c++11' '-g' '-O2' '-o' 
>'guix-daemon' 
>'-L/gnu/store/i6l1579g80387rda658jy9cfqq82643d-sqlite-3.28.0/lib' 
>'-L/usr/lib64' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
> /gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/9.2.0/collect2
>-plugin
>/gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/9.2.0/liblto_plugin.so
>-plugin-opt=/gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/9.2.0/lto-wrapper
>-plugin-opt=-fresolution=/tmp/ccQDgVTV.res
>-plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc
>-plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc
>-plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc
>--eh-frame-hdr -m elf_x86_64 -dynamic-linker
>/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/ld-linux-x86-64.so.2
>-o guix-daemon
>/gnu/store/fkxd3lilg97sn5qb2xsf80f76bjghcs4-profile/lib/crt1.o
>/gnu/store/fkxd3lilg97sn5qb2xsf80f76bjghcs4-profile/lib/crti.o
>/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/crtbegin.o
>-L/gnu/store/i6l1579g80387rda658jy9cfqq82643d-sqlite-3.28.0/lib
>-L/usr/lib64 -L/gnu/store/fkxd3lilg97sn5qb2xsf80f76bjghcs4-profile/lib
>-L/gnu/store/x6ybr0rx2mz3ywdj7ai3xfh3p5ybd8ki-profile/lib
>-L/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0
>-L/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/../../..
>-L/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib
>nix/nix-daemon/guix_daemon-nix-daemon.o
>nix/nix-daemon/guix_daemon-guix-daemon.o libstore.a libutil.a
>libformat.a -lz -lsqlite3 -lgcrypt -lbz2 -lstdc++ -lm -lgcc_s -lgcc
>-L/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib
>-rpath=/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib
>-rpath=/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib
>-lgcc_s -lc -lgcc_s -lgcc
>/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/crtend.o
>/gnu/store/fkxd3lilg97sn5qb2xsf80f76bjghcs4-profile/lib/crtn.o
>guile: warning: failed to install locale
>ld: 
>/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/libpthread.so.0:
>
>undefined reference to `__libc_vfork@GLIBC_PRIVATE'
>collect2: error: ld returned 1 exit status
>notzed@shitzone:~/src/guix$

"'-L/usr/lib64'". This is unexpected. Please make sure your environment not poluted, eg. by a .bashrc. make sure "env | grep /usr" doesn't return anything, and that g++ is actually coming from the store.

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

* Re: build issues w/ system glibc
  2019-12-22  9:05     ` Julien Lepiller
@ 2019-12-22 23:06       ` Michael Zucchi
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Zucchi @ 2019-12-22 23:06 UTC (permalink / raw)
  To: Julien Lepiller, help-guix

On 22/12/19 7:35 pm, Julien Lepiller wrote:
> Le 21 décembre 2019 22:06:26 GMT+01:00, Michael Zucchi <notzed@gmail.com> a écrit :
>> On 19/12/19 6:33 pm, Julien Lepiller wrote:
>>> Le 19 décembre 2019 00:50:18 GMT+01:00, Michael Zucchi
>> <notzed@gmail.com> a écrit :
>>>> Morning,
>>>>
>>>> Just a couple of comments re: building from git.  Well that was the
>>>> intention, but it's turned into a failure to build.
>>>>
>>>>
>>>> Hi, have you tried runinhg everything in a pure environment, from
>> the bootstrap? Guix environment guix --pure should give you an
>> environment where none of your system is visible.
>> Hi Julien,
>>
>> Ok I did that (again not mentioned in readme), sourced the profile and
>> tried again from scratch, same error.  libc is installed in the
>> directory LIBRARY_PATH is set to by the guix profile script.
>>
>> This is the output running the link line manually with "g++ -v", it is
>> unfortunately rather difficult to read.
>>
>> notzed@shitzone:~/src/guix$ g++ -v -Wall -std=c++11 -g -O2   -o
>> guix-daemon nix/nix-daemon/guix_daemon-nix-daemon.o
>> nix/nix-daemon/guix_daemon-guix-daemon.o libstore.a libutil.a
>> libformat.a -lz
>> -L/gnu/store/i6l1579g80387rda658jy9cfqq82643d-sqlite-3.28.0/lib
>> -lsqlite3 -L/usr/lib64 -lgcrypt -lbz2
>> Using built-in specs.
>> COLLECT_GCC=g++
>> COLLECT_LTO_WRAPPER=/gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/9.2.0/lto-wrapper
>> Target: x86_64-unknown-linux-gnu
>> Configured with:
>> Thread model: posix
>> gcc version 9.2.0 (GCC)
>> COMPILER_PATH=/gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/9.2.0/:/gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/9.2.0/:/gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/:/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/:/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/
>> LIBRARY_PATH=/gnu/store/fkxd3lilg97sn5qb2xsf80f76bjghcs4-profile/lib/:/gnu/store/x6ybr0rx2mz3ywdj7ai3xfh3p5ybd8ki-profile/lib/:/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/:/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/../../../:/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib
>> COLLECT_GCC_OPTIONS='-v' '-Wall' '-std=c++11' '-g' '-O2' '-o'
>> 'guix-daemon'
>> '-L/gnu/store/i6l1579g80387rda658jy9cfqq82643d-sqlite-3.28.0/lib'
>> '-L/usr/lib64' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
>>   /gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/9.2.0/collect2
>> -plugin
>> /gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/9.2.0/liblto_plugin.so
>> -plugin-opt=/gnu/store/3pa3gmb9np87iz7sjrs405kbbj9bx74m-gcc-9.2.0/libexec/gcc/x86_64-unknown-linux-gnu/9.2.0/lto-wrapper
>> -plugin-opt=-fresolution=/tmp/ccQDgVTV.res
>> -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc
>> -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc
>> -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc
>> --eh-frame-hdr -m elf_x86_64 -dynamic-linker
>> /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/ld-linux-x86-64.so.2
>> -o guix-daemon
>> /gnu/store/fkxd3lilg97sn5qb2xsf80f76bjghcs4-profile/lib/crt1.o
>> /gnu/store/fkxd3lilg97sn5qb2xsf80f76bjghcs4-profile/lib/crti.o
>> /gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/crtbegin.o
>> -L/gnu/store/i6l1579g80387rda658jy9cfqq82643d-sqlite-3.28.0/lib
>> -L/usr/lib64 -L/gnu/store/fkxd3lilg97sn5qb2xsf80f76bjghcs4-profile/lib
>> -L/gnu/store/x6ybr0rx2mz3ywdj7ai3xfh3p5ybd8ki-profile/lib
>> -L/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0
>> -L/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/../../..
>> -L/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib
>> nix/nix-daemon/guix_daemon-nix-daemon.o
>> nix/nix-daemon/guix_daemon-guix-daemon.o libstore.a libutil.a
>> libformat.a -lz -lsqlite3 -lgcrypt -lbz2 -lstdc++ -lm -lgcc_s -lgcc
>> -L/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib
>> -rpath=/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib
>> -rpath=/gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib
>> -lgcc_s -lc -lgcc_s -lgcc
>> /gnu/store/347y0zr1a9s2f5pkcncgi3gd0r33qq81-gcc-9.2.0-lib/lib/gcc/x86_64-unknown-linux-gnu/9.2.0/crtend.o
>> /gnu/store/fkxd3lilg97sn5qb2xsf80f76bjghcs4-profile/lib/crtn.o
>> guile: warning: failed to install locale
>> ld:
>> /gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/libpthread.so.0:
>>
>> undefined reference to `__libc_vfork@GLIBC_PRIVATE'
>> collect2: error: ld returned 1 exit status
>> notzed@shitzone:~/src/guix$
> "'-L/usr/lib64'". This is unexpected. Please make sure your environment not poluted, eg. by a .bashrc. make sure "env | grep /usr" doesn't return anything,

Yeah, no.  This is a system that has other software, I can't remove 
/usr/bin from the path or i get a non-functioning shell.

There seems nothing relevant here though, it's mostly kde junk.

notzed@shitzone:~$ env | grep /usr
PKG_CONFIG_PATH=/gnu/store/x6ybr0rx2mz3ywdj7ai3xfh3p5ybd8ki-profile/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig
JAVA_HOME=/usr/lib64/adoptopenjdk13
GRADLE_HOME=/usr/share/gradle
QT4DIR=/usr/lib64/qt
MANPATH=:/usr/lib64/adoptopenjdk13/man
CPLUS_INCLUDE_PATH=/usr/lib64/qt/include
T1LIB_CONFIG=/usr/share/t1lib/t1lib.config
KDEDIRS=/usr
PATH=/home/notzed/.config/guix/current/bin:/home/notzed/.guix-profile/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/adoptopenjdk13/bin:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin
_=/usr/bin/env

>   and that g++ is actually coming from the store.
>
notzed@shitzone:~$ which g++
/home/notzed/.guix-profile/bin/g++

I said earlier i installed it as an attempt to fix the problem.

Anyway based on your comment regarding -L /usr/lib64 I found the culprit:

notzed@shitzone:~/src/guix$ grep /usr/lib64 *
Makefile:LIBGCRYPT_LIBDIR = /usr/lib64
Makefile:LIBGCRYPT_LIBS = -L/usr/lib64 -lgcrypt
grep: autom4te.cache: Is a directory
grep: build-aux: Is a directory
config.log:PATH: /usr/lib64/adoptopenjdk13/bin
config.log:PATH: /usr/lib64/kde4/libexec
config.log:PATH: /usr/lib64/qt/bin
config.log:configure:7974: result: /usr/lib64
config.log:guix_cv_libgcrypt_libdir=/usr/lib64
config.log:LIBGCRYPT_LIBDIR='/usr/lib64'
config.log:LIBGCRYPT_LIBS='-L/usr/lib64 -lgcrypt'
config.status:S["LIBGCRYPT_LIBS"]="-L/usr/lib64 -lgcrypt"
config.status:S["LIBGCRYPT_LIBDIR"]="/usr/lib64"


I installed libgcrypt inside guix and the link went fine!

Thanks!

  Michael

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

end of thread, other threads:[~2019-12-22 23:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-18 23:50 build issues w/ system glibc Michael Zucchi
2019-12-19  8:03 ` Julien Lepiller
2019-12-21 21:06   ` Michael Zucchi
2019-12-22  9:05     ` Julien Lepiller
2019-12-22 23:06       ` Michael Zucchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).