Federico Beffa <[email protected]> skribis: > $ guix package > --install={autoconf,automake,bzip2,gcc-toolchain,gettext,guile,libgcrypt,pkg-config,sqlite} > > and got the packages installed :-) > At the end of the process I've been told to define the following > environment variables: > > export PKG_CONFIG_PATH="/home/beffa/.guix-profile/lib/pkgconfig" > export ACLOCAL_PATH="/home/beffa/.guix-profile/share/aclocal" > > On top of those I've defined the PATH as follows: > > export PATH=$HOME/.guix-profile/bin:$PATH > > The README file mentions all of the following veriables: ACLOCAL_PATH, > CPATH, LIBRARY_PATH, PKG_CONFIG_PATH. However, only the above ones > have been mentioned during the installation phase and defined.
Indeed, ‘guix package’ should have told you about LIBRARY_PATH and CPATH, but there was a bug in the ‘gcc-toolchain’ package, which commit d474d5d fixes. Now it would additionally list: export CPATH="$HOME/.guix-profile/include" export LIBRARY_PATH="$HOME/.guix-profile/lib" > configure:3474: checking whether the C compiler works > configure:3496: gcc conftest.c >&5 > ld: cannot find crt1.o: No such file or directory > ld: cannot find crti.o: No such file or directory > collect2: error: ld returned 1 exit status This is due to the lack of the above LIBRARY_PATH setting. Could you try setting and report back? Thanks for the report! Ludo’.
