Hi. I'm creating this issue to help others that may bump into it; if you're seeing an error like this while running make:
user@computer:~/Downloads/software/pp$make
#### building /home/user/Downloads/software/pp/.stack-work/install/x86_64-linux-tinfo6/18e13df6d3bccebcfbf9bc1e46977a3e869318bf24e6ee56053e6276655b2c37/8.6.5/bin/pp
stack build
Building all executables for `pp' once. After a successful build of all of them, only specified executables will be rebuilt.
pp> build (lib + exe)
Preprocessing library for pp-2.14.0..
Building library for pp-2.14.0..
/usr/bin/ld.gold: error: cannot open crti.o: No such file or directory
/usr/bin/ld.gold: error: cannot open crtn.o: No such file or directory
/usr/bin/ld.gold: error: cannot find -lm
/usr/bin/ld.gold: error: cannot find -lrt
/usr/bin/ld.gold: error: cannot find -lutil
/usr/bin/ld.gold: error: cannot find -ldl
/usr/bin/ld.gold: error: cannot find -lpthread
/usr/bin/ld.gold: error: cannot find -lc
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
-- While building package pp-2.14.0 using:
/home/user/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.4.0.1 build lib:pp exe:pp --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
make: *** [Makefile:165: /home/user/Downloads/software/pp/.stack-work/install/x86_64-linux-tinfo6/18e13df6d3bccebcfbf9bc1e46977a3e869318bf24e6ee56053e6276655b2c37/8.6.5/bin/pp] Error 1
At first I thought it had something to do with having multiple architectures, but then I found an answer while googling that helped me fix it. Just install libc6-dev; you'll be able to make and make install afterwards.
Sorry for the late reply... Please keep in mind that pp is not supported anymore, it's hard to deploy. For new projects I suggest ypp which is is based on a Lua interpreter and way easier to compile and install and binaries are easier to produce (thanks to zig) and deploy (see hey).
Hi. I'm creating this issue to help others that may bump into it; if you're seeing an error like this while running
make
:At first I thought it had something to do with having multiple architectures, but then I found an answer while googling that helped me fix it. Just install
libc6-dev
; you'll be able tomake
andmake install
afterwards.