[Scilab-users] ilib_for_link Mac OS X 10.8

Cássio Pazinatto illusionteam at gmail.com
Sat Sep 1 04:18:51 CEST 2012


Sylvestre,

Using ilib_verbose(2), the output was the same…
In my TMPDIR folder there was only an unix.err file with the following:

libtool: unrecognized option '-c'
Try 'libtool --help'  for more information.
make: *** [matriz1.lo] Error 1

The output from ilib_for_link:

-->ilib_verbose(2)
 
-->ilib_for_link('matriz1','matriz1.f90',[],"f")
   Gerar um arquivo de carga
 
!// This file is released under the 3-clause BSD license. See COPYING-BSD.  !
!                                                                           !
!// Generated by builder.sce : Please, do not edit this file                !
!                                                                           !
!// ------------------------------------------------------------------------!
!     ----                                                                  !
!                                                                           !
!//                                                                         !
!                                                                           !
!matriz1_path = get_absolute_file_path('loader.sce');                       !
!                                                                           !
!//                                                                         !
!                                                                           !
!// ulink previous function with same name                                  !
!                                                                           !
![bOK, ilib] = c_link('matriz1');                                           !
!                                                                           !
!if bOK then                                                                !
!                                                                           !
!  ulink(ilib);                                                             !
!                                                                           !
!end                                                                        !
!                                                                           !
!//                                                                         !
!                                                                           !
!link(matriz1_path + 'libmatriz1' + getdynlibext(), ['matriz1'],'f');       !
!                                                                           !
!// remove temp. variables on stack                                         !
!                                                                           !
!clear matriz1_path;                                                        !
!                                                                           !
!clear bOK;                                                                 !
!                                                                           !
!clear ilib;                                                                !
!                                                                           !
!// ------------------------------------------------------------------------!
!     ----                                                                  !
   Gerar um Makefile
   ilib_gen_Make: Copia os arquivos de compilação (Makefile*, libtool...) para TMPDIR
   ilib_gen_Make: Copia matriz1.f90 para TMPDIR
   ilib_gen_Make: Usar a detecção anterior do compilador.
   ilib_gen_Make: Modificação do Makefile em TMPDIR.
   ilib_gen_Make: substituir a referência pelo arquivo atual.
   Comando: /Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/modules/dynamic_link/src/scripts/scicompile.sh matriz1  matriz1.f90
saída de erro padrão: 
   Executando o Makefile
ilib_compile: construir comando: make  CFLAGS=" -D__SCILAB_TOOLBOX__ -I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ " CXXFLAGS=" -D__SCILAB_TOOLBOX__ -I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ " FFLAGS="-I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ "
Saída: 
saída de erro padrão: libtool: unrecognized option `-c'
saída de erro padrão: Try `libtool --help' for more information.
saída de erro padrão: make: *** [matriz1.lo] Error 1
 !--error 10000 
ilib_compile: Ocorreu um erro durante a compilação:
libtool: unrecognized option `-c'
Try `libtool --help' for more information.
make: *** [matriz1.lo] Error 1
ilib_compile: O comando foi:
make  CFLAGS=" -D__SCILAB_TOOLBOX__ -I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ " CXXFLAGS=" -D__SCILAB_TOOLBOX__ -I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ " FFLAGS="-I/Applications/scilab-5.4.0-beta-3.app/Contents/MacOS/share/scilab/../../include/scilab/ "
at line     129 of function ilib_compile called by :  
at line      94 of function ilib_for_link called by :  
ilib_for_link('matriz1','matriz1.f90',[],"f")

Thanks,
Cássio

Em 31/08/2012, às 16:37, Sylvestre Ledru <sylvestre.ledru at scilab-enterprises.com> escreveu:

> On 31/08/2012 20:29, Cássio Pazinatto wrote:
>> 
>> Hello,
>> 
>> I'm using Scilab 5.40 beta 3 under Mac OS X 10.8 (Mountain Lion) and I'm getting an error when I try to use Dynamic Link to call Fortran Code (using gfortran compiler). Follow my test, note that it was OK on a computer running Linux and Scilab 5.33.
> [...]
>> ilib_compile: Ocorreu um erro durante a compilação:
>> libtool: unrecognized option `-c'
>> Try `libtool --help' for more information.
>> make: *** [matriz1.lo] Error 1
> [...]
>> Does anyone have an idea?
>> 
> Usually, this error message occurs when you don't have a fortran compiler (or i cannot be found).
> 
> Could you try with ilib_verbose(2) ?
> This portion of the code did not change much with regard to 5.3.3.
> 
> (and if it doesn't help, send us the config.log which will be generated in the TMPDIR directory)
> 
> Thanks
> Sylvestre
> 
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users




More information about the users mailing list