On Mon, 23 Mar 2015 07:56:41 +0100 Tristan Gingold <[email protected]> wrote:
> Try: ghdl -e -v foo, you should have the linker command line. > Was GHDL built with gcc ? I made a mistake in the original post - the GHDL version I'm using is tip (which will become 0.32rc2 (?)). It's built with and into gcc-4.9.2 - the gcc-aux port on FreeBSD-10.1 (https://www.freebsd.org/news/status/report-2013-07-2013-09.html#FreeBSD-Ada-Ports). % ghdl -e -v foo /home/hanzer/local/libexec/gcc/i386-unknown-freebsd10.1/4.9.2/ghdl1 -P/home/hanzer/local/lib/gcc/i386-unknown-freebsd10.1/4.9.2/vhdl//v93/std/ -P/home/hanzer/local/lib/gcc/i386-unknown-freebsd10.1/4.9.2/vhdl//v93/ieee/ --elab foo -l e~foo.lst -quiet -o e~foo.s e~foo /usr/local/bin/as -o e~foo.o e~foo.s /home/hanzer/local/bin/gcc -o foo e~foo.o /home/hanzer/local/lib/gcc/i386-unknown-freebsd10.1/4.9.2/vhdl//v93/std/std_standard.o /home/hanzer/local/lib/gcc/i386-unknown-freebsd10.1/4.9.2/vhdl//v93/ieee/std_logic_1164.o /home/hanzer/local/lib/gcc/i386-unknown-freebsd10.1/4.9.2/vhdl//v93/ieee/std_logic_1164_body.o /home/hanzer/local/lib/gcc/i386-unknown-freebsd10.1/4.9.2/vhdl//v93/ieee/numeric_std.o /home/hanzer/local/lib/gcc/i386-unknown-freebsd10.1/4.9.2/vhdl//v93/ieee/numeric_std-body.o foo.o /home/hanzer/local/lib/gcc/i386-unknown-freebsd10.1/4.9.2/vhdl//libgrt.a -lm -Wl,--version-script=/home/hanzer/local/lib/gcc/i386-unknown-freebsd10.1/4.9.2/vhdl//grt.ver -Wl,--export-dynamic -L./ -lz /usr/local/bin/ld: foo: local symbol `environ' in /usr/lib/crt1.o is referenced by DSO /usr/local/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status ghdl: compilation error >From this, I notice two slashes in some of the paths: ".../4.9.2/vhdl//v93/..." ^^ Probably not related to the current problem, but interesting. _______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
