[OpenIndiana-discuss] Strange (?) error

2022-05-29 Thread Apostolos Syropoulos via openindiana-discuss
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

Re: [OpenIndiana-discuss] Strange (?) error

2022-05-29 Thread s...@pandora.be

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

Re: [OpenIndiana-discuss] Strange (?) error

2022-05-29 Thread s...@pandora.be

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

2022-05-29 Thread Apostolos Syropoulos via openindiana-discuss

>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