Opened 11 years ago

Closed 11 years ago

#2315 closed defect (fixed)

Cannot find dgesv on OSX 10.6

Reported by: fran_Jo Owned by: adeas31
Priority: high Milestone: 1.9.0
Component: OMEdit Version: trunk
Keywords: Cc:

Description (last modified by sjoelund.se)

I have installed OpenModelica via MacPorts using the instructions in the web, and installing openmodelica-release. I use OMEdit under MacOSX 10.6.8.
The model is a simple RL Circuit.

Translation    13:40:22        0:0-0:0    Error building simulator. Build log: /usr/bin/gcc-4.2   -falign-functions -msse2 -mfpmath=sse   -I"/opt/local/include/omc" -I. -L"/Users/Cesc/Proyectos/Modelica"  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o RLCircuit.o RLCircuit.c 
/usr/bin/gcc-4.2   -falign-functions -msse2 -mfpmath=sse   -I"/opt/local/include/omc" -I. -L"/Users/Cesc/Proyectos/Modelica"  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME  -c -o RLCircuit_records.o RLCircuit_records.c 
/usr/bin/g++-4.2 -I. -o RLCircuit RLCircuit.o RLCircuit_records.o -I"/opt/local/include/omc" -I. -L"/Users/Cesc/Proyectos/Modelica"  -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -L"/Users/Cesc/Proyectos/Modelica"     -falign-functions -msse2 -mfpmath=sse   -L"/opt/local/lib/omc" -Wl,-rpath,'/opt/local/lib/omc' -lSimulationRuntimeC   -ldl -linteractive  -lexpat -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64  -lintl  -liconv -lgc  -llapack  -lpthread -lf2c 
Undefined symbols: 
  "_dgesv_", referenced from: 
      _solveLapack in libSimulationRuntimeC.a(libSimulationRuntimeC.a.o) 
      _solveNewton in libSimulationRuntimeC.a(libSimulationRuntimeC.a.o) 
ld: symbol(s) not found 
collect2: ld returned 1 exit status 
make: *** [omc_main_target] Error 1 

Attachments (1)

RLCircuit.mo (1.5 KB) - added by fran_jo 11 years ago.
RL Circuit

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by fran_jo

RL Circuit

comment:1 Changed 11 years ago by sjoelund.se

  • Description modified (diff)
  • Owner changed from fran_jo to adeas31
  • Status changed from new to assigned

comment:2 Changed 11 years ago by sjoelund.se

I have these symbols in OSX 10.8:

$ nm /usr/lib/liblapack.dylib  | grep _dgesv_
00000000000010c8 T $ld$hide$os10.4$_dgesv_
00000000000010c8 T $ld$hide$os10.5$_dgesv_
00000000000010c8 T $ld$hide$os10.6$_dgesv_
000000000022ea2e T _dgesv_
$ nm /usr/lib/libblas.dylib  | grep _dgesv_
0000000000010c05 T $ld$hide$os10.7$_dgesv_
0000000000010c05 T $ld$hide$os10.8$_dgesv_
0000000000003ec2 T _dgesv_

Adeel: Can you test if linking also -lblas makes OSX 10.6 work? Which OSX versions did you have on the laptop and on the VM?

Last edited 11 years ago by sjoelund.se (previous) (diff)

comment:3 Changed 11 years ago by sjoelund.se

  • Summary changed from Error building simulation to Cannot find dgesv on OSX 10.6

comment:4 Changed 11 years ago by sjoelund.se

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in r16864.

Note: See TracTickets for help on using tickets.