15 Nov 2011 17:48
Compiling pcc?
<ghe <at> sdf.org>
2011-11-15 16:48:31 GMT
2011-11-15 16:48:31 GMT
Hi list,
I'm trying to install pcc (version 1.0.0) on my Debian computer (AMD64),
and... it doesn't work :(
I did the usual:
$ cd pcc-libs-1.0.0
$ ./configure --prefix=$HOME/opt/pcc
$ make
$ make install
$ cd ../pcc-1.0.0
$ ./configure --prefix=$HOME/opt/pcc
$ make
$ make install
but:
$ echo "int main () { return 0; }" >> foo.c
$ pcc foo.c
ld: cannot find /usr/lib64/crt1.o: No such file or directory
ld: cannot find /usr/lib64/crti.o: No such file or directory
So I figured out that I should define the "--with-libdir" option of the
configure script, which I did:
$ ./configure --prefix=$HOME/opt/pcc --with-libdir=$HOME/opt/pcc/lib/pcc/x86_64-unknown-linux-gnu/1.0.0.RELEASE/lib
$ make
$ make install
(Continue reading)
RSS Feed