It's strange ....

apt-file lists gnat1 executable in /usr/lib/gcc/x86_64-linux-gnu/4.9/

paebbels@debian8:/opt/gcc-4.9.3-temp$ apt-file search gnat1
gnat-4.9: /usr/lib/gcc/x86_64-linux-gnu/4.9/gnat1
gnat-mingw-w64-i686: /usr/lib/gcc/i686-w64-mingw32/4.9-posix/gnat1
gnat-mingw-w64-i686: /usr/lib/gcc/i686-w64-mingw32/4.9-win32/gnat1
gnat-mingw-w64-x86-64: /usr/lib/gcc/x86_64-w64-mingw32/4.9-posix/gnat1
gnat-mingw-w64-x86-64: /usr/lib/gcc/x86_64-w64-mingw32/4.9-win32/gnat1

calling gnat1 directly works also fine....
I have no clue why gcc does not find it's own gnat1 executable....
Any suggestions on that?

I also updated my gcc sources to 4.9.3 and changed all paths in the build 
scripts.
make copy-sources works fine
after that gcc compiling starts and halts when it's going to compile ghdl

Here are the last lines of the compile output:
=============================================================================
make[2]: Entering directory '/opt/gcc-4.9.3-temp/build/gcc'
cd vhdl; gnatmake -c -aI/opt/gcc-4.9.3-temp/source/gcc-4.9.3/gcc/vhdl 
ortho_gcc-main \
 -cargs -O2 -g -Wall -gnata
gnatmake: objects up to date.
gnatmake -o ghdl1 -aI/opt/gcc-4.9.3-temp/source/gcc-4.9.3/gcc/vhdl -aOvhdl 
ortho_gcc-main \
 -bargs -E -cargs -O2 -g -Wall -gnata \
 -largs --LINK=g++   -g -O2 -DIN_GCC    -fno-exceptions -fno-rtti 
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings 
-Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long 
-Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H 
-static-libstdc++ -static-libgcc  attribs.o vhdl/ortho-lang.o \
 libbackend.a tree-browser.o libcommon-target.a libcommon.a ../libcpp/libcpp.a 
../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a   
../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a 
../libdecnumber/libdecnumber.a   -lmpc -lmpfr -lgmp -rdynamic -ldl  -L../zlib 
-lz
gnatmake: "ghdl1" up to date.
if test ghdl1 -nt s-ghdllib; then rm -f -f s-ghdllib; fi
gnatmake -o ghdl -aI/opt/gcc-4.9.3-temp/source/gcc-4.9.3/gcc/vhdl 
-aI/opt/gcc-4.9.3-temp/source/gcc-4.9.3/gcc/vhdl/ghdldrv \
 -aIvhdl -aOvhdl ghdl_gcc \
 -bargs -E -cargs  -Wall -gnata -largs libcommon.a ../libcpp/libcpp.a   
../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a 
../libdecnumber/libdecnumber.a 
gnatmake: "ghdl" up to date.
if test ghdl -nt s-ghdllib; then rm -f -f s-ghdllib; fi
make -C vhdl "ADA_CFLAGS=" "BISON=/opt/gcc-4.9.3-temp/source/gcc-4.9.3/missing 
bison" "BISONFLAGS=" "CFLAGS=-O2 -g -W -Wall -Wno-narrowing -Wwrite-strings 
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes  -Wold-style-definition 
-Wc++-compat -fno-common " "LDFLAGS=-static-libstdc++ -static-libgcc " 
"FLEX=/opt/gcc-4.9.3-temp/source/gcc-4.9.3/missing flex" "FLEXFLAGS=" "LN=ln" 
"LN_S=ln -s" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000" 
"MAKEINFOFLAGS=--no-split" "MAKEOVERRIDES=" "SHELL=/bin/sh" "exeext=" 
"build_exeext=" "objext=.o" "exec_prefix=/opt/gcc-4.9.3" 
"prefix=/opt/gcc-4.9.3" "local_prefix=/usr/local" 
"gxx_include_dir=/opt/gcc-4.9.3/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/../../../../include/c++/4.9.3"
 "build_tooldir=/opt/gcc-4.9.3/x86_64-unknown-linux-gnu" 
"gcc_tooldir=/opt/gcc-4.9.3/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/../../../../x86_64-unknown-linux-gnu"
 "bindir=/opt/gcc-4.9.3/bin" 
"libexecsubdir=/opt/gcc-4.9.3/libexec/gcc/x86_64-unknown-linux-gnu/4.9.3" 
"datarootdir=/opt/gcc-4.9.3/share" "datadir=/opt/gcc-4.9.3/share" 
"localedir=/opt/gcc-4.9.3/share/locale" "GHDL_ADAFLAGS=-Wall -gnata" 
"GRT_FLAGS=-O2 -g" "GRT_ADAFLAGS=-gnatpn" "LIB_CFLAGS=-O2 -g" 
"GNATMAKE=gnatmake" "GNATBIND=gnatbind" "CFLAGS=-O2 -g" 
"VHDL_LIB_DIR=/opt/gcc-4.9.3/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/vhdl" 
"INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" 
"libexecsubdir=/opt/gcc-4.9.3/libexec/gcc/x86_64-unknown-linux-gnu/4.9.3" 
ADAC="gcc" CC="gcc" libgrt.a grt.lst
make[3]: Entering directory '/opt/gcc-4.9.3-temp/build/gcc/vhdl'
gnatmake -c -aI/opt/gcc-4.9.3-temp/source/gcc-4.9.3/gcc/vhdl/grt 
-gnatec/opt/gcc-4.9.3-temp/source/gcc-4.9.3/gcc/vhdl/grt/grt.adc -gnat05 \
  ghdl_main -gnatpn -cargs -O2 -g
gnatmake: objects up to date.
gnatbind -Lgrt_ -o run-bind.adb -n ghdl_main.ali
gcc -c -O2 -g -gnatec/opt/gcc-4.9.3-temp/source/gcc-4.9.3/gcc/vhdl/grt/grt.adc 
-gnat05 -o run-bind.o run-bind.adb
gcc: error trying to exec 'gnat1': execvp: Datei oder Verzeichnis nicht gefunden
Makefile:586: recipe for target 'run-bind.o' failed
make[3]: *** [run-bind.o] Error 1
make[3]: Leaving directory '/opt/gcc-4.9.3-temp/build/gcc/vhdl'
/opt/gcc-4.9.3-temp/source/gcc-4.9.3/gcc/vhdl/Make-lang.in:135: recipe for 
target 'vhdl/libgrt.a' failed
make[2]: *** [vhdl/libgrt.a] Error 2
make[2]: Leaving directory '/opt/gcc-4.9.3-temp/build/gcc'
Makefile:3978: recipe for target 'all-gcc' failed
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory '/opt/gcc-4.9.3-temp/build'
Makefile:863: recipe for target 'all' failed
make: *** [all] Error 2
=============================================================================

Regards
     Patrick

-----------------------------------
Wissenschaftliche Hilfskraft

Technische Universität Dresden
Fakultät Informatik
Institut für Technische Informatik
Lehrstuhl VLSI-Entwurfssysteme, Diagnostik und Architektur
01062 Dresden
Tel.:   +49 351 463-38451
Fax:    +49 351 463-38324
Raum:   APB-1020
E-Mail: [email protected]
WWW:    http://vlsi-eda.inf.tu-dresden.de

-----Original Message-----
From: Ghdl-discuss [mailto:[email protected]] On Behalf Of Tristan 
Gingold
Sent: Thursday, October 01, 2015 9:55 PM
To: [email protected]
Subject: Re: [Ghdl-discuss] Building GHDL on Linux (gcc and llvm)

On 01/10/15 20:43, Lehmann, Patrick wrote:
> Hello Brian,
>
> gnat is installed as follows:
> gnat => gnat-4.9
> gnat-4.9 => 4.9.3-1
>
> installed gcc versions
> 4.8.5-1
> 4.9.3-4
> 5.2.1-17
>
> The used sources for the gcc compilation are of version 4.9.2.
> Does build_gcc.sh use the system gcc to build gcc or does it use 
> bootstrapping?

No, there is no bootstrapping.  The system gcc is used to build gcc and ghdl.  
Note that any (well if not too old) version of gcc/gnat could be used to build 
ghdl (ie you don't need 4.9).

> As I run my first GHDL compilation, there was no gcc-4.9.x package in 
> Debian, so I had to load all sources from the website. Now my system has a 
> gcc-4.9.
>
> Should I install the gcc sources via aptitude and remove my manually 
> downloaded files?

My script supposes you are using gcc sources from fsf.org

Tristan.


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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to