Wednesday, December 3, 2025

why does g++ fail when I try to build b2 within podman cross container ppc64le machine?

 I think the following issue that am getting from g++ can be debugged and contributed to opensource community.

(ppc-pyarrow-venv) [root@SNPS-sglkUwjXAq build]# make -j1

[  0%] Performing configure step for 'boost_ep'

CMake Error at /hostshare/naveenr/ppc-builddir/arrow/cpp/build/boost_ep-prefix/src/boost_ep-stamp/boost_ep-configure-RELEASE.cmake:37 (message):

  Command failed: 1


   './bootstrap.sh' '--prefix=/hostshare/naveenr/ppc-builddir/arrow/cpp/build/boost_ep-prefix/src/boost_ep' '--with-libraries=filesystem,system'


  See also


    /hostshare/naveenr/ppc-builddir/arrow/cpp/build/boost_ep-prefix/src/boost_ep-stamp/boost_ep-configure-*.log

> g++ -x c++ -std=c++11 -O2 -s -DNDEBUG builtins.cpp class.cpp command.cpp compile.cpp constants.cpp cwd.cpp debug.cpp debugger.cpp execcmd.cpp execnt.cpp execunix.cpp filesys.cpp filent.cpp fileunix.cpp frames.cpp function.cpp glob.cpp hash.cpp hcache.cpp hdrmacro.cpp headers.cpp jam_strings.cpp jam.cpp jamgram.cpp lists.cpp make.cpp make1.cpp md5.cpp mem.cpp modules.cpp native.cpp object.cpp option.cpp output.cpp parse.cpp pathnt.cpp pathsys.cpp pathunix.cpp regexp.cpp rules.cpp scan.cpp search.cpp startup.cpp subst.cpp sysinfo.cpp timestamp.cpp variable.cpp w32_getreg.cpp modules/order.cpp modules/path.cpp modules/property-set.cpp modules/regex.cpp modules/sequence.cpp modules/set.cpp -o b2


Failed to build B2 build engine


-- stderr output is:

g++: internal compiler error: Segmentation fault signal terminated program cc1plus

Please submit a full bug report, with preprocessed source.

See <http://bugzilla.redhat.com/bugzilla> for instructions.


CMake Error at /hostshare/naveenr/ppc-builddir/arrow/cpp/build/boost_ep-prefix/src/boost_ep-stamp/boost_ep-configure-RELEASE.cmake:47 (message):

  Stopping after outputting logs.



make[2]: *** [CMakeFiles/boost_ep.dir/build.make:92: boost_ep-prefix/src/boost_ep-stamp/boost_ep-configure] Error 1

make[1]: *** [CMakeFiles/Makefile2:1144: CMakeFiles/boost_ep.dir/all] Error 2

make: *** [Makefile:146: all] Error 2

(ppc-pyarrow-venv) [root@SNPS-sglkUwjXAq build]# exit

No comments: