From: Bertrand A. <ar...@xm...> - 2006-02-16 09:41:18
|
Hi All, I 'm new to ngspice and I'd like to use it with ADMS in order to implement Verilog-AMS models (mostly HICUM and PSP). I'm currently working on cygwin, (I'd like to use Linux, but other software which I need to interface to ngspice are only available on windows up to now) I'm having some compilation issues explained below: a) when I compile ngspice-rework-17 on Cygwin + external Mingw (see INSTALL file comments) the executable is OK. But no "rawfile" is produced, and the batch mode does not work. Since this is exactly the feature which I need, I had to switch to other comilation options. b) Whatever I tried, the compilation on Cygwin + internal mingw (-mno-cygwin) option produces some errors (shown at the end of this message). - I have tried the default procedure which didn't worked - I have tried to reuse the config.h from option (a) but didn't worked - I have been aware of the fact that in some cases, the linker strips off the -mno-cygwin option, thus creating errors at link time. Therefore I have tried to make a wraper for gcc which forces the option -mno-cygwin (this solves some compilation issues for other softwares, eg ADMS), but didn't worked with ngspice. c) I have tried to compile directly on cygwin but didn't worked as well, but I can't really confirm since I didn't spent much time on it: my final goal is option b (I would like to get rid of cygwin1.dll) I'm running out of ideas, if somebody can help, I would strongly appreciate. Basically any workaround should be helpfull, too (I do not neccesarly need to have option b working), what I need is to be able to run ngspice in batch mode and produce a rawfile. Note that I need to get SPICE3 compatibility, I can't play on the INPUT files (eg adding .save statements), since my input files are produced automatically by proprietary software I use (eg, Agilent ICCAP for parameter extraction). Many thanks in advance, Bertrand errors with Option b (CFLAGS="-mno-cygwin -H"): ----------------------------------------------------- .... ///// MORE WARNINGS HERE ///// .... ngspice.c:42: warning: initialization from incompatible pointer type Multiple include guards may be useful for: ../src/include/suffix.h ../src/misc/stringutil.h /usr/i686-pc-mingw32/include/getopt.h /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/syslimits.h . ../config.h . /usr/include/w32api/windows.h .. /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/stdarg.h .. /usr/include/w32api/windef.h ... /usr/include/w32api/winnt.h .... /usr/include/w32api/winerror.h .... /usr/i686-pc-mingw32/include/string.h ..... /usr/i686-pc-mingw32/include/_mingw.h ..... /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/stddef.h .... /usr/include/w32api/basetsd.h .... /usr/include/w32api/pshpack4.h .... /usr/include/w32api/poppack.h .. /usr/include/w32api/wincon.h .. /usr/include/w32api/winbase.h .. /usr/include/w32api/wingdi.h .. /usr/include/w32api/winuser.h .. /usr/include/w32api/winnls.h .. /usr/include/w32api/winver.h .. /usr/include/w32api/winnetwk.h .. /usr/include/w32api/winreg.h .. /usr/include/w32api/winsvc.h . /usr/include/w32api/windowsx.h . /usr/i686-pc-mingw32/include/stdio.h .. /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/stddef.h .. /usr/i686-pc-mingw32/include/sys/types.h ... /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/stddef.h . /usr/i686-pc-mingw32/include/stdlib.h .. /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/stddef.h . /usr/i686-pc-mingw32/include/assert.h . /usr/i686-pc-mingw32/include/errno.h . /usr/i686-pc-mingw32/include/dirent.h .. /usr/i686-pc-mingw32/include/io.h ... /usr/i686-pc-mingw32/include/stdint.h .... /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/stddef.h . /usr/i686-pc-mingw32/include/signal.h . /usr/i686-pc-mingw32/include/ctype.h .. /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/stddef.h . ../src/include/bool.h winmain.c: In function `MakeArgcArgv': winmain.c:594: warning: `pC2' might be used uninitialized in this function Multiple include guards may be useful for: ../config.h . ../src/include/ngspice.h .. ../config.h .. /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/stddef.h .. /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/limits.h ... /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/syslimits.h .... /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/limits.h ..... /usr/i686-pc-mingw32/include/limits.h ...... /usr/i686-pc-mingw32/include/_mingw.h .. ../src/include/memory.h ... ../src/misc/stringutil.h .... ../config.h .. ../src/include/defines.h .. ../src/include/macros.h .. ../src/include/bool.h .. ../src/include/complex.h .. /usr/i686-pc-mingw32/include/math.h .. /usr/i686-pc-mingw32/include/stdio.h ... /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/stddef.h ... /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/stdarg.h ... /usr/i686-pc-mingw32/include/sys/types.h .... /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/stddef.h .. /usr/i686-pc-mingw32/include/stdlib.h ... /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/stddef.h .. /usr/i686-pc-mingw32/include/string.h ... /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/stddef.h .. /usr/i686-pc-mingw32/include/ctype.h ... /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/stddef.h .. /usr/i686-pc-mingw32/include/unistd.h ... /usr/i686-pc-mingw32/include/io.h .... /usr/i686-pc-mingw32/include/stdint.h ..... /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/stddef.h ... /usr/i686-pc-mingw32/include/process.h ... /usr/i686-pc-mingw32/include/getopt.h .. /usr/i686-pc-mingw32/include/dirent.h .. /usr/i686-pc-mingw32/include/sys/timeb.h .. /usr/i686-pc-mingw32/include/time.h ... /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/stddef.h .. ../src/include/wstdio.h . /usr/i686-pc-mingw32/include/setjmp.h . /usr/i686-pc-mingw32/include/signal.h . ../src/include/iferrmsg.h . ../src/include/ftedefs.h .. ../src/include/fteparse.h ... ../src/include/cpstd.h .... ../src/include/wordlist.h ... ../src/include/dvec.h .... ../src/include/grid.h ... ../src/include/plot.h ... ../src/include/pnode.h .. ../src/include/fteinp.h ... ../src/include/inpdefs.h .... ../src/include/ifsim.h .... ../src/include/gendefs.h .... ../src/include/inpptree.h .. ../src/include/fteext.h ... ../config.h ... ../src/include/cpdefs.h .... ../src/include/cpextern.h ... ../src/include/ftedefs.h . ../src/include/devdefs.h .. ../src/include/optdefs.h .. ../src/include/cktdefs.h ... ../src/include/smpdefs.h ... ../src/include/acdefs.h .... ../src/include/jobdefs.h ... ../src/include/trcvdefs.h .... ../src/include/tskdefs.h ... ../src/include/sen2defs.h ... ../src/include/pzdefs.h ... ../src/include/noisedef.h . spicelib/devices/dev.h . spicelib/analysis/analysis.h . misc/ivars.h . misc/getopt.h . frontend/resource.h . frontend/variable.h . frontend/display.h .. ../src/include/ftedev.h .. ../src/include/fteinput.h ... ../src/include/graph.h . frontend/signal_handler.h main.c: In function `read_initialisation_file': main.c:565: warning: unused variable `fp' Multiple include guards may be useful for: ../src/include/inpptree.h ../src/misc/stringutil.h /usr/i686-pc-mingw32/include/getopt.h /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/include/syslimits.h maths/cmaths/libcmaths.a(cmath2.o)(.text+0xa83): In function `cx_rnd': /home/Administrateur/devel/ngspice/ng-spice-rework-17/src/maths/cmaths/cmath2.c:228: undefined reference to `_random' maths/cmaths/libcmaths.a(cmath2.o)(.text+0xb47):/home/Administrateur/devel/ngspice/ng-spice-rework-17/src/maths/cmaths/cmath2.c:220: undefined reference to `_random' maths/cmaths/libcmaths.a(cmath2.o)(.text+0xb5a):/home/Administrateur/devel/ngspice/ng-spice-rework-17/src/maths/cmaths/cmath2.c:220: undefined reference to `_random' collect2: ld returned 1 exit status make[3]: *** [ngspice.exe] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 -- -------------------------------------------- Bertrand ARDOUIN, PhD. R & D Director Xmod Technologies 43, rue P. Noailles Parc scientifique Unitec 2 33 400 TALENCE FRANCE e-mail: ar...@xm... web site: www.xmodtech.com Phone: +33 5 40 00 34 98 Mobile: +33 6 82 46 19 70 Fax: +33 5 40 00 34 44 -------------------------------------------- |
From: Holger V. <hol...@un...> - 2006-02-18 10:38:24
|
Hallo Betrand, may I suggest that you use original mingw. Download and install MinGW-5.0.2.exe from http://sourceforge.net/project/showfiles.php?group_id=2435. Then download and install MSYS (MSYS-1.0.11-2004.04.30-1.exe) form the same website. Ngspice-rework-17 should then compile out of the box inside the msys window (as it did for me with an older Mingw version). Regards Holger Bertrand Ardouin schrieb: > Hi All, > I 'm new to ngspice and I'd like to use it with ADMS in order to > implement Verilog-AMS models (mostly HICUM and PSP). > I'm currently working on cygwin, (I'd like to use Linux, but other > software which I need to interface to ngspice are only available on > windows up to now) ... |
From: Gary R. V. S. <g.r...@wo...> - 2006-02-18 20:08:55
|
It compiles OOB on Cygwin. BTW: Why hasn't my "make test" patch so that Cygwin can run the tests been comitted yet? -- Gary R. Van Sickle > -----Original Message----- > From: ngs...@li... > [mailto:ngs...@li...] On Behalf > Of Holger Vogt > Sent: Saturday, February 18, 2006 4:39 AM > To: ngs...@li... > Subject: Re: [Ngspice-devel] NGSPICE + ADMS > > Hallo Betrand, > > may I suggest that you use original mingw. > > Download and install MinGW-5.0.2.exe from > http://sourceforge.net/project/showfiles.php?group_id=2435. > Then download and install MSYS (MSYS-1.0.11-2004.04.30-1.exe) > form the same website. > > Ngspice-rework-17 should then compile out of the box inside > the msys window (as it did for me with an older Mingw version). > > Regards > > Holger > > > Bertrand Ardouin schrieb: > > Hi All, > > I 'm new to ngspice and I'd like to use it with ADMS in order to > > implement Verilog-AMS models (mostly HICUM and PSP). > > I'm currently working on cygwin, (I'd like to use Linux, but other > > software which I need to interface to ngspice are only available on > > windows up to now) > ... > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep > through log files for problems? Stop! Download the new AJAX > search engine that makes searching your log files as easy as > surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486& dat=121642 > _______________________________________________ > Ngspice-devel mailing list > Ngs...@li... > https://lists.sourceforge.net/lists/listinfo/ngspice-devel |
From: Paolo N. <p....@ie...> - 2006-02-19 09:38:30
|
Ciao Gary, Sorry, the patch was lost on past emails. I have applied and committed it a few minutes ago. Wait some hours before checkout. Thanks for the patch, Paolo On Sat, 2006-02-18 at 14:08 -0600, Gary R. Van Sickle wrote: > It compiles OOB on Cygwin. > > BTW: Why hasn't my "make test" patch so that Cygwin can run the tests been > comitted yet? > |
From: Bertrand A. <ar...@xm...> - 2006-02-20 09:39:10
|
Hi All, many thanks for your valuable feedback. I have solved the issue regarding the compilation of ngspice with pure cygwin: I had various directories, in my PATH possibly poluting the comilation process. I'm not sure but I suspect that TCL and/or GTK+/Glade stuff was the source of the problem. Everything works fine now. I will try the MINGW/MYSYS compilation too, in the coming days. A few more questions though: - Does the MINGW/MYSYS install proposed by Holger, also contains the various tools like autogen, automake, etc ... ? - I made a quick test of the "-s" option with ngspice, and I'am not sure that it works properly (It's useful to link ngspice to Agilent ICCAP in piped mode). Does anybody know about "-s" option ? - Does anybody know if ngspice allows AC simulations at spot frequency with a DC sweeps in a single shot simulation ? (useful for transit frequency versus bias calculation) If anybody is interested in how to link ngspice to ICCAP in place of the orginal SPICE engine, let me know, I will send my procedure. It's a bit tricky and works only in non piped mode up to know, but very convenient for all those who are involved in model parameter extraction. Kind regards, Bertrand -------------------------------------------- Bertrand ARDOUIN, PhD. R & D Director Xmod Technologies 43, rue P. Noailles Parc scientifique Unitec 2 33 400 TALENCE FRANCE e-mail: ar...@xm... web site: www.xmodtech.com Phone: +33 5 40 00 34 98 Mobile: +33 6 82 46 19 70 Fax: +33 5 40 00 34 44 -------------------------------------------- |
From: Sun J. <fx...@ya...> - 2006-02-20 10:56:20
|
Hi,Bertrand Ardouin, I can implement ngspice to ICCAP.:) Regards, Charly Sun ----- Original Message ---- From: Bertrand Ardouin <ar...@xm...> To: ngs...@li... Sent: Monday, February 20, 2006 5:38:50 PM Subject: Re: [Ngspice-devel] NGSPICE + ADMS Hi All, many thanks for your valuable feedback. I have solved the issue regarding the compilation of ngspice with pure cygwin: I had various directories, in my PATH possibly poluting the comilation process. I'm not sure but I suspect that TCL and/or GTK+/Glade stuff was the source of the problem. Everything works fine now. I will try the MINGW/MYSYS compilation too, in the coming days. A few more questions though: - Does the MINGW/MYSYS install proposed by Holger, also contains the various tools like autogen, automake, etc ... ? - I made a quick test of the "-s" option with ngspice, and I'am not sure that it works properly (It's useful to link ngspice to Agilent ICCAP in piped mode). Does anybody know about "-s" option ? - Does anybody know if ngspice allows AC simulations at spot frequency with a DC sweeps in a single shot simulation ? (useful for transit frequency versus bias calculation) If anybody is interested in how to link ngspice to ICCAP in place of the orginal SPICE engine, let me know, I will send my procedure. It's a bit tricky and works only in non piped mode up to know, but very convenient for all those who are involved in model parameter extraction. Kind regards, Bertrand -------------------------------------------- Bertrand ARDOUIN, PhD. R & D Director Xmod Technologies 43, rue P. Noailles Parc scientifique Unitec 2 33 400 TALENCE FRANCE e-mail: ar...@xm... web site: www.xmodtech.com Phone: +33 5 40 00 34 98 Mobile: +33 6 82 46 19 70 Fax: +33 5 40 00 34 44 -------------------------------------------- ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Ngspice-devel mailing list Ngs...@li... https://lists.sourceforge.net/lists/listinfo/ngspice-devel |
From: Holger V. <hol...@un...> - 2006-02-20 19:25:27
|
Dear Bertrand, to add these tools you also need the MSYS Developer Tool Kit available at http://prdownloads.sourceforge.net/mingw/msysDTK-1.0.1.exe?download from the same Mingw web site. <http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=82721&release_id=158856> Regards Holger Bertrand Ardouin schrieb: A few more questions though: - Does the MINGW/MYSYS install proposed by Holger, also contains the various tools like autogen, automake, etc ... ? |