Project

General

Profile

[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  SVN::S4
  Voneline
  WFH
General Info
  Papers

lxt2_config.h problem.

Added by HyungKi Jeong 3 months ago

In MINGW64+MSYS2 system, there is no "alloca.h" header file.
And I have got an error with this.
Some codes on the lxt2_config.h
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). */
#define HAVE_ALLOCA_H 1
And wavealloca.h header file.
#ifdef HAVE_ALLOCA_H
#include <alloca.h>
......
Maybe it should be modified as shown below.
"lxt2_config.h" 
#ifndef HAVE_ALLOCA_H 
#define HAVE_ALLOCA_H 1
#endif

"wavealloca.h" 
#if HAVE_ALLOCA_H
#include <alloca.h>
......

Replies (6)

RE: lxt2_config.h problem. - Added by Wilson Snyder 3 months ago

Please try something like this, and when it works post back the patch and I'll apply it.

diff --git a/include/gtkwave/lxt2_config.h b/include/gtkwave/lxt2_config.h
index 653a1921..93955b3e 100644
--- a/include/gtkwave/lxt2_config.h
+++ b/include/gtkwave/lxt2_config.h
@@ -6,7 +6,9 @@
 #define HAVE_ALLOCA 1

 /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). */
-#define HAVE_ALLOCA_H 1
+#if !defined(__MINGW32__)
+# define HAVE_ALLOCA_H 1
+#endif

 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
 #define HAVE_FSEEKO 1

RE: lxt2_config.h problem. - Added by HyungKi Jeong 2 months ago

Wilson Snyder wrote:

Please try something like this, and when it works post back the patch and I'll apply it.

[...]

It works fine~^^ But "fst_config.h" file is same with this. (v4.004)

RE: lxt2_config.h problem. - Added by Wilson Snyder 2 months ago

Fixed for lxt2 and fst in git towards 4.006.

RE: lxt2_config.h problem. - Added by Wilson Snyder 2 months ago

(Be sure to "make clean" or remove your simulation's object directory before rebuilding or you'll get a missing file error.)

RE: lxt2_config.h problem. - Added by HyungKi Jeong 13 days ago

Still I've got an error on v4.008.

I do comment out the "HAVE_ALLOCA_H" definition at 'fst_config.h' line #6.
//#define HAVE_ALLOCA_H 1

/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). */
//#define HAVE_ALLOCA_H 1
#if !defined(__MINGW32__)
# define HAVE_ALLOCA_H 1
#endif

/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
#define HAVE_FSEEKO 1

Please apply this in next time~

RE: lxt2_config.h problem. - Added by Wilson Snyder 13 days ago

Fixed in git. Note LXT2 will be deleted shortly, please use FST.

    (1-6/6)