help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: build issues w/ system glibc


From: Michael Zucchi
Subject: Re: build issues w/ system glibc
Date: Mon, 23 Dec 2019 09:36:26 +1030
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 22/12/19 7:35 pm, Julien Lepiller wrote:
Le 21 décembre 2019 22:06:26 GMT+01:00, Michael Zucchi <address@hidden> 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
<address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]