pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

failuers when building ncurses-6.1 on pkgsrc_2019Q4



Hi,

I am on an branch is pkgsrc_2019Q4, the os env is an illumos based distribution,
the pkgsrc is bootstraped using gcc 7.3.0 from https://u8209486.ct.sendgrid.net/ls/click?upn=5-2BjrOL6Sde2a9aQLMiEgaBcBwbd0Z7fqyajDfUYSc6r-2BVitpwb6Xi0-2F54Ij-2B-2FRrCRAah9-2F8-2F4tRY5z815qLcRl2rqSvPgig2KFweWtm9X3kOh9XLS8ePOzAXxmkxRwT3UhA5_9zlmVlpiNfLqy8Jl6Xjd4VEcG5KtN2wMRe2-2B8KIsz6dxUxPRvNv7mmx32b28uGS08mKYV50sgjYCvVrfGK9W-2FRVI8VTbR0NIPYfB5IoBn-2BJ4zqZ9jASQnLgtyxKRKwqxSrQP-2FxsOjgo-2BXBLYJhNdr6nh-2Fg2yk56zCOQoURy4CRhwQvR34OTDct9pdZngqpeYxge10e0tIIwEN7QokhNsK-2FoBEg6M-2BdtsB4JJVWV4RhRx8573OD5zW-2BpVbqo9MUBr

Build ncurses failed with the following message.
Looks like libtool cannot find g++, if I pass CXX=/opt/tools/bin/g++ explicitly to bmake, I got the iostream.h error(which seems can be resolved by using gcc49).
Do you have any clues to the cause of this failure?

================dmake==============

cd c++ && /opt/local/bin/gmake DESTDIR="" RPATH_LIST="/opt/local/lib" all
gmake[1]: Entering directory '/opt/work/devel/ncurses/work/ncurses-6.1/c++'
cp ./etip.h.in etip.h
/usr/bin/bash ./edit_cfg.sh ../include/ncurses_cfg.h etip.h
substituting autoconf'd values from ../include/ncurses_cfg.h into etip.h
... CPP_HAS_PARAM_INIT 0
... CPP_HAS_STATIC_CAST 0
... ETIP_NEEDS_MATH_EXCEPTION 0
... ETIP_NEEDS_MATH_H 0
... HAVE_BUILTIN_H 0
... HAVE_GPP_BUILTIN_H 0
... HAVE_GXX_BUILTIN_H 0
... HAVE_IOSTREAM 0
... HAVE_TYPEINFO 0
... HAVE_VALUES_H 0
... IOSTREAM_NAMESPACE 0
cd ../obj_lo; libtool --tag=CXX --silent --mode=compile  -DHAVE_CONFIG_H -I../c++ -I. -I../include -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64  -DNDEBUG -O2 -D_FORTIFY_SOURCE=2  -c ../c++/cursesf.cc
Usage: /opt/local/bin/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
libtool:   error: unrecognised option: '-DHAVE_CONFIG_H'
gmake[1]: *** [Makefile:357: ../obj_lo/cursesf.lo] Error 1
gmake[1]: Leaving directory '/opt/work/devel/ncurses/work/ncurses-6.1/c++'
gmake: *** [Makefile:122: all] Error 2
*** Error code 2

Stop.
bmake[2]: stopped in /opt/pkgsrc/devel/ncurses
*** Error code 1

Stop.
bmake[1]: stopped in /opt/pkgsrc/devel/ncurses
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/editors/bvi
-bash-4.3# which g++
/opt/tools/bin/g++

===================dmake CXX=/opt/tools/bin/g++ ==================
cd c++ && /opt/local/bin/gmake DESTDIR="" RPATH_LIST="/opt/local/lib" all
gmake[1]: Entering directory '/opt/pkgsrc/devel/ncurses/work/ncurses-6.1/c++'
cd ../obj_lo; libtool --tag=CXX --silent --mode=compile /opt/tools/bin/g++ -DHAVE_CONFIG_H -I../c++ -I. -I../include -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64  -DNDEBUG -O2 -D_FORTIFY_SOURCE=2  -c ../c++/cursesf.cc
In file included from ../c++/cursesw.h:40:0,
                 from ../c++/cursesp.h:39,
                 from ../c++/cursesf.h:39,
                 from ../c++/cursesf.cc:35:
../c++/etip.h:341:15: fatal error: iostream.h: No such file or directory
 #     include <iostream.h>
               ^~~~~~~~~~~~
compilation terminated.
gmake[1]: *** [Makefile:357: ../obj_lo/cursesf.lo] Error 1
gmake[1]: Leaving directory '/opt/pkgsrc/devel/ncurses/work/ncurses-6.1/c++'
gmake: *** [Makefile:122: all] Error 2
*** Error code 2

Stop.
bmake[1]: stopped in /opt/pkgsrc/devel/ncurses
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/devel/ncurses

=================gcc version==================
-bash-4.3# gcc -v
Using built-in specs.
COLLECT_GCC=/opt/tools/gcc7/bin/gcc
COLLECT_LTO_WRAPPER=/opt/tools/gcc7/libexec/gcc/x86_64-sun-solaris2.11/7.4.0/lto-wrapper
Target: x86_64-sun-solaris2.11
Configured with: ../gcc-7.4.0/configure --disable-libstdcxx-pch --disable-nls --with-gxx-include-dir=/opt/tools/gcc7/include/c++/ --enable-libssp --enable-languages='c obj-c++ objc fortran c++' --enable-shared --enable-long-long --with-local-prefix=/opt/tools/gcc7 --enable-threads=posix --with-boot-ldflags='-static-libstdc++ -static-libgcc -Wl,-R/opt/tools/lib  ' --without-gnu-ld --with-ld=/usr/bin/ld --with-gnu-as --with-as=/opt/tools/bin/gas --prefix=/opt/tools/gcc7 --build=x86_64-sun-solaris2.11 --host=x86_64-sun-solaris2.11 --infodir=/opt/tools/gcc7/info --mandir=/opt/tools/gcc7/man --enable-option-checking=yes
Thread model: posix
gcc version 7.4.0 (GCC) 


Home | Main Index | Thread Index | Old Index