Stephen,
Thank you for your help. I believe I am using the mingw:
$ which c++
/cygdrive/c/MinGW/bin/c++
After the above I have configured with:
$CPPFLAGS="-Ic:/gnuwin32/include -Ic:/MinGW-packages/include"
$LDFLAGS="-Lc:/gnuwin32/lib -Lc:/MinGW-packages/include"
$export CPPFLAGS LDFLAGS
I have one change wrt your mingw.txt: instead of bison 1.75, I am using bison 1.875b. The latter does not appear to have the compile errors of bison 1.875-1.
Here is my config.h
* config.h. Generated by configure. */
#ifndef __config_H /* -*- c++ -*- */
#define __config_H
/*
* Copyright (c) 2001 Stephen Williams ([EMAIL PROTECTED])
*
...
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: config.h.in,v 1.11 2004/10/04 01:10:52 steve Exp $"
#endif
#if defined(__cplusplus)
# if !defined(__GNUC__)
using namespace std;
# elif (__GNUC__ == 3)
using namespace std;
# endif
#endif
/* # undef NEED_LU */
/* # undef NEED_TU */
/* # undef WLU */
/* # undef WTU */
/* # undef HAVE_TIMES */
# define HAVE_IOSFWD 1
/* # undef HAVE_GETOPT_H */
/* # undef HAVE_LIBIBERTY_H */
# define HAVE_MALLOC_H 1
/* # undef HAVE_DLFCN_H */
/* # undef HAVE_DL_H */
/* # undef HAVE_FCHMOD */
/* # undef HAVE_LIBREADLINE */
# define HAVE_LIBZ 1
# define HAVE_LIBBZ2 1
/* # undef HAVE_SYS_WAIT_H */
/* # undef WORDS_BIGENDIAN */
/*
* $Log: config.h.in,v $
* Revision 1.11 2004/10/04 01:10:52 steve
* Clean up spurious trailing white space.
*
* Revision 1.10 2003/08/26 16:26:01 steve
* ifdef idents correctly.
*
* Revision 1.9 2003/07/03 16:29:55 steve
* spemm WORDS_BIGENDIAN correctly.
*
* Revision 1.8 2003/03/07 02:44:33 steve
* Implement $realtobits.
*
* Revision 1.7 2003/02/20 00:49:24 steve
* detect -lz and -lbz2 libraries.
*
* Revision 1.6 2003/01/10 19:01:04 steve
* Only use libiberty.h if available.
*
* Revision 1.5 2002/08/11 23:39:33 steve
* Remove VVM option.
*
* Revision 1.4 2002/02/16 03:18:53 steve
* Make vvm optional, normally off.
*
* Revision 1.3 2001/10/18 16:16:23 steve
* Include HAVE_SYS_WAIT in config.h (PR#306)
*
* Revision 1.2 2001/09/15 18:27:04 steve
* Make configure detect malloc.h
*
* Revision 1.1 2001/07/25 03:10:48 steve
* Create a config.h.in file to hold all the config
* junk, and support gcc 3.0. (Stephan Boettcher)
*
*/
#endif // __config_H
Cordially, CN
On Wed, 29 Jun 2005 15:11:46 -0700, Stephen Williams wrote:
Hmm... Are you really compiling with the mingw compiler and not
the cygwin compiler? And did you configure that way? There is some
trickery to get the "getopt" declarations right when compiling for
Windows. I think there is some confusion in your configure/compile
over compilers and linkers.
Unfortunately, it's been a while since I last addressed this. Try
posting your iverilog81/config.h file and I can compare it with
one I have here that successfully compiled iverilog under Windows.
CN wrote:
| When I try to build ivl 0.8 using cygwin, (following Stephen Williams minggw.txt), I get
the following error. Can anybody please help me? I am very new to win build of ivl. Is
there another mailing list where win build issues are being discussed?
|
| Cordially, CN
|
| ...
| g++ -DHAVE_CVS_IDENT=1 -DHAVE_CONFIG_H -I. -I. -Ic:/gnuwin32/include -Ic:/MinGW-
| packages/include -Wall -g -O2 -MD -c t-dll-proc.cc -o t-dll-proc.o
| mv t-dll-proc.d dep/t-dll-proc.d
| g++ -DHAVE_CVS_IDENT=1 -DHAVE_CONFIG_H -I. -I. -Ic:/gnuwin32/include -Ic:/MinGW-
| packages/include -Wall -g -O2 -MD -c t-xnf.cc -o t-xnf.o
| mv t-xnf.d dep/t-xnf.d
| g++ -o ivl.exe main.o async.o design_dump.o dup_expr.o elaborate.o elab_expr.o e
| lab_lval.o elab_net.o elab_anet.o elab_pexpr.o elab_scope.o elab_sig.o emit.o ev
| al.o eval_attrib.o eval_tree.o expr_synth.o functor.o lexor.o lexor_keyword.o li
| nk_const.o load_module.o netlist.o netmisc.o net_assign.o net_design.o net_event
| .o net_expr.o net_force.o net_func.o net_link.o net_modulo.o net_nex_input.o net
| _nex_output.o net_proc.o net_scope.o net_udp.o net_variable.o pad_to_width.o par
| se.o parse_misc.o pform.o pform_dump.o set_width.o symbol_search.o sync.o sys_fu
| ncs.o verinum.o verireal.o target.o targets.o Attrib.o HName.o LineInfo.o Module
| .o PData.o PDelays.o PEvent.o PExpr.o PGate.o PTask.o PUdp.o PFunction.o PWire.o
| Statement.o StringHeap.o cprop.o nodangle.o synth.o synth2.o syn-rules.o xnfio.
| o t-dll.o t-dll-api.o t-dll-expr.o t-dll-proc.o t-xnf.o
| main.o: In function `Z17read_iconfig_filePKc':
| .../iverilog81/main.cc:406: undefined reference to `optarg'
| main.o: In function `main':
| .../iverilog81/main.cc:492: undefined reference to `getopt'
| .../iverilog81/main.cc:461: undefined reference to `optarg'
| .../iverilog81/main.cc:471: undefined reference to `optarg'
| .../iverilog81/main.cc:474: undefined reference to `optarg'
| main.o: In function `main':
| c:/MinGW/include/c++/3.2/bits/stl_alloc.h:630: undefined reference to `optarg'
| c:/MinGW/include/c++/3.2/bits/stl_alloc.h:630: undefined reference to `optarg'
| main.o: In function `main':
| .../iverilog81/main.cc:518: undefined reference to `optind'
| .../iverilog81/main.cc:552: undefined reference to `optind'
| lexor.o: In function `Z14VL_init_bufferP15yy_buffer_stateP6_iobuf':
| .../iverilog81/lexor.cc:2409: undefined reference to `isatty(int)'
| make: *** [ivl.exe] Error 1
|
|
--
Steve Williams "The woods are lovely, dark and deep.
steve at icarus.com But I have promises to keep,
http://www.icarus.com and lines to code before I sleep,
http://www.picturel.com And lines to code before I sleep."
- Re: gEDA: Need help resolving a scheduling contradiction geda
- Re: gEDA: Need help resolving a scheduling contradic... Stephen Williams
- Re: gEDA: Need help resolving a scheduling contradiction Stephen Brickles
- Re: gEDA: Need help resolving a scheduling contradic... Stephen Williams
- gEDA: Win compile help please CN
- gEDA: Win compile help please CN
- gEDA: Win compile help please CN
- Re: gEDA: Win compile help please Stephen Williams
- Re: gEDA: Win compile help plea... CN
- Re: gEDA: Win compile help plea... Stephen Williams
- Re: gEDA: Win compile help plea... CN
- Re: gEDA: Win compile help plea... CN
- Re: gEDA: Win compile help plea... CN
- Re: gEDA: Win compile help plea... Matthew Ballance
- Re: gEDA: Win compile help plea... CN
- Re: gEDA: Win compile help plea... Matthew Ballance
- Re: gEDA: Win compile help plea... Matthew Ballance
- Re: gEDA: Win compile help plea... CN
- Re: gEDA: Need help resolving a scheduling contr... John Sanguinetti