gcc (3.4.1) gnat and GHDL on cygwin

P

pini

Guest
I tried to build GHDL on cygwin with gcc 3.4.1.
Got the error message (see below). Can somebody give me a clue how to
sovle the problem.
Thanks

gnatmake -o ghdl1.exe -aI./vhdl -aOvhdl ortho_gcc-main \
-bargs -E -cargs -O -Wall -gnata -largs agcc-bindings.o
agcc-version.o ../gcc/toplev.o ../gcc/c-convert.o ../gcc/libbackend.a
.../libiberty/libiberty.a
gnatbind -aO./ -aI./vhdl -aOvhdl -E -I- -x vhdl/ortho_gcc-main.ali
gnatlink vhdl/ortho_gcc-main.ali -o ghdl1.exe agcc-bindings.o
agcc-version.o ../gcc/toplev.o ../gcc/c-convert.o ../gcc/libbackend.a
.../libiberty/libiberty.a
.../gcc/toplev.o(.text+0x6abd):toplev.c: undefined reference to
`_libintl_gettext'
.../gcc/toplev.o(.text+0x6b05):toplev.c: undefined reference to
`_libintl_gettext'
.../gcc/toplev.o(.text+0x6b20):toplev.c: undefined reference to
`_libintl_gettext'
.../gcc/toplev.o(.text+0x6b7b):toplev.c: undefined reference to
`_libintl_gettext'
.../gcc/toplev.o(.text+0x6b96):toplev.c: undefined reference to
`_libintl_gettext'
.../gcc/toplev.o(.text+0x6bd1):toplev.c: more undefined references to
`_libintl_gettext' follow
.../gcc/libbackend.a(intl.o)(.text+0x5b):intl.c: undefined reference to
`_libintl_bindtextdomain'
.../gcc/libbackend.a(intl.o)(.text+0x67):intl.c: undefined reference to
`_libintl_textdomain'
.../gcc/libbackend.a(final.o)(.text+0x21f1):final.c: undefined
reference to `_libintl_gettext'
.../gcc/libbackend.a(final.o)(.text+0x2205):final.c: undefined
reference to `_libintl_gettext'
.../gcc/libbackend.a(rtl-error.o)(.text+0x147):rtl-error.c: undefined
reference to `_libintl_gettext'
collect2: ld returned 1 exit status
gnatlink: cannot call /cygdrive/c/pini_prog/cygwin/bin/gcc.exe
gnatmake: *** link failed.
make[1]: *** [ghdl1.exe] Error 4
make[1]: Leaving directory `/usr/src/gcc-3.4.1/gcc'
make: *** [all-gcc] Error 2
 
"pini" <bknpk@hotmail.com> wrote in message
news:ca9059d7.0411270756.7ed4e014@posting.google.com...
With some help from I used the following configuration:
./configure --enable-languages=vhdl --enable-nls=no
I used gcc-ada and gcc-core 3.4.1 from
http://sunsite.utk.edu/ftp/pub/cygwin/release/gcc/gcc-ada/?M=D
and was able to build it okay on cygwin.

The asmple test hello.vhdl
compiles okay
ghdl -a 1.vhdl
but it does not run (see below) can someone help:

ghdl -e hello
e~hello_world.o(.text+0x37):e~hello_world: undefined reference to
`___ghdl_malloc0'
/usr/local/lib/gcc/i686-pc-cygwin/3.4.1/vhdl/lib/v93/std/std_standard.o(.text+0x16a):*stdin*:
undefined reference to `___ghdl_stack2_allocate'
/usr/local/lib/gcc/i686-pc-cygwin/3.4.1/vhdl/lib/v93/std/std_standard.o...
....

Just a guess, since I don't know anything of the GHDL front-end, but your
first set of error messages suggest that you need the gettext library to
build some parts of ghdl. The second set of error messages show that you
don't have the runtime libraries required to link a vhdl simulataion model.
This is probably due to the failed builds (i.e. you failed to build the libs
because of the missing gettext lib, and after that of course you can't link
agains those libs).

Hope it helps you to start,
Andras Tantos
 

Welcome to EDABoard.com

Sponsor

Back
Top