Hi,

I've just installed ghdl with llvm-backend under Ubuntu 16.04 LTS
and ran into a strange issue.

All builds apparently fine, but when I use ghdl to compile a model I got

    gcc: error: .../usr_local/lib/ghdl/v93/std/std_standard.o:
         No such file or directory
         ghdl: compilation error

Indeed lib/ghdl/v93/std/std_standard.o is missing. Turns out that
in the ghdl compile directory is a std_standard.o, and just moving
it to the lib/ghdl/v93/std fixes it.

Looking into the compile log file I see

    mkdir -p lib/ghdl/v08
    ...
    cd lib/ghdl/v93/std; \
    .../ghdl/ghdl_llvm --bootstrap- standard \
      --GHDL1=.../ghdl/ghdl1-llvm --std=93
    cd lib/ghdl/v87/std; \
    .../ghdl/ghdl_llvm --bootstrap-standard \
      --GHDL1=.../ghdl/ghdl1-llvm --std=87
    /bin/sh: 1: cd: can't cd to lib/ghdl/v87/std
    /bin/sh: 1: cd: can't cd to lib/ghdl/v93/std

apparently lib/ghdl/v08 is created in time, but lib/ghdl/v93/std
and lib/ghdl/v87/std aren't at the time they are needed.

Seems to be an issue with the make file. I use

    time git clone https://github.com/tgingold/ghdl
    cd ghdl
    mkdir usr_local
    ./configure --with-llvm-config=/usr/lib/llvm-3.5/bin/llvm-config \
                --prefix=`pwd`/usr_local
    time make -j 2 2>&1 | tee compile.log
    make install 2>&1 | tee install.log

and wonder why that leads to such strange results.

Any hint/help very welcome.

        With best regards,  Walter

_______________________________________________
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to