[MacPorts] #20071: atlas libraries improperly linked; prevents shogun installation

MacPorts noreply at macports.org
Sun Jun 28 16:01:56 PDT 2009


#20071: atlas libraries improperly linked; prevents shogun installation
-------------------------------------+--------------------------------------
 Reporter:  ryandesign@…             |       Owner:  ajb78@…          
     Type:  defect                   |      Status:  new              
 Priority:  Normal                   |   Milestone:                   
Component:  ports                    |     Version:  1.7.1            
 Keywords:                           |        Port:  atlas, shogun    
-------------------------------------+--------------------------------------

Comment(by jameskyle@…):

 The atlas lib build scripts don't built dylib's. This is a step that the
 user on osx must take themselves and do manually. There's an errata on the
 topic that was used in the Portfile. However, the errata did not set the
 -install_name for when creating the dylib's and so my portfile also
 neglected this step. Toby pointed this out to me and I'm currently testing
 the revised build:

 {{{
   set ld "ld -dynamic -arch i386 -dylib -single_module -dead_strip -x \
           -all_load -L. -L${prefix}/lib/gcc43 -ldylib1.o
 -dylib_install_name"

   system "cd ${workpath}/${name}-${version}/build/lib && \
           ${ld} libatlas.dylib libatlas.a -o libatlas.dylib -lSystem \
           -install_name ${prefix}/lib/libatlas.dylib"

   system "cd ${workpath}/${name}-${version}/build/lib && \
           ${ld} libptcblas.dylib libptcblas.a -o libptcblas.dylib -latlas
 \
            -lSystem -install_name ${prefix}/lib/libptcblas.dylib \
            -compatibility_version 1.0.0 -current_version 218.0.0"

   system "cd ${workpath}/${name}-${version}/build/lib && \
           ${ld} libptf77blas.dylib libptf77blas.a -o libptf77blas.dylib \
            -lgfortran -latlas -lSystem \
            -install_name ${prefix}/lib/libptf77blas.dylib \
            -compatibility_version 1.0.0 -current_version 218.0.0"

   system "cd ${workpath}/${name}-${version}/build/lib && \
           ${ld} liblapack.dylib liblapack.a -o liblapack.dylib -lptf77blas
 \
           -lgfortran -lptcblas -latlas -lgcc_s.1 -lSystem \
           -install_name ${prefix}/lib/liblapack.dylib \
           -compatibility_version 1.0.0 -current_version 218.0.0"
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/20071#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list