[MacPorts] #35342: Submission: sundials

MacPorts noreply at macports.org
Tue Oct 8 08:57:30 PDT 2013


#35342: Submission: sundials
--------------------------+--------------------------------
  Reporter:  jjstickel@…  |      Owner:  macports-tickets@…
      Type:  submission   |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  sundials     |
--------------------------+--------------------------------

Comment (by jjstickel@…):

 Replying to [comment:26 sean@…]:
 > Replying to [comment:25 jjstickel@…]:
 > > Not sure what you mean here -- is this in reference to using cmake for
 building?
 > Yep. You can see my version of the portfile
 [https://bitbucket.org/seanfarley/scienceports/src/2832e9d9716e178f20b5ab0eb563f40d7fcce730/math/sundials/Portfile?at=default
 here].
 >

 I had a little time to try out your cmake-based portfile (I also added
 your "compilers" and "mpi" portgroups to my local tree). It works OK if
 all you want are the C libraries. However, I can't get the Fortran
 libraries to compile. I modified your portfile (see attached). When using
 the +gcc47 variant (turns on FCMIX), I get:

 {{{
 cd
 /opt/local/var/macports/build/_Users_Shared_install_macports_ports_math_sundials/sundials/work/sundials-2.5.0/build/src/nvec_ser
 && /opt/local/bin/cmake -E cmake_link_script
 CMakeFiles/sundials_fnvecserial_static.dir/link.txt --verbose=1
 /opt/local/bin/ar cr libsundials_fnvecserial.a
 CMakeFiles/sundials_fnvecserial_static.dir/fnvector_serial.o
 Undefined symbols for architecture x86_64:
   "_N_VCloneVectorArrayEmpty_Serial", referenced from:
       _fnvinits_s_ in fnvector_serial.o
   "_N_VNewEmpty_Serial", referenced from:
       _fnvinits_ in fnvector_serial.o
       _fnvinits_q_ in fnvector_serial.o
       _fnvinits_b_ in fnvector_serial.o
       _fnvinits_qb_ in fnvector_serial.o
 ld: symbol(s) not found for architecture x86_64
 collect2: error: ld returned 1 exit status
 make[2]: *** [src/nvec_ser/libsundials_fnvecserial.0.0.2.dylib] Error 1
 }}}

 I don't get these errors and have functional Fortran Sundials libraries if
 I build via autotools.

-- 
Ticket URL: <https://trac.macports.org/ticket/35342#comment:27>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list