[Scilab-Dev] ilib_build with C++ and Fortran sources
Stéphane Mottelet
stephane.mottelet at utc.fr
Fri Sep 28 16:46:10 CEST 2018
Hello Clément,
I have two kinds of behavior between 6.0.1 and branch-6.0.
Under 6.0.1, I am not even able to build toolbox_skeleton, with the same
error message (problem when compiling fortran, again)
-- Création de [toolbox_skeletonlib] (Macros) --
genlib : Traitement du fichier : scilab_error.sci
genlib : Traitement du fichier : scilab_sum.sci
Création des sources...
(...)
ilib_compile : Une erreur s'est produite lors de la compilation
libtool: compile: unrecognized option
`-I/Applications/scilab-6.0.1.app/Contents/MacOS/share/scilab/../../include/scilab/'
libtool: compile: Try `libtool --help' for more information.
make: *** [fsum.lo] Error 1
ilib_compile : La commande était :make CFLAGS=" -D__SCILAB_TOOLBOX__
-I/Applications/scilab-6.0.1.app/Contents/MacOS/share/scilab/../../include/scilab/
-I/Applications/scilab-6.0.1.app/Contents/MacOS/share/scilab/../../include/
" CXXFLAGS=" -D__SCILAB_TOOLBOX__
-I/Applications/scilab-6.0.1.app/Contents/MacOS/share/scilab/../../include/scilab/
-I/Applications/scilab-6.0.1.app/Contents/MacOS/share/scilab/../../include/
"
FFLAGS="-I/Applications/scilab-6.0.1.app/Contents/MacOS/share/scilab/../../include/scilab/
"
Under branch-6.0, I can build toolbox_skeleton,
The first fortan files are rapidely processed, but when the first c or
c++ files have to be compiled, ilib_gen_make reruns the configure script
and it takes almost 5 minutes to complete !
-- Creation of [toolbox_skeletonlib] (Macros) --
Building sources...
Generate a loader file
Generate a Makefile
ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR
ilib_gen_Make: Copy fsum.f to TMPDIR
ilib_gen_Make: Modification of the Makefile in TMPDIR.
Running the Makefile
Generate a cleaner file
Generate a loader file
Generate a Makefile
ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR
ilib_gen_Make: Copy csum.c to TMPDIR
ilib_gen_Make: Copy csub.c to TMPDIR
ilib_gen_Make: Copy multiplybypi.c to TMPDIR
ilib_gen_Make: configure : Generate Makefile.
5 minutes stuck here.
Do you have an idea ?
S.
Le 27/09/2018 à 09:00, Clément DAVID a écrit :
> Hello Stephane,
>
> I strongly suggest you to keep fortran in a separate lib rather than passing all sources files (whatever the language) to be linked together. Passing all of them together imply that the compilers will handle similar command-line arguments which is not the case in your system. Could you send us the config.log file from the toolbox ?
>
> Thanks for your work on Metanet, do not hesitate to ask if you need support :p
>
> --
> Clément
>
> -----Original Message-----
> From: dev <dev-bounces at lists.scilab.org> On Behalf Of Stéphane Mottelet
> Sent: Wednesday, September 26, 2018 5:46 PM
> To: List dedicated to development questions <dev at lists.scilab.org>
> Subject: [Scilab-Dev] ilib_build with C++ and Fortran sources
>
> Hello,
>
> I am trying to build a c++ gateway to a fortran subtroutine, hence I have one .cpp and one .f file. I have tried this :
>
> files=["sci_mesh2d.cpp";"deumesh.f"]
> ilib_build("mesh2d", ["mesh2d" "sci_mesh2d" "cppsci"],files, [])
>
> but I got a completely weird error :
>
> libtool: compile: unrecognized option
> `-I/Users/mottelet/scilab/scilab-6.0.1/scilab-6.0.1.app/Contents/MacOS/share/scilab/../../include/scilab/'
> libtool: compile: Try `libtool --help' for more information.
> make: *** [deumesh.lo] Error 1
>
> I guess this is the fortran compiler which complains about the -I option (why ?). So I would like to know which compiler/linker flags I have to give to ilib_build.
>
> Note: I am able to build other gateways based on c++ sources only without problem.
>
> S.
>
> --
> Stéphane Mottelet
> Ingénieur de recherche
> EA 4297 Transformations Intégrées de la Matière Renouvelable Département Génie des Procédés Industriels Sorbonne Universités - Université de Technologie de Compiègne CS 60319, 60203 Compiègne cedex Tel : +33(0)344234688 https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.utc.fr/~mottelet
>
> _______________________________________________
> dev mailing list
> dev at lists.scilab.org
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/dev
> _______________________________________________
> dev mailing list
> dev at lists.scilab.org
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/dev
--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet
More information about the dev
mailing list