Hi again,
after looking into more details, I notice that the builder is trying to include
some files which
are not in the c gateway folder:
tbx_build_gateway("skeleton_c", ..
["c_sum","sci_csum", "csci"; ...
"c_sub","sci_csub", "csci"; ...
"c_multiplybypi","sci_multiplybypi", "csci"; ...
"foo","sci_foo", "csci"; ...
"c_error","sci_cerror", "csci";
"c_sum6","sci_csum6", "csci6"; ...
"c_sub6","sci_csub6", "csci6"; ...
"c_multiplybypi6","sci_multiplybypi6", "csci6"; ...
"foo6","sci_foo6", "csci6"; ...
"c_error6","sci_cerror6", "csci6"], ..
["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci_foo.c","sci_cerror.c", ...
"sci_csum6.c","sci_csub6.c","sci_multiplybypi6.c","sci_foo6.c","sci_cerror6.c"],
..
get_absolute_file_path("builder_gateway_c.sce"), ..
["../../src/c/libcsum"], ..
"", ..
includes_src_c);
After removing those files the compilation of the C gateway is successful.
tbx_build_gateway("skeleton_c", ..
["c_sum","sci_csum", "csci"; ...
"c_sub","sci_csub", "csci"; ...
"c_multiplybypi","sci_multiplybypi", "csci"; ...
"foo","sci_foo", "csci"; ...
"c_error","sci_cerror", "csci";], ..
["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci_foo.c","sci_cerror.c"], ..
get_absolute_file_path("builder_gateway_c.sce"), ..
["../../src/c/libcsum"], ..
"", ..
includes_src_c);
However, now it stopped at cpp gateway building, which point to some error in
the internal.hxx
Building gateway...
Generate a gateway file
Generate a loader file
Generate a Makefile
Running the makefile
Compilation of sci_cerror.c
Compilation of sci_csub.c
Compilation of sci_csum.c
Compilation of sci_foo.c
Compilation of sci_multiplybypi.c
Compilation of skeleton_c.cpp
Compilation of skeleton_c.h
Compilation of skeleton_c.hxx
Building shared library (be patient)
Generate a cleaner file
Generate a gateway file
Generate a loader file
Generate a Makefile
Running the makefile
Compilation of sci_fsum.c
Compilation of skeleton_fortran.cpp
Compilation of skeleton_fortran.h
Compilation of skeleton_fortran.hxx
Building shared library (be patient)
Generate a cleaner file
Generate a gateway file
Generate a loader file
Generate a Makefile
Running the makefile
Compilation of sci_cpp_find.cxx
Compilation of sci_cpperror.cpp
Compilation of sci_cppfoo.cpp
Compilation of sci_cppmultiplybypi.cpp
Compilation of sci_cppsub.cpp
Compilation of sci_cppsum.cpp
Compilation of skeleton_cpp.cpp
Compilation of skeleton_cpp.h
Compilation of skeleton_cpp.hxx
Building shared library (be patient)
!------------- Compile file sci_cpperror.cpp -----------
--- !
!
!
! IF NOT EXIST Release mkdir
Release !
!
!
!sci_cpperror.cpp
!
!
!
!D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(227) :
error C2143: syntax
erro!
!r : missing ',' before
'...' !
!
!
!D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) :
error C2061: syntax
erro!
!r : identifier
'A'
!
!
!
!D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(265) :
error C2780: 'T
*types::In!
!ternalType::checkRef(T *,F)' : expects 2 arguments - 4
provided !
!
!
!
d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) :
see
declaration !
!of
'types::InternalType::checkRef'
!
!
!
!D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(288) :
error C2780: 'T
*types::In!
!ternalType::checkRef(T *,F)' : expects 2 arguments - 3
provided !
!
!
!
d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) :
see
declaration !
!of
'types::InternalType::checkRef'
!
!
!
!D:\Scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\double.hxx(310) :
error C2780: 'T
*types::In!
!ternalType::checkRef(T *,F)' : expects 2 arguments - 3
provided !
!
!
!
d:\scilab\scilab-6.0.0-beta-32\modules\ast\includes\types\internal.hxx(228) :
see
declaration !
!of
'types::InternalType::checkRef'
!
!
!
!NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\BIN\cl.EXE"'
: ret!
!urn code
'0x2'
!
!
!
!Stop.
!
at line 36 of function dlwCompile (
D:\Scilab\scilab-6.0.0-beta-
32\modules\dynamic_link\macros\windows\dlwCompile.sci line 49 )
at line 70 of function ilib_compile (
D:\Scilab\scilab-6.0.0-beta-
32\modules\dynamic_link\macros\ilib_compile.sci line 86 )
at line 115 of function ilib_build (
D:\Scilab\scilab-6.0.0-beta-
32\modules\dynamic_link\macros\ilib_build.sci line 128 )
at line 134 of function tbx_build_gateway (
D:\Scilab\scilab-6.0.0-beta-
32\modules\modules_manager\macros\tbx_build_gateway.sci line 148 )
at line 17 of function builder_gw_cpp (
D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\sci_gateway\cpp\builder_gateway_cpp.sce line 19 )
at line 25 of executed file D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\sci_gateway\cpp\builder_gateway_cpp.sce
at line 13 of function tbx_builder (
D:\Scilab\scilab-6.0.0-beta-
32\modules\modules_manager\macros\tbx_builder.sci line 26 )
at line 49 of function tbx_builder_gateway_lang (
D:\Scilab\scilab-6.0.0-beta-
32\modules\modules_manager\macros\tbx_builder_gateway_lang.sci line 74 )
at line 6 of function builder_gateway (
D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce line 8 )
at line 1 of executed file D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce
at line 13 of function tbx_builder (
D:\Scilab\scilab-6.0.0-beta-
32\modules\modules_manager\macros\tbx_builder.sci line 26 )
at line 32 of function tbx_builder_gateway (
D:\Scilab\scilab-6.0.0-beta-
32\modules\modules_manager\macros\tbx_builder_gateway.sci line 48 )
at line 32 of function main_builder (
D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\builder.sce line 40 )
at line 48 of executed file
D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce
ilib_compile: Error while executing Makelib.mak.
Thanks again.
Regards,
Chin Luh
On 15/3/2016 10:23 AM, Tan Chin Luh wrote:
Hi Clement,
thanks for your prompt reply.
yes, it fixed the "nmake" error on the 64 -bit versions. After apply the fix,
both 32 and 64
bits now stop at the same error during "building gateway"
ilib_build: Wrong value for input argument #3: existing file(s) expected.
p/s: should I confirm it is a bug first before I post on bugzilla next time?
let me know the
best way to do this. thanks. :)
Thanks again.
Regards,
Chin Luh
On 14/3/2016 8:37 PM, Clément David wrote:
Hi Tan,
Thanks for the information ; this is already fixed [1] ;) do not hesitate to
post a bug on
bugzilla.scilab.org next time.
[1:]
http://gitweb.scilab.org/?p=scilab.git;a=commit;h=064a1839fb0a501e4ff05ca23b25c2cd618be1a
a
Regards,
--
Clément <davidcl> David
Le lundi 14 mars 2016 à 09:34 +0800, Tan Chin Luh a écrit :
Hi,
I was trying to convert some of the modules to version 6 but facing some issues.
Same machine tested with Scilab 5.5.2 32-bits and 64-bits and the compilation
are both
successful.
More Info on my machine :
1. Windows 10 Pro 64 bits
2. Scilab 6 Beta 1 32 bits
3. Compiler checking :
--> haveacompiler
ans =
T
--> findmsvccompiler
ans =
msvc110express
Similar errors could be reproduce by compiling the toolbox_skeleton comes
with the Scilab
installation:
******Error while executing builder.sce under Scilab 6 beta 1 32 bits
version***********************
-->
exec('D:\Scilab\scilab-6.0.0-beta-32\contrib\toolbox_skeleton\builder.sce',-1)
Building macros...
-- Creation of [toolbox_skeletonlib] (Macros) --
Building sources...
Generate a loader file
Generate a Makefile
Running the Makefile
Compilation of fsum.f
Building shared library (be patient)
Generate a cleaner file
Generate a loader file
Generate a Makefile
Running the Makefile
Compilation of csum.c
Compilation of csub.c
Compilation of multiplybypi.c
Building shared library (be patient)
Generate a cleaner file
Building JAR library org.scilab.contrib.toolboxskeleton.jar
Compiling Java sources in D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\src\java\
Creating JAR archive D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\jar\org.scilab.contrib.toolboxskeleton.jar
Create loader script for Java loader.sce
Create cleaner script for Java cleaner.sce
Building gateway...
at line 55 of function ilib_build (
D:\Scilab\scilab-6.0.0-beta-
32\modules\dynamic_link\macros\ilib_build.sci line 68 )
at line 134 of function tbx_build_gateway (
D:\Scilab\scilab-6.0.0-beta-
32\modules\modules_manager\macros\tbx_build_gateway.sci line 148 )
at line 10 of function builder_gw_c (
D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce line 12 )
at line 19 of executed file D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\sci_gateway\c\builder_gateway_c.sce
at line 13 of function tbx_builder (
D:\Scilab\scilab-6.0.0-beta-
32\modules\modules_manager\macros\tbx_builder.sci line 26 )
at line 49 of function tbx_builder_gateway_lang (
D:\Scilab\scilab-6.0.0-beta-
32\modules\modules_manager\macros\tbx_builder_gateway_lang.sci line 74 )
at line 6 of function builder_gateway (
D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce line 8 )
at line 1 of executed file D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\sci_gateway\builder_gateway.sce
at line 13 of function tbx_builder (
D:\Scilab\scilab-6.0.0-beta-
32\modules\modules_manager\macros\tbx_builder.sci line 26 )
at line 32 of function tbx_builder_gateway (
D:\Scilab\scilab-6.0.0-beta-
32\modules\modules_manager\macros\tbx_builder_gateway.sci line 48 )
at line 32 of function main_builder (
D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\builder.sce line 40 )
at line 48 of executed file D:\Scilab\scilab-6.0.0-beta-
32\contrib\toolbox_skeleton\builder.sce
ilib_build: Wrong value for input argument #3: existing file(s) expected.
***********************
******Error while executing builder.sce under Scilab 6 beta 1 64 bits
version***********************
-->
exec('D:\Scilab\scilab-6.0.0-beta-64\contrib\toolbox_skeleton\builder.sce',-1)
Building macros...
-- Creation of [toolbox_skeletonlib] (Macros) --
Building sources...
Generate a loader file
Generate a Makefile
Running the Makefile
Compilation of fsum.f
Building shared library (be patient)
!'nmake' is not recognized as an internal or external command, !
! !
!operable program or batch file. !
at line 36 of function dlwCompile ( D:\Scilab\scilab-6.0.0-beta-
64\modules\dynamic_link\macros\windows\dlwCompile.sci line 49 )
at line 70 of function ilib_compile ( D:\Scilab\scilab-6.0.0-beta-
64\modules\dynamic_link\macros\ilib_compile.sci line 86 )
at line 104 of function ilib_for_link ( D:\Scilab\scilab-6.0.0-beta-
64\modules\dynamic_link\macros\ilib_for_link.sci line 118 )
at line 29 of function tbx_build_src ( D:\Scilab\scilab-6.0.0-beta-
64\modules\modules_manager\macros\tbx_build_src.sci line 44 )
at line 3 of function builder_fortran ( D:\Scilab\scilab-6.0.0-beta-
64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce line 5 )
at line -1 of executed file D:\Scilab\scilab-6.0.0-beta-
64\contrib\toolbox_skeleton\src\fortran\builder_fortran.sce
at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta-
64\modules\modules_manager\macros\tbx_builder.sci line 26 )
at line 49 of function tbx_builder_src_lang ( D:\Scilab\scilab-6.0.0-beta-
64\modules\modules_manager\macros\tbx_builder_src_lang.sci line 64 )
at line 4 of function builder_src ( D:\Scilab\scilab-6.0.0-beta-
64\contrib\toolbox_skeleton\src\builder_src.sce line 6 )
at line -4 of executed file D:\Scilab\scilab-6.0.0-beta-
64\contrib\toolbox_skeleton\src\builder_src.sce
at line 13 of function tbx_builder ( D:\Scilab\scilab-6.0.0-beta-
64\modules\modules_manager\macros\tbx_builder.sci line 26 )
at line 32 of function tbx_builder_src ( D:\Scilab\scilab-6.0.0-beta-
64\modules\modules_manager\macros\tbx_builder_src.sci line 48 )
at line 31 of function main_builder ( D:\Scilab\scilab-6.0.0-beta-
64\contrib\toolbox_skeleton\builder.sce line 39 )
at line 48 of executed file D:\Scilab\scilab-6.0.0-beta-
64\contrib\toolbox_skeleton\builder.sce
ilib_compile: Error while executing Makelib.mak.
***********************
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users