On Tue, 24 Mar 2015 06:08:08 +0100
Tristan Gingold <[email protected]> wrote:

> Now that you have the complete linker line, try to find the offending 
> option or library.
> 
> GHDL doesn't create a DSO, so there is something strange.  Try without
> the --export-dynamic and/or --version-script.

Nice hint, thanks! This works:

% ghdl -a hello.vhdl

% /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 hello -l e~hello.lst -quiet -o e~hello.s e~hello

% /usr/local/bin/as -o e~hello.o e~hello.s

% /home/hanzer/local/bin/gcc -o hello e~hello.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/std/textio.o 
\
/home/hanzer/local/lib/gcc/i386-unknown-freebsd10.1/4.9.2/vhdl/v93/std/textio_body.o
 \
hello.o \
/home/hanzer/local/lib/gcc/i386-unknown-freebsd10.1/4.9.2/vhdl/libgrt.a -lm 
-L./ -lz

% ghdl -r hello
Hello world!

I'm not sure if I understand the implications of this. Any additional guidance 
or insights will be greatly appreciated!


Ref:
% cat hello.vhdl
use std.textio.all;

entity hello is
end hello;
     
architecture behaviour of hello is
begin
        process
                variable l : line;
        begin
                write (l, String'("Hello world!"));
                writeline (output, l);
                wait;
        end process;
end behaviour;

_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to