Closed jjjt-git closed 1 year ago
I am not sure to understand. If you use the system compiler it should use the system library.
Which compiler are you using ? What is the output of 'gnatls -v' ?
gnatls -v: GNATLS 11.3.0 Copyright (C) 1997-2021, Free Software Foundation, Inc.
Source Search Path:
Ok; are you also building ghdl and libghdl ?
Yes, I did build ghdl and libghdl on the same System. libghdl is linked against libgnat-11.so
So which library is linked against libgnat-9.so ?
The ghdl.so built by make. In directory ghdl-yosys-plugin: $ ldd ghdl.so linux-vdso.so.1 (0x00007ffe755db000) libghdl-3_0_0_dev.so => $HOME/Projects/f4pga/f4pga/xc7/conda/envs/xc7/lib/libghdl-3_0_0_dev.so (0x00007fa8921cc000) libstdc++.so.6 => $HOME/Projects/f4pga/f4pga/xc7/conda/envs/xc7/lib/libstdc++.so.6 (0x00007fa891fb8000) libgcc_s.so.1 => $HOME/Projects/f4pga/f4pga/xc7/conda/envs/xc7/lib/libgcc_s.so.1 (0x00007fa891f9e000) libc.so.6 => /lib64/libc.so.6 (0x00007fa891d7d000) libm.so.6 => /lib64/libm.so.6 (0x00007fa891ca0000) libgnat-9.so.1 => $HOME/Projects/f4pga/f4pga/xc7/conda/envs/xc7/lib/libgnat-9.so.1 (0x00007fa89192a000) /lib64/ld-linux-x86-64.so.2 (0x00007fa892609000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fa891925000)
Most curiously, on another computer, where I installed the plugin in the same way, it was linked against libgnat-11.so (system).
libgnat-9.so.1 => //Projects/f4pga/f4pga/xc7/conda/envs/xc7/lib/libgnat-9.so.1 (0x00007fa89192a000)
Well, you don't compile with the system compiler!
In the background it is using the system-compiler (simple symlink). But I will analyse what went wrong and maybe it will resolve itself.
Ok, it solved itself. I had compiled by accident against a wrong include- and libdir.
When I build the plugin on my system (gentoo) with standart options (./configure && make && make install), it will build fine, but when I try to use the plugin (plugin -i ghdl) it will fail, because the system is unable to find libgnat-9. That behaviour is expected, because on my system there only is libgnat-11. So the question is, if it would be possible to link against the system library.