Re: [OpenIndiana-discuss] Strange (?) error
The problem has been solved by erwinlem: https://github.com/OpenIndiana/oi-userland/pull/8605 Am 01.06.22 um 17:09 schrieb Aurélien Larcher: Your problem is that boost is compiler as 32 and 64 bits and your program expects to find 64-bit versions where we install the 32-bit. You should pass an environment variable to indicate where the cmake files for the 64-bit version live: /usr/lib/amd64. It is a similar recipe as for PKG_CONFIG_PATH probably. On Tue, May 31, 2022 at 7:21 PM Apostolos Syropoulos via openindiana-discuss wrote: The maintainer of apgnasm answered as follows to the same question: I'm afraid I can't offer much help with non-Linux OS's, but this right here: but it set boost_program_options_FOUND to FALSE so package "boost_program_options" is considered to be NOT FOUND Indicates to me that what's being found is basically a "dummy" configuration file which is intentionally setting that to false because either that functionality isn't available or it's intentionally being disabled. I'm not sure how package management is done on that system but you may want to try to either install the actual Boost program options package or if it is installed try reconfiguring it or re-installing it. So I am wondering if the person who actually compiles could help me to resolve this problem? Kind regards, Apostolos --Apostolos Syropoulos Xanthi, Greece ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] Strange (?) error
Your problem is that boost is compiler as 32 and 64 bits and your program expects to find 64-bit versions where we install the 32-bit. You should pass an environment variable to indicate where the cmake files for the 64-bit version live: /usr/lib/amd64. It is a similar recipe as for PKG_CONFIG_PATH probably. On Tue, May 31, 2022 at 7:21 PM Apostolos Syropoulos via openindiana-discuss wrote: > The maintainer of apgnasm answered as follows to the same question: > > I'm afraid I can't offer much help with non-Linux OS's, but this right > here: > > but it set boost_program_options_FOUND to FALSE so package > "boost_program_options" is considered to be NOT FOUND > > > Indicates to me that what's being found is basically a "dummy" > configuration file which is intentionally setting that to false because > either that functionality isn't available or it's intentionally being > disabled. I'm not sure how package management is done on that system but > you may want to try to either install the actual Boost program options > package or if it is installed try reconfiguring it or re-installing it. > So I am wondering if the person who actually compiles could help me to > resolve this problem? > Kind regards, > Apostolos > > --Apostolos Syropoulos > Xanthi, Greece > > > > > > ___ > openindiana-discuss mailing list > openindiana-discuss@openindiana.org > https://openindiana.org/mailman/listinfo/openindiana-discuss > -- --- Praise the Caffeine embeddings ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] Strange (?) error
Hey Apostolos Here are the Compile options in boost that we set [0] Do you need additional ones? [0] https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/library/boost/Makefile#L47-L72 Greetings Till On 31/05/2022 14.20, Apostolos Syropoulos via openindiana-discuss wrote: The maintainer of apgnasm answered as follows to the same question: I'm afraid I can't offer much help with non-Linux OS's, but this right here: but it set boost_program_options_FOUND to FALSE so package "boost_program_options" is considered to be NOT FOUND Indicates to me that what's being found is basically a "dummy" configuration file which is intentionally setting that to false because either that functionality isn't available or it's intentionally being disabled. I'm not sure how package management is done on that system but you may want to try to either install the actual Boost program options package or if it is installed try reconfiguring it or re-installing it. So I am wondering if the person who actually compiles could help me to resolve this problem? Kind regards, Apostolos --Apostolos Syropoulos Xanthi, Greece ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] Strange (?) error
The maintainer of apgnasm answered as follows to the same question: I'm afraid I can't offer much help with non-Linux OS's, but this right here: but it set boost_program_options_FOUND to FALSE so package "boost_program_options" is considered to be NOT FOUND Indicates to me that what's being found is basically a "dummy" configuration file which is intentionally setting that to false because either that functionality isn't available or it's intentionally being disabled. I'm not sure how package management is done on that system but you may want to try to either install the actual Boost program options package or if it is installed try reconfiguring it or re-installing it. So I am wondering if the person who actually compiles could help me to resolve this problem? Kind regards, Apostolos --Apostolos Syropoulos Xanthi, Greece ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] Strange (?) error
>Did you try compiling the package with GCC 7 instead of GCC 10.3 ? No this is not the problem: aposyro@adalind>> cmake .. -- The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is GNU 7.5.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found ZLIB: /usr/lib/64/libz.so (found version "1.2.11") -- Found PNG: /usr/lib/64/libpng.so (found version "1.6.37") 1.6.37 CMake Error at /usr/lib/cmake/Boost-1.76.0/BoostConfig.cmake:141 (find_package): Found package configuration file: /usr/lib/cmake/boost_program_options-1.76.0/boost_program_options-config.cmake but it set boost_program_options_FOUND to FALSE so package "boost_program_options" is considered to be NOT FOUND. Reason given by package: No suitable build variant has been found. The following variants have been tried and rejected: * libboost_program_options.so.1.76.0 (32 bit, need 64) * libboost_program_options.a (32 bit, need 64) Call Stack (most recent call first): /usr/lib/cmake/Boost-1.76.0/BoostConfig.cmake:258 (boost_find_component) /usr/share/cmake-3.21/Modules/FindBoost.cmake:594 (find_package) lib/CMakeLists.txt:88 (find_package) -- Configuring incomplete, errors occurred! See also "/container/source/var/apngasm/build/CMakeFiles/CMakeOutput.log". I think something is wrong with the configuration script for boost. Regards. Apostolos --Apostolos Syropoulos Xanthi, Greece ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] Strange (?) error
Apostolos, Alternatively you could try to rebuild boost from https://github.com/OpenIndiana/oi-userland/tree/oi/hipster/components/library/boost and set GCC_VERSION to something like 10.3 or 11 include ../../../make-rules/shared-macros.mk GCC_VERSION=11 in the boost Makefile I did not test this, so I'm not sure it is relevant at all. Regards, David Stes > > - Op 29 mei 2022 om 9:58 schreef Discussion list for OpenIndiana > openindiana-discuss@openindiana.org: > >> Hello, >> I am trying to compile a 64bit binary of the following project >> https://github.com/apngasm/apngasm >> However, when the configuration process complains that there is something >> wrong >> with BOOST: >> aposyro@adalind>> cmake .. >> -- The C compiler identification is GNU 10.3.0 >> -- The CXX compiler identification is GNU 10.3.0 >> -- Detecting C compiler ABI info >> -- Detecting C compiler ABI info - done >> -- Check for working C compiler: /usr/bin/cc - skipped >> -- Detecting C compile features >> -- Detecting C compile features - done >> -- Detecting CXX compiler ABI info >> -- Detecting CXX compiler ABI info - done >> -- Check for working CXX compiler: /usr/bin/c++ - skipped >> -- Detecting CXX compile features >> -- Detecting CXX compile features - done >> -- Found ZLIB: /usr/lib/64/libz.so (found version "1.2.11") >> -- Found PNG: /usr/lib/64/libpng.so (found version "1.6.37") >> 1.6.37 >> CMake Error at /usr/lib/cmake/Boost-1.76.0/BoostConfig.cmake:141 >> (find_package): >> Found package configuration file: >> >> >>/usr/lib/cmake/boost_program_options-1.76.0/boost_program_options-config.cmake >> >> but it set boost_program_options_FOUND to FALSE so package >> "boost_program_options" is considered to be NOT FOUND. Reason given by >> package: >> >> No suitable build variant has been found. >> >> The following variants have been tried and rejected: >> >> * libboost_program_options.so.1.76.0 (32 bit, need 64) >> >> * libboost_program_options.a (32 bit, need 64) >> >> Call Stack (most recent call first): >> /usr/lib/cmake/Boost-1.76.0/BoostConfig.cmake:258 (boost_find_component) >> /usr/share/cmake-3.21/Modules/FindBoost.cmake:594 (find_package) >> lib/CMakeLists.txt:88 (find_package) >> >> >> -- Configuring incomplete, errors occurred! >> See also "/container/source/var/apngasm/build/CMakeFiles/CMakeOutput.log". >> >> And here are the contents of file CMakeOutput: >> The system is: SunOS - 5.11 - i386 >> Compiling the C compiler identification source file "CMakeCCompilerId.c" >> succeeded. >> Compiler: /usr/bin/cc >> Build flags: >> Id flags: >> >> The output was: >> 0 >> >> >> Compilation of the C compiler identification source "CMakeCCompilerId.c" >> produced "a.out" >> >> The C compiler identification is GNU, found in >> "/container/source/var/apngasm/build/CMakeFiles/3.21.3/CompilerIdC/a.out" >> >> Compiling the CXX compiler identification source file >> "CMakeCXXCompilerId.cpp" >> succeeded. >> Compiler: /usr/bin/c++ >> Build flags: >> Id flags: >> >> The output was: >> 0 >> >> >> Compilation of the CXX compiler identification source >> "CMakeCXXCompilerId.cpp" >> produced "a.out" >> >> The CXX compiler identification is GNU, found in >> "/container/source/var/apngasm/build/CMakeFiles/3.21.3/CompilerIdCXX/a.out" >> >> Detecting C compiler ABI info compiled with the following output: >> Change Dir: /container/source/var/apngasm/build/CMakeFiles/CMakeTmp >> >> Run Build Command(s):/usr/bin/amd64/gmake -f Makefile cmTC_3c1b1/fast && >> /usr/bin/amd64/gmake -f CMakeFiles/cmTC_3c1b1.dir/build.make >> CMakeFiles/cmTC_3c1b1.dir/build >> gmake[1]: Entering directory >> '/container/source/var/apngasm/build/CMakeFiles/CMakeTmp' >> Building C object CMakeFiles/cmTC_3c1b1.dir/CMakeCCompilerABI.c.o >> /usr/bin/cc -v -o CMakeFiles/cmTC_3c1b1.dir/CMakeCCompilerABI.c.o -c >> /usr/share/cmake-3.21/Modules/CMakeCCompilerABI.c >> Using built-in specs. >> COLLECT_GCC=/usr/bin/gcc-10 >> Target: x86_64-pc-solaris2.11 >> Configured with: >> /jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/gcc-releases-gcc-10.3.0/configure >> CC=/usr/gcc/7/bin/gcc CXX=/usr/gcc/7/bin/g++ F77=/usr/gcc/7/bin/gfortran >> FC=/usr/gcc/7/bin/gfortran CFLAGS=-O2 CXXFLAGS=-O2 FFLAGS=' -O3 ' >> FCFLAGS=-O2 >> LDFLAGS=-m64 >> PKG_CONFIG_PATH=/usr/openssl/1.0/lib/64/pkgconfig:/usr/lib/amd64/pkgconfig >> --prefix=/usr/gcc/10 --mandir=/usr/gcc/10/share/man --bindir=/usr/gcc/10/bin >> --libdir=/usr/gcc/10/lib --sbindir=/usr/gcc/10/sbin --sbindir=/usr/gcc/10/bin >> --libdir=/usr/gcc/10/lib --libexecdir=/usr/gcc/10/lib --host >> x86_64-pc-solaris2.11 --build x86_64-pc-solaris2.11 --target >> x86_64-pc-solaris2.11 --with-pkgversion='OpenIndiana 10.3.0-oi-3' >> --with-bugurl=https://bugs.openindiana.org --without-gnu-ld >> --with-ld=/usr/bin/ld >> --with-build-time-tools=/usr/gnu/x86_64-pc-solaris2.11/bin --with-gnu-as >> --with-as=/usr/bin/gas --enable-initfini-array LDFLAGS=-R/usr/gcc/10/lib >>
Re: [OpenIndiana-discuss] Strange (?) error
Hi Apostolos, This is just an idea, maybe you already tried it, but it seems you are using GNU CC/CXX 10.3.0. While if I look at boost: depend fmri=pkg:/system/library/g++-7-runtime@7.5.0-2020.0.1.9 type=require depend fmri=pkg:/system/library/gcc-7-runtime@7.5.0-2020.0.1.9 type=require boost seems at the moment to have been compiled with GNU CC/CXX 7. See http://pkg.openindiana.org/hipster/en/search.shtml?token=boost&action=Search Name: system/library/boost Summary: boost - free peer-reviewed portable C++ source libraries Publisher: openindiana.org Version: 1.78.0 Did you try compiling the package with GCC 7 instead of GCC 10.3 ? Regards, David Stes - Op 29 mei 2022 om 9:58 schreef Discussion list for OpenIndiana openindiana-discuss@openindiana.org: > Hello, > I am trying to compile a 64bit binary of the following project > https://github.com/apngasm/apngasm > However, when the configuration process complains that there is something > wrong > with BOOST: > aposyro@adalind>> cmake .. > -- The C compiler identification is GNU 10.3.0 > -- The CXX compiler identification is GNU 10.3.0 > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Check for working C compiler: /usr/bin/cc - skipped > -- Detecting C compile features > -- Detecting C compile features - done > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > -- Check for working CXX compiler: /usr/bin/c++ - skipped > -- Detecting CXX compile features > -- Detecting CXX compile features - done > -- Found ZLIB: /usr/lib/64/libz.so (found version "1.2.11") > -- Found PNG: /usr/lib/64/libpng.so (found version "1.6.37") > 1.6.37 > CMake Error at /usr/lib/cmake/Boost-1.76.0/BoostConfig.cmake:141 > (find_package): > Found package configuration file: > > >/usr/lib/cmake/boost_program_options-1.76.0/boost_program_options-config.cmake > > but it set boost_program_options_FOUND to FALSE so package > "boost_program_options" is considered to be NOT FOUND. Reason given by > package: > > No suitable build variant has been found. > > The following variants have been tried and rejected: > > * libboost_program_options.so.1.76.0 (32 bit, need 64) > > * libboost_program_options.a (32 bit, need 64) > > Call Stack (most recent call first): > /usr/lib/cmake/Boost-1.76.0/BoostConfig.cmake:258 (boost_find_component) > /usr/share/cmake-3.21/Modules/FindBoost.cmake:594 (find_package) > lib/CMakeLists.txt:88 (find_package) > > > -- Configuring incomplete, errors occurred! > See also "/container/source/var/apngasm/build/CMakeFiles/CMakeOutput.log". > > And here are the contents of file CMakeOutput: > The system is: SunOS - 5.11 - i386 > Compiling the C compiler identification source file "CMakeCCompilerId.c" > succeeded. > Compiler: /usr/bin/cc > Build flags: > Id flags: > > The output was: > 0 > > > Compilation of the C compiler identification source "CMakeCCompilerId.c" > produced "a.out" > > The C compiler identification is GNU, found in > "/container/source/var/apngasm/build/CMakeFiles/3.21.3/CompilerIdC/a.out" > > Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" > succeeded. > Compiler: /usr/bin/c++ > Build flags: > Id flags: > > The output was: > 0 > > > Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" > produced "a.out" > > The CXX compiler identification is GNU, found in > "/container/source/var/apngasm/build/CMakeFiles/3.21.3/CompilerIdCXX/a.out" > > Detecting C compiler ABI info compiled with the following output: > Change Dir: /container/source/var/apngasm/build/CMakeFiles/CMakeTmp > > Run Build Command(s):/usr/bin/amd64/gmake -f Makefile cmTC_3c1b1/fast && > /usr/bin/amd64/gmake -f CMakeFiles/cmTC_3c1b1.dir/build.make > CMakeFiles/cmTC_3c1b1.dir/build > gmake[1]: Entering directory > '/container/source/var/apngasm/build/CMakeFiles/CMakeTmp' > Building C object CMakeFiles/cmTC_3c1b1.dir/CMakeCCompilerABI.c.o > /usr/bin/cc -v -o CMakeFiles/cmTC_3c1b1.dir/CMakeCCompilerABI.c.o -c > /usr/share/cmake-3.21/Modules/CMakeCCompilerABI.c > Using built-in specs. > COLLECT_GCC=/usr/bin/gcc-10 > Target: x86_64-pc-solaris2.11 > Configured with: > /jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/gcc-releases-gcc-10.3.0/configure > CC=/usr/gcc/7/bin/gcc CXX=/usr/gcc/7/bin/g++ F77=/usr/gcc/7/bin/gfortran > FC=/usr/gcc/7/bin/gfortran CFLAGS=-O2 CXXFLAGS=-O2 FFLAGS=' -O3 ' FCFLAGS=-O2 > LDFLAGS=-m64 > PKG_CONFIG_PATH=/usr/openssl/1.0/lib/64/pkgconfig:/usr/lib/amd64/pkgconfig > --prefix=/usr/gcc/10 --mandir=/usr/gcc/10/share/man --bindir=/usr/gcc/10/bin > --libdir=/usr/gcc/10/lib --sbindir=/usr/gcc/10/sbin --sbindir=/usr/gcc/10/bin > --libdir=/usr/gcc/10/lib --libexecdir=/usr/gcc/10/lib --host > x86_64-pc-solaris2.11 --build x86_64-pc-solaris2.11 --target > x86_64-pc-solaris2.11 --with-pkgversion='OpenIndiana 10.3.0-oi-3' > --with-bugurl=https://bugs.openindiana.org --wit
[OpenIndiana-discuss] Strange (?) error
Hello, I am trying to compile a 64bit binary of the following project https://github.com/apngasm/apngasm However, when the configuration process complains that there is something wrong with BOOST: aposyro@adalind>> cmake .. -- The C compiler identification is GNU 10.3.0 -- The CXX compiler identification is GNU 10.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found ZLIB: /usr/lib/64/libz.so (found version "1.2.11") -- Found PNG: /usr/lib/64/libpng.so (found version "1.6.37") 1.6.37 CMake Error at /usr/lib/cmake/Boost-1.76.0/BoostConfig.cmake:141 (find_package): Found package configuration file: /usr/lib/cmake/boost_program_options-1.76.0/boost_program_options-config.cmake but it set boost_program_options_FOUND to FALSE so package "boost_program_options" is considered to be NOT FOUND. Reason given by package: No suitable build variant has been found. The following variants have been tried and rejected: * libboost_program_options.so.1.76.0 (32 bit, need 64) * libboost_program_options.a (32 bit, need 64) Call Stack (most recent call first): /usr/lib/cmake/Boost-1.76.0/BoostConfig.cmake:258 (boost_find_component) /usr/share/cmake-3.21/Modules/FindBoost.cmake:594 (find_package) lib/CMakeLists.txt:88 (find_package) -- Configuring incomplete, errors occurred! See also "/container/source/var/apngasm/build/CMakeFiles/CMakeOutput.log". And here are the contents of file CMakeOutput: The system is: SunOS - 5.11 - i386 Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. Compiler: /usr/bin/cc Build flags: Id flags: The output was: 0 Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" The C compiler identification is GNU, found in "/container/source/var/apngasm/build/CMakeFiles/3.21.3/CompilerIdC/a.out" Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: /usr/bin/c++ Build flags: Id flags: The output was: 0 Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out" The CXX compiler identification is GNU, found in "/container/source/var/apngasm/build/CMakeFiles/3.21.3/CompilerIdCXX/a.out" Detecting C compiler ABI info compiled with the following output: Change Dir: /container/source/var/apngasm/build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/amd64/gmake -f Makefile cmTC_3c1b1/fast && /usr/bin/amd64/gmake -f CMakeFiles/cmTC_3c1b1.dir/build.make CMakeFiles/cmTC_3c1b1.dir/build gmake[1]: Entering directory '/container/source/var/apngasm/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_3c1b1.dir/CMakeCCompilerABI.c.o /usr/bin/cc -v -o CMakeFiles/cmTC_3c1b1.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.21/Modules/CMakeCCompilerABI.c Using built-in specs. COLLECT_GCC=/usr/bin/gcc-10 Target: x86_64-pc-solaris2.11 Configured with: /jenkins/jobs/oi-userland/workspace/components/developer/gcc-10/gcc-releases-gcc-10.3.0/configure CC=/usr/gcc/7/bin/gcc CXX=/usr/gcc/7/bin/g++ F77=/usr/gcc/7/bin/gfortran FC=/usr/gcc/7/bin/gfortran CFLAGS=-O2 CXXFLAGS=-O2 FFLAGS=' -O3 ' FCFLAGS=-O2 LDFLAGS=-m64 PKG_CONFIG_PATH=/usr/openssl/1.0/lib/64/pkgconfig:/usr/lib/amd64/pkgconfig --prefix=/usr/gcc/10 --mandir=/usr/gcc/10/share/man --bindir=/usr/gcc/10/bin --libdir=/usr/gcc/10/lib --sbindir=/usr/gcc/10/sbin --sbindir=/usr/gcc/10/bin --libdir=/usr/gcc/10/lib --libexecdir=/usr/gcc/10/lib --host x86_64-pc-solaris2.11 --build x86_64-pc-solaris2.11 --target x86_64-pc-solaris2.11 --with-pkgversion='OpenIndiana 10.3.0-oi-3' --with-bugurl=https://bugs.openindiana.org --without-gnu-ld --with-ld=/usr/bin/ld --with-build-time-tools=/usr/gnu/x86_64-pc-solaris2.11/bin --with-gnu-as --with-as=/usr/bin/gas --enable-initfini-array LDFLAGS=-R/usr/gcc/10/lib --with-diagnostics-urls=auto-if-env --enable-plugins --enable-objc-gc --enable-languages=c,c++,fortran,lto,objc --disable-libitm enable_frame_pointer=yes Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 10.3.0 (OpenIndiana 10.3.0-oi-3) COLLECT_GCC_OPTIONS='-m64' '-v' '-o' 'CMakeFiles/cmTC_3c1b1.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' /usr/gcc/10/lib/gcc/x86_64-pc-solaris2.11/10.3.0/cc1 -quiet -v /usr/share/cmake-3.21/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -m64 -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_3c1b1.dir/CMakeCCompilerABI.c.o -version -o /var/tmp//ccduaqtc.s GNU C17 (OpenIndiana 10.3.0-oi-3) version 10.3.0 (x86_64-pc-solaris2.11) compiled by GNU C version 10.3.0, GMP ver
[OpenIndiana-discuss] strange error
Hello, Today someone posted a message to the gcc-help mailing list. He complained because he could not use Unicode characters in a C++ program. He posted a program and some list members suggested a modification. The modified program follows: #include #include #include using namespace std; int main() { wstring ws2 = L"Euro:\x20ac"; wofstream out("unicode.txt"); out.imbue(locale("el_GR.UTF-8")); out << ws2<< endl; } I have no idea what platform he uses but I get the following error message when running the g++ generated binary: terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid Abort (core dumped) But when I compile with solstudio the program terminates normally but file unicode.txt is empty (i.e., its size is zero). On Linux this program runs just fine and creates a file that contains the Euro character. According to another poster to gcc-helo, on MacOS people get exactly the same error. I guess something is wrong, but I have no idea what's wrong. BTW, I have tried to use en_US.UTF-8 instead of el_GR.UTF-8 but this did not make any difference. A.S. -- Apostolos Syropoulos Xanthi, Greece ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss