Skip to main content
Fixed up some paragraphs, because I want to revive this issue. It is my own question from an old account
Source Link

In essence, ld cannot find crt1.o, crti.o, and libgcc_s.so, and it is quite possible that just like before, after linking or installing these 2 c objects and libgcc, cmake will halt with yet a further error regarding other other dependencies.

As is shown below, ld (GNU Linker) is giving me errors, that ctr1.o and ctri.o are missing. These files exist elsewhere under a different directoymultiple directories, underwithin /gnu/store/{specificProgramName}, however, I surprisingly wasn't able to make a symbolic link to ~/.guix_profile, where other libraries sit, even with root access. There are multiple versions of them with different sizes so I would assume that they are only for those specificcompatible with their respective programs. Furthermore. ~/.guix_profile seems to emulate the root directory of a Unix system, however in GuixSD /usr is missing from both the root directory, and ~/.guix_profile, so I would not know where to link themthe c objects even if I foundhad the copiedactual files.

In essence, ld cannot find crt1.o, crti.o, and libgcc_s.so, and it from another distrois quite possible that just like before, after linking or installing these 2 c objects and libgcc, cmake will halt with yet a further error regarding other other dependencies.

Much like Debian, Guix has a bash command for package installation: "guix install $PACKAGE" however its library of ~10,000 does not include one with the name 'gcc-multilib' which would have fixed the problem in Debian. Perhaps there is an alternative package that includes this and other libraries.?

In essence, ld cannot find crt1.o, crti.o, and libgcc_s.so, and it is quite possible that just like before, after linking or installing these 2 c objects and libgcc, cmake will halt with yet a further error regarding other other dependencies.

As is shown below, ld is giving me errors, that ctr1.o and ctri.o are missing. These files exist under a different directoy, under /gnu/store/{specificProgramName}, however, I surprisingly wasn't able to make a symbolic link to ~/.guix_profile, where other libraries sit, even with root access. There are multiple versions of them with different sizes so I would assume that they are only for those specific programs. Furthermore. ~/.guix_profile seems to emulate the root directory of a Unix system, however /usr is missing from both the root directory, and ~/.guix_profile, so I would not know where to link them even if I found the copied it from another distro.

Much like Debian, Guix has a bash command for package installation: "guix install $PACKAGE" however its library of ~10,000 does not include one with the name 'gcc-multilib' which would have fixed the problem in Debian. Perhaps there is an alternative package that includes this and other libraries.

As is shown below, ld (GNU Linker) is giving me errors, that ctr1.o and ctri.o are missing. These files exist elsewhere under multiple directories, within /gnu/store/{specificProgramName}, however, I surprisingly wasn't able to make a symbolic link to ~/.guix_profile, where other libraries sit, even with root access. There are multiple versions of them with different sizes so I would assume that they are only compatible with their respective programs. Furthermore. ~/.guix_profile seems to emulate the root directory of a Unix system, however in GuixSD /usr is missing from both the root directory, and ~/.guix_profile, so I would not know where to link the c objects even if I had the actual files.

In essence, ld cannot find crt1.o, crti.o, and libgcc_s.so, and it is quite possible that just like before, after linking or installing these 2 c objects and libgcc, cmake will halt with yet a further error regarding other other dependencies.

Much like Debian, Guix has a bash command for package installation: "guix install $PACKAGE" however its library of ~10,000 does not include one with the name 'gcc-multilib' which would have fixed the problem in Debian. Perhaps there is an alternative package that includes this and other libraries?

Tweeted twitter.com/StackUnix/status/1136241529046097920
Notice removed Draw attention by CommunityBot
Bounty Ended with no winning answer by CommunityBot
added 940 characters in body
Source Link
user77647
user77647
-- The C compiler identification is GNU 9.1.0 -- The CXX compiler identification is GNU 9.1.0 -- Check for working C compiler: /home/nick/.guix-profile/bin/gcc -- Check for working C compiler: /home/nick/.guix-profile/bin/gcc -- broken CMake Error at /gnu/store/nrsbv2df55abwji1gsb1ilf22n3rc1xa-cmake-3.13.1/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message): The C compiler "/home/nick/.guix-profile/bin/gcc" is not able to compile a simple test program. It fails with the following output: Change Dir: /home/nick/xash3d/build/CMakeFiles/CMakeTmp Run Build Command:"/home/nick/.guix-profile/bin/make" "cmTC_7635d/fast" /home/nick/.guix-profile/bin/make -f CMakeFiles/cmTC_7635d.dir/build.make CMakeFiles/cmTC_7635d.dir/build make[1]: Entering directory '/home/nick/xash3d/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7635d.dir/testCCompiler.c.o /home/nick/.guix-profile/bin/gcc -m32 -o CMakeFiles/cmTC_7635d.dir/testCCompiler.c.o -c /home/nick/xash3d/build/CMakeFiles/CMakeTmp/testCCompiler.c Linking C executable cmTC_7635d /gnu/store/nrsbv2df55abwji1gsb1ilf22n3rc1xa-cmake-3.13.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7635d.dir/link.txt --verbose=1 /home/nick/.guix-profile/bin/gcc -m32 -rdynamic CMakeFiles/cmTC_7635d.dir/testCCompiler.c.o -o cmTC_7635d /home/nick/.guix-profile/bin/ld: cannot find crt1.o: No such file or directory /home/nick/.guix-profile/bin/ld: cannot find crti.o: No such file or directory /home/nick/.guix-profile/bin/ld: skipping incompatible /gnu/store/69x60a1pn0mf5jv68al8awjfkyp1miwi-gcc-8.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/8.3.0/libgcc.a when searching for -lgcc /home/nick/.guix-profile/bin/ld: cannot find -lgcc /home/nick/.guix-profile/bin/ld: skipping incompatible /gnu/store/69x60a1pn0mf5jv68al8awjfkyp1miwi-gcc-8.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/8.3.0/../../../libgcc_s.so.1 when searching for libgcc_s.so.1 /home/nick/.guix-profile/bin/ld: cannot find libgcc_s.so.1 /home/nick/.guix-profile/bin/ld: skipping incompatible /gnu/store/69x60a1pn0mf5jv68al8awjfkyp1miwi-gcc-8.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/8.3.0/libgcc.a when searching for -lgcc /home/nick/.guix-profile/bin/ld: cannot find -lgcc collect2: error: ld returned 1 exit status make[1]: *** [CMakeFiles/cmTC_7635d.dir/build.make:87: cmTC_7635d] Error 1 make[1]: Leaving directory '/home/nick/xash3d/build/CMakeFiles/CMakeTmp' make: *** [Makefile:121: cmTC_7635d/fast] Error 2 

I have tried binding various paths for LIBRARY_PATH in the shell, including:

$HOME/.guix-profile/lib $HOME/.guix-profile/lib/gcc/x86_64-unknown-linux-gnu/4.8.2 ## Containing many c object/shared object and header files /gnu/store/aqv6njg05w2yqh8krgrjy0wcbfxb4nn3-gcc-toolchain-9.1.0/lib/crt1.o ## Containing crt1.o and crti.o 
 Run Build Command:"/home/nick/.guix-profile/bin/make" "cmTC_7635d/fast" /home/nick/.guix-profile/bin/make -f CMakeFiles/cmTC_7635d.dir/build.make CMakeFiles/cmTC_7635d.dir/build make[1]: Entering directory '/home/nick/xash3d/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7635d.dir/testCCompiler.c.o /home/nick/.guix-profile/bin/gcc -m32 -o CMakeFiles/cmTC_7635d.dir/testCCompiler.c.o -c /home/nick/xash3d/build/CMakeFiles/CMakeTmp/testCCompiler.c Linking C executable cmTC_7635d /gnu/store/nrsbv2df55abwji1gsb1ilf22n3rc1xa-cmake-3.13.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7635d.dir/link.txt --verbose=1 /home/nick/.guix-profile/bin/gcc -m32 -rdynamic CMakeFiles/cmTC_7635d.dir/testCCompiler.c.o -o cmTC_7635d /home/nick/.guix-profile/bin/ld: cannot find crt1.o: No such file or directory /home/nick/.guix-profile/bin/ld: cannot find crti.o: No such file or directory /home/nick/.guix-profile/bin/ld: skipping incompatible /gnu/store/69x60a1pn0mf5jv68al8awjfkyp1miwi-gcc-8.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/8.3.0/libgcc.a when searching for -lgcc /home/nick/.guix-profile/bin/ld: cannot find -lgcc /home/nick/.guix-profile/bin/ld: skipping incompatible /gnu/store/69x60a1pn0mf5jv68al8awjfkyp1miwi-gcc-8.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/8.3.0/../../../libgcc_s.so.1 when searching for libgcc_s.so.1 /home/nick/.guix-profile/bin/ld: cannot find libgcc_s.so.1 /home/nick/.guix-profile/bin/ld: skipping incompatible /gnu/store/69x60a1pn0mf5jv68al8awjfkyp1miwi-gcc-8.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/8.3.0/libgcc.a when searching for -lgcc /home/nick/.guix-profile/bin/ld: cannot find -lgcc collect2: error: ld returned 1 exit status make[1]: *** [CMakeFiles/cmTC_7635d.dir/build.make:87: cmTC_7635d] Error 1 make[1]: Leaving directory '/home/nick/xash3d/build/CMakeFiles/CMakeTmp' make: *** [Makefile:121: cmTC_7635d/fast] Error 2 
-- The C compiler identification is GNU 9.1.0 -- The CXX compiler identification is GNU 9.1.0 -- Check for working C compiler: /home/nick/.guix-profile/bin/gcc -- Check for working C compiler: /home/nick/.guix-profile/bin/gcc -- broken CMake Error at /gnu/store/nrsbv2df55abwji1gsb1ilf22n3rc1xa-cmake-3.13.1/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message): The C compiler "/home/nick/.guix-profile/bin/gcc" is not able to compile a simple test program. It fails with the following output: Change Dir: /home/nick/xash3d/build/CMakeFiles/CMakeTmp Run Build Command:"/home/nick/.guix-profile/bin/make" "cmTC_7635d/fast" /home/nick/.guix-profile/bin/make -f CMakeFiles/cmTC_7635d.dir/build.make CMakeFiles/cmTC_7635d.dir/build make[1]: Entering directory '/home/nick/xash3d/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_7635d.dir/testCCompiler.c.o /home/nick/.guix-profile/bin/gcc -m32 -o CMakeFiles/cmTC_7635d.dir/testCCompiler.c.o -c /home/nick/xash3d/build/CMakeFiles/CMakeTmp/testCCompiler.c Linking C executable cmTC_7635d /gnu/store/nrsbv2df55abwji1gsb1ilf22n3rc1xa-cmake-3.13.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7635d.dir/link.txt --verbose=1 /home/nick/.guix-profile/bin/gcc -m32 -rdynamic CMakeFiles/cmTC_7635d.dir/testCCompiler.c.o -o cmTC_7635d /home/nick/.guix-profile/bin/ld: cannot find crt1.o: No such file or directory /home/nick/.guix-profile/bin/ld: cannot find crti.o: No such file or directory /home/nick/.guix-profile/bin/ld: skipping incompatible /gnu/store/69x60a1pn0mf5jv68al8awjfkyp1miwi-gcc-8.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/8.3.0/libgcc.a when searching for -lgcc /home/nick/.guix-profile/bin/ld: cannot find -lgcc /home/nick/.guix-profile/bin/ld: skipping incompatible /gnu/store/69x60a1pn0mf5jv68al8awjfkyp1miwi-gcc-8.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/8.3.0/../../../libgcc_s.so.1 when searching for libgcc_s.so.1 /home/nick/.guix-profile/bin/ld: cannot find libgcc_s.so.1 /home/nick/.guix-profile/bin/ld: skipping incompatible /gnu/store/69x60a1pn0mf5jv68al8awjfkyp1miwi-gcc-8.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/8.3.0/libgcc.a when searching for -lgcc /home/nick/.guix-profile/bin/ld: cannot find -lgcc collect2: error: ld returned 1 exit status make[1]: *** [CMakeFiles/cmTC_7635d.dir/build.make:87: cmTC_7635d] Error 1 make[1]: Leaving directory '/home/nick/xash3d/build/CMakeFiles/CMakeTmp' make: *** [Makefile:121: cmTC_7635d/fast] Error 2 

I have tried binding various paths for LIBRARY_PATH in the shell, including:

$HOME/.guix-profile/lib $HOME/.guix-profile/lib/gcc/x86_64-unknown-linux-gnu/4.8.2 ## Containing many c object/shared object and header files /gnu/store/aqv6njg05w2yqh8krgrjy0wcbfxb4nn3-gcc-toolchain-9.1.0/lib/crt1.o ## Containing crt1.o and crti.o 
added 227 characters in body
Source Link
user77647
user77647

The two packages that should be installed are named gcc-multilib and libc-dev in Debian-based OS's. These packages (or their elements) should exist somewhere in the Guix library of packages, but under different name(s).

The two packages that should be installed are named gcc-multilib and libc-dev in Debian-based OS's. These packages (or their elements) should exist somewhere in the Guix library of packages, but under different name(s).

added 307 characters in body
Source Link
user77647
user77647
Loading
[Edit removed during grace period]
Link
user77647
user77647
Loading
edited title
Link
user77647
user77647
Loading
edited title
Source Link
user77647
user77647
Loading
Notice added Draw attention by user77647
Bounty Started worth 250 reputation by CommunityBot
edited title
Link
user77647
user77647
Loading
deleted 143 characters in body
Source Link
Rui F Ribeiro
  • 58k
  • 29
  • 156
  • 240
Loading
added 759 characters in body; edited tags; edited title
Source Link
user77647
user77647
Loading
added 759 characters in body; edited tags; edited title
Source Link
user77647
user77647
Loading
added 759 characters in body; edited tags; edited title
Source Link
user77647
user77647
Loading
Source Link
user77647
user77647
Loading