Comments (4)
Hi Luc,
interesting. The reason I tried so hard to locate the statically linked
gfortran library was that I tried to include all dependencies in the jblas
shared lib. Otherwise, people would have to make sure the gfortran runtimes
are installed which might not always be the case.
It seems that libgfortran now has further dependencies which are not
included.. :(
Can you tell me which version of gfortran/gcc you're using?
-M
On Thu, Jun 6, 2013 at 12:59 PM, Luc J. Bourhis [email protected]:
Hi,
using master as of ab621e9ab621e9c7b2(Quick fix to set SMLSIZ=25 to get around Mac OS X bug.), the build fails:
~jblas (master)> ./configure --lapack=../lapack-3.4.2 --libpath=$HOME/atlas/lib --static-libs
....
looking for libraries...... {"lapack"=>"/Users/luc/atlas/lib", "f77blas"=>"/Users/luc/atlas/lib", "cblas"=>"/Users/luc/atlas/lib", "atlas"=>"/Users/luc/atlas/lib"}
x86_64
Looking for where libgfortran.a is... (/opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.3/../../../libgfortran.a)
okConfiguration succesfull, writing out results to configure.out
~jblas (master)> make
gcc -shared -o target/c/NativeBlas.jnilib target/c/NativeBlas.o /Users/luc/atlas/lib/liblapack.a /Users/luc/atlas/lib/libf77blas.a /Users/luc/atlas/lib/libcblas.a /Users/luc/atlas/lib/libatlas.a /opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.3/../../../libgfortran.a
Undefined symbols for architecture x86_64:
"_quadmath_snprintf", referenced from:
_write_float in libgfortran.a(write.o)
"_strtoflt128", referenced from:
__gfortrani_convert_real in libgfortran.a(read.o)
__gfortrani_convert_infnan in libgfortran.a(read.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [target/c/NativeBlas.jnilib] Error 1Now if I apply the following patch:
diff --git a/config/config_libs.rb b/config/config_libs.rb
index 2055a49..19b9fca 100644
--- a/config/config_libs.rb
+++ b/config/config_libs.rb
@@ -157,10 +157,7 @@ because it's usually not compiled with -fPIC. This means that you need to
have libgfortran.so installed on your target system. Sorry for the inconvenience!
EOS
elsif CONFIG['OS_NAME'] == 'Mac\ OS\ X'
print "Looking for where libgfortran.a is... "
libgfortran_path = %x(gfortran -print-file-name=libgfortran.a).strip
puts "(#{libgfortran_path})"
CONFIG['LOADLIBES'] += [libgfortran_path]
elseCONFIG['LOADLIBES'] += ['-lgfortran']
CONFIG['LOADLIBES'] += ['-l:libgfortran.a']
endIt all works and the sanity check passes with flying colours. What was the
reason for not using -lgfortran on MacOS X?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/31
.
Mikio Braun - http://blog.mikiobraun.de, http://twitter.com/mikiobraun
from jblas.
I installed the MacPorts package gcc4.7.
from jblas.
I see, I have gcc 4.2...
On Thu, Jun 6, 2013 at 3:20 PM, Luc J. Bourhis [email protected]:
I installed the MacPorts package gcc4.7.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-19044350
.
Mikio Braun - http://blog.mikiobraun.de, http://twitter.com/mikiobraun
from jblas.
Time to make it work under MacOS again... .
from jblas.
Related Issues (20)
- GPU-support for JBLAS
- Compiling 64 bit windows is now possible using cygwin? HOT 2
- Name of automatic module 'jblas' is unstable, it is derived from the module's file name. HOT 3
- Why jblas in different platform has huge different performance HOT 4
- Add xGETRF/xGETRS HOT 1
- Update dependency on libgfortran3 HOT 12
- LAPACK 3.3.0 Bug: "XERBLA: Error on argument -1 for *unknown function* DLASD8 (how odd!)" HOT 4
- Move every platform to openblas
- Get FORTRAN function signatures from files, not lapack-lite
- JAR download for JBLAS 1.2.5 HOT 8
- Logical error of function nei HOT 2
- Implement four-quadrant inverse tangent HOT 1
- I did some benchmark somehow the matrix mul performs consistently slower than java ojalgo. HOT 7
- [FreeBSD] `mmul` and Execution error (UnsatisfiedLinkError) at org.jblas.NativeBlas/dgemm HOT 24
- Must use GetPrimitiveArrayCritical instead of Get<type>ArrayElements for better performance HOT 1
- Add rmmuli
- Cannot compile with latest version of LAPACK (3.10) on Windows 10 HOT 1
- JDK crash multithreading HOT 1
- Can't Compile With Latest Version 3.10.0 On Mac Monterey With M1 HOT 3
- mat-mul error on an M3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jblas.