Compiling for Shared Libraries

Kevan Hashemi hashemi at brandeis.edu
Thu Feb 6 22:48:18 CET 2014


Waldek Hebish:

> By default gpc builds position-dependent libgpc.  On 32-bit i386
> shared libraries may contain position-dependent code

I see. That explains it. Thank you.

> cd gcc/p/rts
> make clean
> make WITH_SHARED=yes

I will try that. My existing 64-bit binary distribution appears to be 
position-independent.

Trevor B:

 > make CFLAGS = -g -O2 -fPIC  pascal.install-with-gcc

Very good. Thank you.

 > Is your version of bison later than 2.3?

Yes, 2.4.1, and I had no difficulties. But following your link to the 
patch, I see that the error I would have obtained would be:

gcc: c-parse.c: No such file or directory
gcc: no input files

And this is exactly the error that thwarted me six months ago, when I 
tried to compile on 64-bit Linux. So it appears that Bison has been 
fixed, and I now understand what has been going wrong, because a 
colleague was able to compile on another, older 64-bit machine. So thank 
you for that also.

Your, Kevan

-- 
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://alignment.hep.brandeis.edu/



More information about the Gpc mailing list