Quantcast

compilatioon errors

classic Classic list List threaded Threaded
3 messages Options
venky18 venky18
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

compilatioon errors

while running make i am getting the following error. ./config completes executing without any error


make[2]: Entering directory '/home/venky/dev/scilab_master/scilab/modules/io' /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../modules/core/includes -I./includes/ -I./src/c/ -I./src/cpp/ -I../../modules/ast/includes/ast/ -I../../modules/ast/includes/exps/ -I../../modules/ast/includes/operations/ -I../../modules/ast/includes/parse/ -I../../modules/ast/includes/symbol/ -I../../modules/ast/includes/system_env/ -I../../modules/ast/includes/types/ -I../../modules/ast/includes/analysis/ -I../../modules/core/includes/ -I../../modules/api_scilab/includes/ -I../../modules/functions_manager/includes/ -I../../modules/elementary_functions/includes/ -I../../modules/fileio/includes/ -I../../modules/string/includes/ -I../../modules/output_stream/includes/ -I../../modules/localization/includes/ -I../../modules/threads/includes/ -I../../modules/dynamic_link/includes -I../../modules/console/includes -I../../modules/hdf5/includes -I../../modules/tclsci/includes -I/usr/include/libxml2 -std=c++11 -DNDEBUG -g -O2 -MT src/cpp/libsciio_algo_la-loadlib.lo -MD -MP -MF src/cpp/.deps/libsciio_algo_la-loadlib.Tpo -c -o src/cpp/libsciio_algo_la-loadlib.lo `test -f 'src/cpp/loadlib.cpp' || echo './'`src/cpp/loadlib.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../modules/core/includes -I./includes/ -I./src/c/ -I./src/cpp/ -I../../modules/ast/includes/ast/ -I../../modules/ast/includes/exps/ -I../../modules/ast/includes/operations/ -I../../modules/ast/includes/parse/ -I../../modules/ast/includes/symbol/ -I../../modules/ast/includes/system_env/ -I../../modules/ast/includes/types/ -I../../modules/ast/includes/analysis/ -I../../modules/core/includes/ -I../../modules/api_scilab/includes/ -I../../modules/functions_manager/includes/ -I../../modules/elementary_functions/includes/ -I../../modules/fileio/includes/ -I../../modules/string/includes/ -I../../modules/output_stream/includes/ -I../../modules/localization/includes/ -I../../modules/threads/includes/ -I../../modules/dynamic_link/includes -I../../modules/console/includes -I../../modules/hdf5/includes -I../../modules/tclsci/includes -I/usr/include/libxml2 -std=c++11 -DNDEBUG -g -O2 -MT src/cpp/libsciio_algo_la-loadlib.lo -MD -MP -MF src/cpp/.deps/libsciio_algo_la-loadlib.Tpo -c src/cpp/loadlib.cpp -fPIC -DPIC -o src/cpp/.libs/libsciio_algo_la-loadlib.o src/cpp/loadlib.cpp: In function ‘types::Library* loadlib(const wstring&, int*, bool, bool)’: src/cpp/loadlib.cpp:41:77: error: invalid conversion from ‘int’ to ‘BOOL’ [-fpermissive] wchar_t* pwstXML = pathconvertW(_wstXML.data(), FALSE, FALSE, AUTO_STYLE); ^ In file included from src/cpp/loadlib.cpp:28:0: ../../modules/fileio/includes/pathconvert.h:31:24: note: initializing argument 2 of ‘wchar_t* pathconvertW(const wchar_t*, BOOL, BOOL, PathConvertType)’ FILEIO_IMPEXP wchar_t *pathconvertW(const wchar_t* wcpath, BOOL flagtrail, BOOL flagexpand, PathConvertType PType); ^ src/cpp/loadlib.cpp:41:77: error: invalid conversion from ‘int’ to ‘BOOL’ [-fpermissive] wchar_t* pwstXML = pathconvertW(_wstXML.data(), FALSE, FALSE, AUTO_STYLE); ^ In file included from src/cpp/loadlib.cpp:28:0: ../../modules/fileio/includes/pathconvert.h:31:24: note: initializing argument 3 of ‘wchar_t* pathconvertW(const wchar_t*, BOOL, BOOL, PathConvertType)’ FILEIO_IMPEXP wchar_t *pathconvertW(const wchar_t* wcpath, BOOL flagtrail, BOOL flagexpand, PathConvertType PType); ^ Makefile:1100: recipe for target 'src/cpp/libsciio_algo_la-loadlib.lo' failed make[2]: *** [src/cpp/libsciio_algo_la-loadlib.lo] Error 1 make[2]: Leaving directory '/home/venky/dev/scilab_master/scilab/modules/io' Makefile:838: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/venky/dev/scilab_master/scilab/modules' Makefile:1588: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1

can someone tell me how to resolve this error?

paul paul
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: compilatioon errors


Hello venky,

The command is:
 /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../modules/core/includes -I./includes/ -I./src/c/ -I./src/cpp/ -I../../modules/ast/includes/ast/ -I../../modules/ast/includes/exps/ -I../../modules/ast/includes/operations/ -I../../modules/ast/includes/parse/ -I../../modules/ast/includes/symbol/ -I../../modules/ast/includes/system_env/ -I../../modules/ast/includes/types/ -I../../modules/ast/includes/analysis/ -I../../modules/core/includes/ -I../../modules/api_scilab/includes/ -I../../modules/functions_manager/includes/ -I../../modules/elementary_functions/includes/ -I../../modules/fileio/includes/ -I../../modules/string/includes/ -I../../modules/output_stream/includes/ -I../../modules/localization/includes/ -I../../modules/threads/includes/ -I../../modules/dynamic_link/includes -I../../modules/console/includes -I../../modules/hdf5/includes -I../../modules/tclsci/includes -I/usr/include/libxml2 -std=c++11 -DNDEBUG -g -O2 -MT src/cpp/libsciio_algo_la-loadlib.lo -MD -MP -MF src/cpp/.deps/libsciio_algo_la-loadlib.Tpo -c -o src/cpp/libsciio_algo_la-loadlib.lo `test -f 'src/cpp/loadlib.cpp' || echo './'`src/cpp/loadlib.cpp

It works for me when I'm in scilab/modules/io/
What does "g++ -v" return in a terminal? It could be a compiler version error, as int to bool should not be a problem in C++.

Regards,
Paul


On 03/19/2017 12:41 PM, venky18 wrote:

while running make i am getting the following error. ./config completes executing without any error


make[2]: Entering directory '/home/venky/dev/scilab_master/scilab/modules/io' /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../modules/core/includes -I./includes/ -I./src/c/ -I./src/cpp/ -I../../modules/ast/includes/ast/ -I../../modules/ast/includes/exps/ -I../../modules/ast/includes/operations/ -I../../modules/ast/includes/parse/ -I../../modules/ast/includes/symbol/ -I../../modules/ast/includes/system_env/ -I../../modules/ast/includes/types/ -I../../modules/ast/includes/analysis/ -I../../modules/core/includes/ -I../../modules/api_scilab/includes/ -I../../modules/functions_manager/includes/ -I../../modules/elementary_functions/includes/ -I../../modules/fileio/includes/ -I../../modules/string/includes/ -I../../modules/output_stream/includes/ -I../../modules/localization/includes/ -I../../modules/threads/includes/ -I../../modules/dynamic_link/includes -I../../modules/console/includes -I../../modules/hdf5/includes -I../../modules/tclsci/includes -I/usr/include/libxml2 -std=c++11 -DNDEBUG -g -O2 -MT src/cpp/libsciio_algo_la-loadlib.lo -MD -MP -MF src/cpp/.deps/libsciio_algo_la-loadlib.Tpo -c -o src/cpp/libsciio_algo_la-loadlib.lo `test -f 'src/cpp/loadlib.cpp' || echo './'`src/cpp/loadlib.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../modules/core/includes -I./includes/ -I./src/c/ -I./src/cpp/ -I../../modules/ast/includes/ast/ -I../../modules/ast/includes/exps/ -I../../modules/ast/includes/operations/ -I../../modules/ast/includes/parse/ -I../../modules/ast/includes/symbol/ -I../../modules/ast/includes/system_env/ -I../../modules/ast/includes/types/ -I../../modules/ast/includes/analysis/ -I../../modules/core/includes/ -I../../modules/api_scilab/includes/ -I../../modules/functions_manager/includes/ -I../../modules/elementary_functions/includes/ -I../../modules/fileio/includes/ -I../../modules/string/includes/ -I../../modules/output_stream/includes/ -I../../modules/localization/includes/ -I../../modules/threads/includes/ -I../../modules/dynamic_link/includes -I../../modules/console/includes -I../../modules/hdf5/includes -I../../modules/tclsci/includes -I/usr/include/libxml2 -std=c++11 -DNDEBUG -g -O2 -MT src/cpp/libsciio_algo_la-loadlib.lo -MD -MP -MF src/cpp/.deps/libsciio_algo_la-loadlib.Tpo -c src/cpp/loadlib.cpp -fPIC -DPIC -o src/cpp/.libs/libsciio_algo_la-loadlib.o src/cpp/loadlib.cpp: In function ‘types::Library* loadlib(const wstring&, int*, bool, bool)’: src/cpp/loadlib.cpp:41:77: error: invalid conversion from ‘int’ to ‘BOOL’ [-fpermissive] wchar_t* pwstXML = pathconvertW(_wstXML.data(), FALSE, FALSE, AUTO_STYLE); ^ In file included from src/cpp/loadlib.cpp:28:0: ../../modules/fileio/includes/pathconvert.h:31:24: note: initializing argument 2 of ‘wchar_t* pathconvertW(const wchar_t*, BOOL, BOOL, PathConvertType)’ FILEIO_IMPEXP wchar_t *pathconvertW(const wchar_t* wcpath, BOOL flagtrail, BOOL flagexpand, PathConvertType PType); ^ src/cpp/loadlib.cpp:41:77: error: invalid conversion from ‘int’ to ‘BOOL’ [-fpermissive] wchar_t* pwstXML = pathconvertW(_wstXML.data(), FALSE, FALSE, AUTO_STYLE); ^ In file included from src/cpp/loadlib.cpp:28:0: ../../modules/fileio/includes/pathconvert.h:31:24: note: initializing argument 3 of ‘wchar_t* pathconvertW(const wchar_t*, BOOL, BOOL, PathConvertType)’ FILEIO_IMPEXP wchar_t *pathconvertW(const wchar_t* wcpath, BOOL flagtrail, BOOL flagexpand, PathConvertType PType); ^ Makefile:1100: recipe for target 'src/cpp/libsciio_algo_la-loadlib.lo' failed make[2]: *** [src/cpp/libsciio_algo_la-loadlib.lo] Error 1 make[2]: Leaving directory '/home/venky/dev/scilab_master/scilab/modules/io' Makefile:838: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/venky/dev/scilab_master/scilab/modules' Makefile:1588: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1

can someone tell me how to resolve this error?



View this message in context: compilatioon errors
Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com.


_______________________________________________
dev mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/dev

-- 
Paul BIGNIER
Development engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
http://www.scilab-enterprises.com

_______________________________________________
dev mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/dev
venky18 venky18
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: compilatioon errors

output of g++ -v
Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.4' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu'
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)
Loading...