Hallo!
Ich versuche gerade ghdl unter gentoo (amd64) zum laufen zu bringen.
Dazu habe ich die folgende minimale VHDL Datei:
1 | entity test is
|
2 | end test;
|
3 | architecture behav of test is
|
4 | begin
|
5 | end behav;
|
Diese verduche ich dann zu kompilieren:
1 | % ghdl -a test.vhd
|
2 | % ghdl -e test
|
3 | /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: e~test.o: relocation R_X86_64_32S against `__ghdl_rti_top' can not be used when making a shared object; recompile with -fPIC
|
4 | e~test.o: could not read symbols: Bad value
|
5 | collect2: ld returned 1 exit status
|
6 | ghdl: compilation error
|
Wie man sieht funktioniert das nicht. Woran liegt das und was kann ich
dagegen tun? Unter Arch Linux und Debian funktioniert das wunderbar.
Vielen Dank im Voraus.