Menu

#27 compiling issue

v1.0 (example)
closed
nobody
None
5
2018-09-03
2018-01-10
No

During make process, i encountered with the following errors.

[modestpe@ggx-srv1 release]$ make
Making all in src
make[1]: Entering directory `/home/modestpe/Downloads/ngspice-27/release/src'
Making all in include/ngspice
make[2]: Entering directory `/home/modestpe/Downloads/ngspice-27/release/src/include/ngspice'
make  all-am
make[3]: Entering directory `/home/modestpe/Downloads/ngspice-27/release/src/include/ngspice'
make[3]: Leaving directory `/home/modestpe/Downloads/ngspice-27/release/src/include/ngspice'
make[2]: Leaving directory `/home/modestpe/Downloads/ngspice-27/release/src/include/ngspice'
Making all in misc
make[2]: Entering directory `/home/modestpe/Downloads/ngspice-27/release/src/misc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/modestpe/Downloads/ngspice-27/release/src/misc'
Making all in maths
make[2]: Entering directory `/home/modestpe/Downloads/ngspice-27/release/src/maths'
Making all in cmaths

make[3]: Entering directory `/home/modestpe/Downloads/ngspice-27/release/src/maths/cmaths'
  CCLD     test_cx_mag
/usr/local/lib/libreadline.so: undefined reference to `tputs'
/usr/local/lib/libreadline.so: undefined reference to `tgoto'
/usr/local/lib/libreadline.so: undefined reference to `tgetflag'
/usr/local/lib/libreadline.so: undefined reference to `UP'
/usr/local/lib/libreadline.so: undefined reference to `tgetent'
/usr/local/lib/libreadline.so: undefined reference to `tgetnum'
/usr/local/lib/libreadline.so: undefined reference to `PC'
/usr/local/lib/libreadline.so: undefined reference to `tgetstr'
/usr/local/lib/libreadline.so: undefined reference to `BC'
collect2: error: ld returned 1 exit status
make[3]: *** [test_cx_mag] Error 1
make[3]: Leaving directory `/home/modestpe/Downloads/ngspice-27/release/src/maths/cmaths'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/modestpe/Downloads/ngspice-27/release/src/maths'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/modestpe/Downloads/ngspice-27/release/src'
make: *** [all-recursive] Error 1

I don't know what to do in order to fix this issues. Any help would be much appreciated.

Discussion

  • Holger Vogt

    Holger Vogt - 2018-01-10

    Please edit your message for readability: mark the output text and format it into code (fourth button from the left).

    Did you use 'make clean' before starting 'make'? This sometimes helps.

     
  • Robert Larice

    Robert Larice - 2018-01-10

    Hello,
    your log shows "/usr/local/lib/libreadline.so", which means you have used a readline library which was not part of your unix distribution. The unresolved externals are functions from the "curses" library, or of one of its substitutes. You have not linked with this library. I suggest to use the resources of your unix distribution instead of trying your homegrown libreadline. Or add the libraries which your libreadline is refering to to the LIBS variable when invoking "configure". This all depends a great many on the arguments you have given to "configure", which you haven't posted in your request.

     
  • Kuk-Hwan Kim

    Kuk-Hwan Kim - 2018-01-10

    Thank you Holger, I tried to edit my original post. But I couldn't figure out how to edit my original post. I did use "make clean" and reissue configure commnad

    " ../configure --with-x --with-readline=yes --disable-debug LDFLAGS="-L/usr/local/lib/"
    "make"

    still results in same error messages.

     
  • Kuk-Hwan Kim

    Kuk-Hwan Kim - 2018-01-10

    Thank you Robert, I tried to use the following commands. But still same issues. Is this right way to set LIBS variable you mentioned before?

    make clean
    ../configure --with-x --with-readline=yes --disable-debug LDFLAGS="-L/usr/local/lib/"
    make

     
  • Kuk-Hwan Kim

    Kuk-Hwan Kim - 2018-01-10

    I am using RHEL 7 for my simulation platform with minimum support option from redhat. Therefore, all development libraries has to be built from scratch. Do you think I would better move onto Ubuntu platform which has better software package support? Thanks,

     
  • Robert Larice

    Robert Larice - 2018-01-10

    Hello,
    I can not remember whether it was LIBS or LDFLAGS, but you can easily find out yourself.
    just add V=1 to the make invockation, thus run make V=1
    you will then see with which arguments the compiler and linker is exectuted, and infer whether your additional flags have been properly added, have overriden important stuff, or have not been used at all. I think you need something like -lterminfo or -ltermcap or -lcurses or ... I can not guess from here. I don't know whether "readline" is that much important for you, you might simply configure without "readline" and try whether that is a simple work around for you. I can not imagine redhat doesn't provide those libraries, that would be real laughable for today standards. Other distributions for sure do have those libs nicely packaged and readily available,
    but you need to "install" them, which means you still have to search and learn which ones to select in their package manager.

     
  • Robert Larice

    Robert Larice - 2018-01-10
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,5 +1,6 @@
     During make process, i encountered with the following errors. 
    
    +~~~
     [modestpe@ggx-srv1 release]$ make
     Making all in src
     make[1]: Entering directory `/home/modestpe/Downloads/ngspice-27/release/src'
    @@ -36,5 +37,6 @@
     make[1]: *** [all-recursive] Error 1
     make[1]: Leaving directory `/home/modestpe/Downloads/ngspice-27/release/src'
     make: *** [all-recursive] Error 1
    +~~~
    
     I don't know what to do in order to fix this issues. Any help would be much appreciated. 
    
     
  • Kuk-Hwan Kim

    Kuk-Hwan Kim - 2018-01-10

    I reran with V=1 option. It looks to me that gcc is executed with proper library dependency. I installed ncurse and readline as shared libraries. But, I am not quite sure I installed correctly. Do you think there is ways to confirm those are properly installed. I guess setting LDFLAG is right way to designate non-shared library directory. I'd appreciate your help again.

    make[3]: Entering directory `/home/modestpe/Downloads/ngspice-27/release/src/maths/cmaths'
    /bin/sh ../../../libtool  --tag=CC   --mode=link gcc -static -O2 -s -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -Wold-style-definition -Wredundant-decls -Wconversion -Wno-unused-but-set-variable  -L/usr/local/lib/ -o test_cx_mag test_cx_mag.o libcmaths.la ../../misc/libmisc.la  -lncurses -lm  -lreadline
    libtool: link: gcc -O2 -s -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -Wold-style-definition -Wredundant-decls -Wconversion -Wno-unused-but-set-variable -o test_cx_mag test_cx_mag.o  -L/usr/local/lib/ ./.libs/libcmaths.a ../../misc/.libs/libmisc.a -lncurses -lm -lreadline
    /usr/local/lib//libreadline.so: undefined reference to `tputs'
    /usr/local/lib//libreadline.so: undefined reference to `tgoto'
    /usr/local/lib//libreadline.so: undefined reference to `tgetflag'
    /usr/local/lib//libreadline.so: undefined reference to `UP'
    /usr/local/lib//libreadline.so: undefined reference to `tgetent'
    /usr/local/lib//libreadline.so: undefined reference to `tgetnum'
    /usr/local/lib//libreadline.so: undefined reference to `PC'
    /usr/local/lib//libreadline.so: undefined reference to `tgetstr'
    /usr/local/lib//libreadline.so: undefined reference to `BC'
    collect2: error: ld returned 1 exit status
    make[3]: *** [test_cx_mag] Error 1
    
     
  • Robert Larice

    Robert Larice - 2018-01-10

    please show the relevant part of the configure output, when it talks about readline curses etc.
    then please run ldd /your/libreadline...
    on my system this mentions beeing dynamically linked to libtinfo
    and if I then run nm -D on/this/libtinfo I can see that the symbols which you are lacking
    are provided in this library.
    and please remove the trailing / in your -L arguments, as it leads to a // which in your compile log. Thats certainly not your current problem, but it might easily lead to another one.

     
  • Kuk-Hwan Kim

    Kuk-Hwan Kim - 2018-01-10

    Hi Robert,

    Thank you for your help again. Here is the configure output.

    [modestpe@ggx-srv1 release]$ ../configure  --with-x --with-readline=yes --disable-debug LDFLAGS="-L/usr/local/lib/"
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether make supports nested variables... (cached) yes
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables... 
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc understands -c and -o together... yes
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking how to run the C preprocessor... gcc -E
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for gcc... gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking whether gcc understands -c and -o together... (cached) yes
    checking dependency style of gcc... (cached) gcc3
    checking how to run the C preprocessor... gcc -E
    checking for ar... ar
    checking the archiver (ar) interface... ar
    checking whether to enable maintainer-specific portions of Makefiles... yes
    configure: WARNING: Removing debugging option!
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for strings.h... (cached) yes
    checking how to print strings... printf
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
    checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... dlltool
    checking how to associate runtime and link libraries... printf %s\n
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for sysroot... no
    checking for mt... no
    checking if : is a manifest tool... no
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... no
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking for shl_load... no
    checking for shl_load in -ldld... no
    checking for dlopen... no
    checking for dlopen in -ldl... yes
    checking whether a program can dlopen itself... yes
    checking whether a statically linked program can dlopen itself... yes
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking whether windows code with gui is enabled... no
    checking /proc/meminfo usability... yes
    checking /proc/meminfo presence... yes
    checking for /proc/meminfo... yes
    checking for X... no
    checking for stdbool.h that conforms to C99... yes
    checking for _Bool... yes
    checking for size_t... yes
    checking for working alloca.h... yes
    checking for alloca... yes
    checking for stdlib.h... (cached) yes
    checking for GNU libc compatible malloc... yes
    checking for stdlib.h... (cached) yes
    checking for GNU libc compatible realloc... yes
    checking for dirent.h that defines DIR... yes
    checking for library containing opendir... none required
    checking whether closedir returns void... no
    checking sys/select.h usability... yes
    checking sys/select.h presence... yes
    checking for sys/select.h... yes
    checking sys/socket.h usability... yes
    checking sys/socket.h presence... yes
    checking for sys/socket.h... yes
    checking types of arguments for select... int,fd_set *,struct timeval *
    checking for vprintf... yes
    checking for _doprnt... no
    checking if hardcoding of the X11 runtime library path is desired... no
    No X display!
    checking for pid_t... yes
    checking return type of signal handlers... void
    checking for sighandler_t... no
    checking for sig_t... yes
    checking for __sighandler_t... yes
    checking for dirent.h that defines DIR... (cached) yes
    checking for library containing opendir... (cached) none required
    checking for unistd.h... (cached) yes
    checking ctype.h usability... yes
    checking ctype.h presence... yes
    checking for ctype.h... yes
    checking pwd.h usability... yes
    checking pwd.h presence... yes
    checking for pwd.h... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking sys/ioctl.h usability... yes
    checking sys/ioctl.h presence... yes
    checking for sys/ioctl.h... yes
    checking stropts.h usability... no
    checking stropts.h presence... no
    checking for stropts.h... no
    checking for sys/wait.h that is POSIX.1 compatible... yes
    checking whether stat file-mode macros are broken... no
    checking arpa/inet.h usability... yes
    checking arpa/inet.h presence... yes
    checking for arpa/inet.h... yes
    checking netdb.h usability... yes
    checking netdb.h presence... yes
    checking for netdb.h... yes
    checking netinet/in.h usability... yes
    checking netinet/in.h presence... yes
    checking for netinet/in.h... yes
    checking stddef.h usability... yes
    checking stddef.h presence... yes
    checking for stddef.h... yes
    checking sys/file.h usability... yes
    checking sys/file.h presence... yes
    checking for sys/file.h... yes
    checking sys/param.h usability... yes
    checking sys/param.h presence... yes
    checking for sys/param.h... yes
    checking for sys/socket.h... (cached) yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking sys/timeb.h usability... yes
    checking sys/timeb.h presence... yes
    checking for sys/timeb.h... yes
    checking sys/io.h usability... yes
    checking sys/io.h presence... yes
    checking for sys/io.h... yes
    checking whether time.h and sys/time.h may both be included... yes
    checking whether struct tm is in sys/time.h or time.h... time.h
    checking for struct tm.tm_zone... yes
    checking for localtime... yes
    checking for ftime... yes
    checking for gettimeofday... yes
    checking for time... yes
    checking for getrusage... yes
    checking for utimes... yes
    checking for getrlimit... yes
    checking for endpwent... yes
    checking for gethostbyname... yes
    checking for memset... yes
    checking for select... yes
    checking for socket... yes
    checking for strdup... yes
    checking for strerror... yes
    checking for strncasecmp... yes
    checking for strstr... yes
    checking for strtol... yes
    checking termios.h usability... yes
    checking termios.h presence... yes
    checking for termios.h... yes
    checking for isatty... yes
    checking for tcgetattr... yes
    checking for tcsetattr... yes
    checking vfork.h usability... no
    checking vfork.h presence... no
    checking for vfork.h... no
    checking for fork... yes
    checking for vfork... yes
    checking for working fork... yes
    checking for working vfork... (cached) yes
    checking for access... yes
    checking for qsort... yes
    checking for dup2... yes
    checking for popen... yes
    checking for tsearch... yes
    checking for tdestroy... yes
    checking for strchr... yes
    checking for strrchr... yes
    checking for getcwd... yes
    Checking mathematical features of the system:
    checking for sqrt in -lm... yes
    checking float.h usability... yes
    checking float.h presence... yes
    checking for float.h... yes
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking values.h usability... yes
    checking values.h presence... yes
    checking for values.h... yes
    checking ieeefp.h usability... no
    checking ieeefp.h presence... no
    checking for ieeefp.h... no
    checking fftw3.h usability... no
    checking fftw3.h presence... no
    checking for fftw3.h... no
    checking for fftw_plan_dft_1d in -lfftw3... no
    checking for erfc... yes
    checking for logb... yes
    checking for scalb... yes
    checking for scalbn... yes
    checking for asinh... yes
    checking for acosh... yes
    checking for atanh... yes
    checking for finite... yes
    checking whether isinf is declared... yes
    checking whether isnan is declared... yes
    checking for sigsetjmp... yes
    checking for snprintf... yes
    checking for dirname... yes
    checking getopt.h usability... yes
    checking getopt.h presence... yes
    checking for getopt.h... yes
    checking for getopt_long... yes
    Settings which were chosen:
    checking for bison... no
    checking for byacc... no
    checking for bison... no
    configure: WARNING: could not find bison
    ../configure: line 18042: ,: command not found
    configure: WARNING: Bison is older than 2.7
    checking for flex... no
    checking for lex... no
    Checking for readline:
    checking readline/readline.h usability... yes
    checking readline/readline.h presence... yes
    checking for readline/readline.h... yes
    checking readline/history.h usability... yes
    checking readline/history.h presence... yes
    checking for readline/history.h... yes
    checking for library containing tputs... -lncurses
    checking for readline in -lreadline... yes
    BSD editline disabled.
    checking ncurses/termcap.h usability... no
    checking ncurses/termcap.h presence... no
    checking for ncurses/termcap.h... no
    checking termcap.h usability... yes
    checking termcap.h presence... yes
    checking for termcap.h... yes
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    

    Here is the ldd information for readline

    [modestpe@ggx-srv1 release]$ ldd /usr/local/lib/libreadline.so
        linux-vdso.so.1 =>  (0x00007fff4f9bf000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f4907baf000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f49081d1000)
    

    I couldn't take a look at the symbol information on "/libtinfo" since I don't see this.
    I guess my libreadline.so has linked to weird library when libreadline get compiled. How do I make sure libreadline linked into libtinfo? Thank you for your help again.

     
  • Kuk-Hwan Kim

    Kuk-Hwan Kim - 2018-01-10

    1) In regards to undefined symbo in libreadline.so
    It turns out that I need to recompile libreadline. During libreadline compilation, some of variables has to be linkedin to libreadline. But I couldn't figure out how to do so.

    2) I moved to ubuntu platform which doesn't have any issues with libreadline.so. However, I encountered with other problems with compiling adms executable. Here is the error messages during make. If you could provide any help, it would be very nice.

    mv -f .deps/libadmsVeriloga_la-verilogaLex.Tpo .deps/libadmsVeriloga_la-verilogaLex.Plo
    /bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2 -Wall -no-undefined  -o libadmsVeriloga.la -rpath /usr/local/lib libadmsVeriloga_la-verilogaYacc.lo libadmsVeriloga_la-verilogaLex.lo libadmsElement.la -lm 
    libtool: link: gcc -shared  -fPIC -DPIC  .libs/libadmsVeriloga_la-verilogaYacc.o .libs/libadmsVeriloga_la-verilogaLex.o   -Wl,-rpath -Wl,/home/modestpe/Workspace/adms-svn-ngspice-src/admsXml/.libs ./.libs/libadmsElement.so -lm  -g -O2   -Wl,-soname -Wl,libadmsVeriloga.so.0 -o .libs/libadmsVeriloga.so.0.0.0
    libtool: link: (cd ".libs" && rm -f "libadmsVeriloga.so.0" && ln -s "libadmsVeriloga.so.0.0.0" "libadmsVeriloga.so.0")
    libtool: link: (cd ".libs" && rm -f "libadmsVeriloga.so" && ln -s "libadmsVeriloga.so.0.0.0" "libadmsVeriloga.so")
    libtool: link: ar cru .libs/libadmsVeriloga.a  libadmsVeriloga_la-verilogaYacc.o libadmsVeriloga_la-verilogaLex.o
    ar: `u' modifier ignored since `D' is the default (see `U')
    libtool: link: ranlib .libs/libadmsVeriloga.a
    libtool: link: ( cd ".libs" && rm -f "libadmsVeriloga.la" && ln -s "../libadmsVeriloga.la" "libadmsVeriloga.la" )
    /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DinsideadmstpathYacc   -g -O2 -Wall -MT libadmsAdmstpath_la-admstpathYacc.lo -MD -MP -MF .deps/libadmsAdmstpath_la-admstpathYacc.Tpo -c -o libadmsAdmstpath_la-admstpathYacc.lo `test -f 'admstpathYacc.c' || echo './'`admstpathYacc.c
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DinsideadmstpathYacc -g -O2 -Wall -MT libadmsAdmstpath_la-admstpathYacc.lo -MD -MP -MF .deps/libadmsAdmstpath_la-admstpathYacc.Tpo -c admstpathYacc.c  -fPIC -DPIC -o .libs/libadmsAdmstpath_la-admstpathYacc.o
    y.tab.c: In function ‘admstpathparse’:
    admstpathYacc.c:64:25: error: too few arguments to function ‘admstpathlex’
     #define yylex           admstpathlex
                             ^
    y.tab.c:14985:16: note: in expansion of macro ‘yylex’
    admstpathYacc.y:8:12: note: declared here
     static int admstpathlex (p_pparse mypparse);
                ^
    admstpathYacc.y:13693:43: error: ‘mypparse’ undeclared (first use in this function)
        p_text mytext=adms_text_new(((p_pparse)mypparse)->_transform,"");
                                               ^
    admstpathYacc.y:13693:43: note: each undeclared identifier is reported only once for each function it appears in
    admstpathYacc.y: In function ‘pparse’:
    admstpathYacc.y:14675:5: error: too many arguments to function ‘admstpathparse’
         admstpathparse (mypparse);
         ^
    admstpathYacc.c:63:25: note: declared here
     #define yyparse         admstpathparse
                             ^
    y.tab.c:14829:1: note: in expansion of macro ‘yyparse’
    admstpathYacc.y: In function ‘tparse’:
    admstpathYacc.y:14708:5: error: too many arguments to function ‘admstpathparse’
         admstpathparse (mypparse);
         ^
    admstpathYacc.c:63:25: note: declared here
     #define yyparse         admstpathparse
                             ^
    y.tab.c:14829:1: note: in expansion of macro ‘yyparse’
    admstpathYacc.y: In function ‘apath_main’:
    admstpathYacc.y:14747:5: error: too many arguments to function ‘admstpathparse’
         admstpathparse (mypparse);
         ^
    admstpathYacc.c:63:25: note: declared here
     #define yyparse         admstpathparse
                             ^
    y.tab.c:14829:1: note: in expansion of macro ‘yyparse’
    Makefile:609: recipe for target 'libadmsAdmstpath_la-admstpathYacc.lo' failed
    make[2]: *** [libadmsAdmstpath_la-admstpathYacc.lo] Error 1
    make[2]: Leaving directory '/home/modestpe/Workspace/adms-svn-ngspice-src/admsXml'
    Makefile:420: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory '/home/modestpe/Workspace/adms-svn-ngspice-src'
    Makefile:352: recipe for target 'all' failed
    make: *** [all] Error 2
    
     
  • Robert Larice

    Robert Larice - 2018-01-11

    Hello,
    regarding adms, did you use the proper version of adms ?
    try this, not the sourceforge one, neither some tar.gz, use the git Qucs adms repo:

    git clone https://github.com/Qucs/ADMS.git
    cd ADMS
    ./bootstrap.sh
    ./configure
    ./make
    export ADMSXML=$(pwd)/admsXml/admsXml
    

    then I usually don't install the adms executable, instead I use them
    right from the place where I build them, I do:

      with the ADMSXML environment variable from above
      cd where your ngspice is
       ./autogen.sh --adms
       cd where you going to build ngspice
       ../relative-path-to/configure --enable-adms ...
       make -j6
    
     
  • Kuk-Hwan Kim

    Kuk-Hwan Kim - 2018-01-11

    Hello Robert,

    Thank you so much Robert, I was able to install admsXml and ngspice based on your guideline. So far so good. I am going to develop new transistor model (a-ZnOx based thin-film transistor) and new memory model (pMTJ, perpendicular MagnetoTunnelResistance) on ngspice + admsXml. Thanks.

     
  • Robert Larice

    Robert Larice - 2018-01-11

    Fine if it does work now.

    Be prepared to rough edges with adms, try to start with very simple .va,
    and only slowly and incrementally make it more complex. The translation mechanism is quite
    incomplete. Have a look too at the few ngspice internal .va models to get an idea what works
    and what doesn't.

    Regards,

     
  • Holger Vogt

    Holger Vogt - 2018-09-03
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB