Hi Ivan

Ivan Pulido wrote:
> As far as I can see it's using -fPIC as build options, here's the
> command it's using
>
> gfortran -o solvers/lsode/liblsode_ascend.so -fPIC -shared
> solvers/lsode/lsode.os solvers/lsode/asc_lsode.os
> solvers/lsode/linpack/d1mach.os solvers/lsode/linpack/dgbfa.os
> solvers/lsode/linpack/dgbsl.os solvers/lsode/linpack/dgefa.os
> solvers/lsode/linpack/dgesl.os -L. -lblas -lgfortran -lascend
>
> and here is the other one for lsode.f
>
> gfortran -o solvers/lsode/lsode.os -c -w solvers/lsode/lsode.f
>
> So, no idea whats wrong here, heh. Ideas appreciated and excuse me, if
> I "bother" too much please let me know. Thanks.

Can you please try what happens if you type (added '-shared -fPIC'):

gfortran -shared -fPIC -o solvers/lsode/lsode.os -c -w solvers/lsode/lsode.f

followed by (the same as you pasted):

gfortran -o solvers/lsode/liblsode_ascend.so -fPIC -shared
solvers/lsode/lsode.os solvers/lsode/asc_lsode.os
solvers/lsode/linpack/d1mach.os solvers/lsode/linpack/dgbfa.os
solvers/lsode/linpack/dgbsl.os solvers/lsode/linpack/dgefa.os
solvers/lsode/linpack/dgesl.os -L. -lblas -lgfortran -lascend

Actually, try the first line with just '-fPIC' added, too.

Also, please try installing BLAS (libblas-devel or whatever) on your
system, so that SCons doesn't have to build its own local copy. You
should then have /usr/lib/libblas.a and also /usr/lib/libblas.so.

And let me know if it works or doesn't work.

Cheers
JP

------------------------------------------------------------------------------
_______________________________________________
Ascend-sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ascend-sim-users

Reply via email to