Hi,

On Sat, 19 Nov 2016 11:37:57 +0100 Adrien Prost-Boucle wrote:

> Hi,
> 
> I'm maintaining the package ghdl-gcc-git for ArchLinux distribution
> https://aur.archlinux.org/packages/ghdl-gcc-git/
> 
> The package builds gcc + VHDL libs in one package, which is very
> convenient. However building the libraries is now done separately
> according to the BUILD.txt file:
> make ghhdlib
> The problem is that when this command is run by the packaging script,
> the GHDL executable is not yet installed in the filesystem and /usr/bin/ghdl 
> does not exist.
> 
> Actually when doing make install from the gcc build directory,
> the installed files are copied in another local directory, sort of a
> fake root. I looked at the Makefile in the GHDL dir and tried that
> command to compile the libs:
> make GHDL="/home/adrien/Dev/AUR/ghdl-gcc-git/pkg/ghdl-gcc-git/usr/bin/ghdl" 
> vhdl.libs.all libs.vhdl.standard
> That way the command uses the ghdl executable in the temp package dir,
> but I get these errors:
> warning: library std does not exists for v87
> warning: library ieee does not exists for v87
> 
> I wouldn't like splitting the package in 2, one with ghdl, which would
> need to be built and installed first, and another that would just have
> the libs.
> 
> And I haven't found a way to compile the libs without first having
> installed a version of ghdl with the std lib...
> 
> Any advice on this?

I have also stumbled over this issue: violating the good triple-rule:
configure / make / make install. Building of ghdl is already more
complex due to unpacking of gcc and calling make copy-sources (though
this could be treated as bootstrap and maybe better renamed to
bootstrap, while preserving comment "copy sources"?). The other thing
is that ghdl was nicely built out-of-tree in the gcc build directory
but now make ghdllib must be called in the ghdl source directory, which
I'd like to avoid. Sorry, I haven't addressed this issue right on
July/August.

Actually using already compiled parts to generate something else during
build is not uncommon. But in such cases Makefile uses executables in
their build path, not installed one. Hopefully this could be fixed. And
the other thing would be to add something like
make copy-ghdllib-sources to build it out-of-tree also? BTW, is there
any good reason to not build ghdllib in the gcc build directory?

Thanks,
Andrey

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

Reply via email to