On November 25, 2014, Brian Drummond wrote:

Or indeed the even newer ghdl-0.32rc1 <snip>
Brian, have you tried that one yet?

At a first glance, it doesn't appear that the Windows build infrastructure has been kept up to date with the 0.32 source tree changes.

I was hoping to get things sorted out over this long weekend (US holiday), but two days without power put somewhat of a crimp in my computing plans.

Attached is a work-in-progress patch file for what I've found so far.

See notes below.

-Brian

------------------
Build Problems

In previous releases, I used ./translate/mcode/winbuild.bat to build the Windows mcode target; this then invokes compile.bat and complib.bat in ./translate/mcode/windows

In 0.32, this process fails, as the file ./translate/ghdldrv/ghdl_mcode.adb has been renamed to ghdl_jit.adb in the source tree.

After patching compile.bat to use ghdl_jit, ghdl.exe is then built; but the subsequent library analysis fails.

------------------
Library Analysis Problems

I see various errors analyzing the VHDL libraries with the resulting ghdl.exe

- the v87 std library isn't being analyzed sucessfully, which then causes a cascade of failures.

- the v93 library fails on textio.

It seems that .\translate\mcode\windows\ghdlfilter.adb was not updated to support the --{START-|END-}V08 markups needed to preprocess the new version of the libraries.

Additionally, the 2008 block markups added to the libraries do not start in column 1 as required by the currrent ghdlfilter.exe

After patching ghdlfilter and the libraries, the analysis errors are gone (although there are still warnings I need to review.)

I will also need to update complib.bat (and the derived reanalyze_libs.bat found in the zip file distribution) to analyze the v08 libs along with v87 and v93.

------------------
version & configuration report:

It's odd that the 0.32 --disp_config no longer sees GHDL_PREFIX from the Windows environment variable.

echo %GHDL_PREFIX%
C:\Ghdl\ghdl-0.32-test\lib

ghdl --version
GHDL 0.32rc1 (20141104) [Dunoon edition]
Compiled with GNAT Version: GPL 2014 (20140331)
mcode code generator
Written by Tristan Gingold.

Copyright (C) 2003 - 2014 Tristan Gingold.
GHDL is free software, covered by the GNU General Public License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


ghdl --disp-config
command line prefix (--PREFIX): (not set)
environment prefix (GHDL_PREFIX): (not set)
exec prefix (from program name): C:\Ghdl\ghdl-0.32-test

library prefix: C:\Ghdl\ghdl-0.32-test\lib
library directory: C:\Ghdl\ghdl-0.32-test\lib
command_name: C:\Ghdl\ghdl-0.32-test\bin\ghdl.exe
default library pathes:
C:\Ghdl\ghdl-0.32-test\lib\v93\std\
C:\Ghdl\ghdl-0.32-test\lib\v93\ieee\

---

Attachment: ghdl-0.32-win1.patch
Description: Binary data

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

Reply via email to