unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Michael Zucchi <notzed@gmail.com>
To: Julien Lepiller <julien@lepiller.eu>, help-guix@gnu.org
Subject: Re: build issues w/ system glibc
Date: Mon, 23 Dec 2019 09:36:26 +1030	[thread overview]
Message-ID: <c9991d36-7304-97d3-929d-7d8537817e6f@gmail.com> (raw)
In-Reply-To: <F4591C8C-3E29-450B-A308-6B3EA534A318@lepiller.eu>

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

      reply	other threads:[~2019-12-22 23:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c9991d36-7304-97d3-929d-7d8537817e6f@gmail.com \
    --to=notzed@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=julien@lepiller.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).