error: cannot find the library

Post Reply
manyi
Posts: 12
Joined: Mon Apr 02, 2012 6:48 am

error: cannot find the library

Post by manyi »

I'm trying to install NEURON on my MacBook OS X 10.10.3, following the instruction on http://www.neuron.yale.edu/neuron/downl ... ilestd_osx

"Make" fails at step II C. Any help?

Code: Select all

$ make
Making all in src
Making all in lib
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I/usr/X11/include -g -O2 -c Unidraw/dialogs.cpp  -fno-common -DPIC -o Unidraw/.libs/dialogs.o
Unidraw/dialogs.cpp: In member function ‘virtual void ivPrintBS::_ZTv0_n24_N9ivPrintBSD1Ev()’:
Unidraw/dialogs.cpp:553:1: error: unrecognizable insn:
 }
 ^
(call_insn/j 4 3 5 (call (mem/u/c:DI (const:DI (unspec:DI [
                        (symbol_ref/i:DI ("_ZN9ivPrintBSD1Ev") [flags 0x1] <function_decl 0x10356aaf8 __comp_dtor >)
                    ] UNSPEC_GOTPCREL)) [0  S8 A8])
        (const_int 0 [0])) Unidraw/dialogs.cpp:317 -1
     (nil)
    (nil))
Unidraw/dialogs.cpp:553:1: internal compiler error: in insn_min_length, at config/i386/i386.md:1894

Unidraw/dialogs.cpp:553:1: internal compiler error: Abort trap: 6
g++: internal compiler error: Abort trap: 6 (program cc1plus)
../../libtool: line 1760: 91173 Abort trap: 6           g++ -DHAVE_CONFIG_H -I. -I. -I../include -I/usr/X11/include -g -O2 -c Unidraw/dialogs.cpp -fno-common -DPIC -o Unidraw/.libs/dialogs.o
make[2]: *** [Unidraw/dialogs.lo] Error 1
Making all in include
make[2]: Nothing to be done for `all'.
Making all in bin
Making all in iclass
/bin/sh ../../../libtool --mode=link g++ -g -O2  -o iclass classbuffer.o classeditor.o classinfo.o dialogs.o direct.o globals.o iclass.o main.o ../../lib/libIVhines.la ../../lib/libUnidrawhines.la -L/usr/X11/lib -lX11 -lXext 
libtool:   error: cannot find the library '../../lib/libUnidrawhines.la' or unhandled argument '../../lib/libUnidrawhines.la'
make[3]: *** [iclass] Error 1
Making all in idemo
/bin/sh ../../../libtool --mode=link g++ -g -O2   -o idemo main.o ../../lib/libUnidrawhines.la ../../lib/libIVhines.la -L/usr/X11/lib -lX11 -lXext  
libtool:   error: cannot find the library '../../lib/libUnidrawhines.la' or unhandled argument '../../lib/libUnidrawhines.la'
make[3]: *** [idemo] Error 1
Making all in idraw
/bin/sh ../../../libtool --mode=link g++ -g -O2  -o idraw idarrow.o idarrowhead.o idarrows.o idcatalog.o idcmds.o idcomp.o idcreator.o iddialogs.o ided.o idkybd.o idvars.o main.o ../../lib/libUnidrawhines.la ../../lib/libIVhines.la -L/usr/X11/lib -lX11 -lXext  
libtool:   error: cannot find the library '../../lib/libUnidrawhines.la' or unhandled argument '../../lib/libUnidrawhines.la'
make[3]: *** [idraw] Error 1
hines
Site Admin
Posts: 1682
Joined: Wed May 18, 2005 3:32 pm

Re: error: cannot find the library

Post by hines »

Compiler errors tend to be fixed on the next update of the compiler. I had no problem with Yosimite 10.10.1 and just updated to Yosimite 10.10.3 and
xcode 6.3.2 which shows for gcc -v
LLVM 6.1.0
and I cannot reproduce the compiler error with this latest update.
This problem can be worked around even with the compiler error since Unidraw is only needed to build idraw and is not needed for the NEURON build.
Post Reply