Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build boost for QNX #404

Open
3 tasks done
frogarian opened this issue Jul 23, 2024 · 0 comments
Open
3 tasks done

Failed to build boost for QNX #404

frogarian opened this issue Jul 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@frogarian
Copy link

Make sure you completed the following tasks

Environment and version details

  • Operating System+version: Linux Ubuntu 20.04
  • Compiler+version: QCC 8.3
  • Shell: Bash
  • B2 Version: B2 5.2.1 (OS=LINUX, jobs=16)
  • B2 Configuration: Output of b2 --debug-configuration in your project.
Place output of "b2 --debug-configuration" here.

Brief problem description

Building boost with qcc toolset fails with segmentation fault.

Steps to reproduce the issue

Actual behavior summary

Output of b2 toolset=qcc --debug-configuration -d2

notice: found boost-build.jam at /tmp/boost_1_85_0/boost-build.jam
notice: loading B2 from /home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/build-system.jam
notice: Searching '/etc' '/home/frogarian' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/util' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/tools' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/options' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/contrib' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/build' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2' for site-config configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in '/etc' '/home/frogarian' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/util' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/tools' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/options' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/contrib' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/build' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2'.
notice: Searching '/home/frogarian' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/util' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/tools' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/options' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/contrib' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/build' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2' for user-config configuration file 'user-config.jam'.
notice: Configuration file 'user-config.jam' not found in '/home/frogarian' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/util' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/tools' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/options' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/contrib' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/build' '/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2'.
notice: [cmdline-cfg] toolset qcc not previously configured; attempting to auto-configure now
notice: will use 'qcc' for qcc, condition <toolset>qcc
notice: [zlib] Using pre-installed library
notice: [zlib] Condition
notice: [bzip2] Using pre-installed library
notice: [bzip2] Condition
notice: [lzma] Using pre-installed library
notice: [lzma] Condition
notice: [zstd] Using pre-installed library
notice: [zstd] Condition
notice: [python-cfg] Configuring python...
notice: [python-cfg] Checking interpreter command "python"...
notice: [python-cfg] running command 'python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...requested configuration matched!
notice: [python-cfg] Details of this Python configuration:
notice: [python-cfg]   interpreter command: "python"
notice: [python-cfg]   include path: "/usr/include/python3.8"
notice: [python-cfg]   library path: "/usr/lib/python3.8/config" "/usr/lib"
notice: [python-cfg] Checking for NumPy...
notice: [python-cfg] running command 'python -c "import sys; sys.stderr = sys.stdout; import numpy; print(numpy.get_include())"'
notice: [python-cfg] NumPy disabled. Reason:
notice: [python-cfg]   python -c "import sys; sys.stderr = sys.stdout; import numpy; print(numpy.get_include())" aborted with 
notice: [python-cfg]   Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'
/tmp/boost_1_85_0/libs/test/build/../../predef/check/predef.jam:17: in modules.import from module predef
warning: loading predef
warning: circular module loading dependency:
warning: build-system Jamfile</tmp/boost_1_85_0/libs/test/build> predef ==> predef
/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/build/project.jam:1308: in import from module Jamfile</tmp/boost_1_85_0/libs/test/build>
libs/test/build/Jamfile.v2:11: in modules.load from module Jamfile</tmp/boost_1_85_0/libs/test/build>
/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/build/project.jam:544: in load-jamfile from module project
/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/build/project.jam:68: in load from module project
/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/build/project.jam:109: in load-used-projects from module project
/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/build/project.jam:79: in load from module project
/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/build/project.jam:201: in project.find from module project
/home/frogarian/.conan/p/b/b2bc5509f3c9b5d/p/bin/.b2/build-system.jam:618: in module scope from module build-system
Segmentation fault (core dumped)

Last lines of output of b2 toolset=qcc --debug-configuration -d5

[...]
(builtin):>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|> modules.call-in qcc : qcc.compile.c++ <pbin.v2/libs/config/checks/architecture/qcc/debug/visibility-hidden>32.o : <plibs/config/checks/architecture-object(c-scanner)@7606>32.cpp : <abi>sysv <asynch-exceptions>off <binary-format>elf <boost.cobalt.executor>any_io_executor <boost.cobalt.pmr>std <context-impl>fcontext <coverage>off <debug-symbols>on <define>BOOST_ALL_NO_LIB=1 <define>BOOST_COBALT_USE_STD_PMR=1 <exception-handling>on <extern-c-nothrow>off <hardcode-dll-paths>true <host-os>linux <include>. <inlining>off <install-dependencies>off <link>shared <local-visibility>hidden <main-target-type>OBJ <optimization>off <os>LINUX <pch>on <preserve-test-targets>on <profiling>off <python-debugging>off <python>3.8 <relevant>address-model <relevant>architecture <relevant>c++-template-depth <relevant>cflags <relevant>cxxflags <relevant>debug-symbols <relevant>define <relevant>define:<relevant>toolset <relevant>include <relevant>inlining <relevant>link <relevant>link:<relevant>toolset <relevant>local-visibility <relevant>optimization <relevant>profiling <relevant>toolset <relevant>warnings <relevant>warnings-as-errors <response-file>auto <rtti>on <runtime-debugging>on <runtime-link>shared <stdlib>native <strip>off <suppress-import-lib>false <symlink-location>project-relative <tag>@Jamfile</tmp/boost_1_85_0>%Jamfile</tmp/boost_1_85_0>.tag <target-os>linux <testing.execute>on <threadapi>pthread <threading>multi <toolset>qcc <user-interface>console <variant>debug <vectorize>off <visibility>hidden <warnings-as-errors>off <warnings>on <xsl:param>boost.defaults=Boost :  :  :  :  :  :  :  :  :  :  :  :  :  :  : 
(builtin):>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>> qcc.compile.c++ <pbin.v2/libs/config/checks/architecture/qcc/debug/visibility-hidden>32.o : <plibs/config/checks/architecture-object(c-scanner)@7606>32.cpp : <abi>sysv <asynch-exceptions>off <binary-format>elf <boost.cobalt.executor>any_io_executor <boost.cobalt.pmr>std <context-impl>fcontext <coverage>off <debug-symbols>on <define>BOOST_ALL_NO_LIB=1 <define>BOOST_COBALT_USE_STD_PMR=1 <exception-handling>on <extern-c-nothrow>off <hardcode-dll-paths>true <host-os>linux <include>. <inlining>off <install-dependencies>off <link>shared <local-visibility>hidden <main-target-type>OBJ <optimization>off <os>LINUX <pch>on <preserve-test-targets>on <profiling>off <python-debugging>off <python>3.8 <relevant>address-model <relevant>architecture <relevant>c++-template-depth <relevant>cflags <relevant>cxxflags <relevant>debug-symbols <relevant>define <relevant>define:<relevant>toolset <relevant>include <relevant>inlining <relevant>link <relevant>link:<relevant>toolset <relevant>local-visibility <relevant>optimization <relevant>profiling <relevant>toolset <relevant>warnings <relevant>warnings-as-errors <response-file>auto <rtti>on <runtime-debugging>on <runtime-link>shared <stdlib>native <strip>off <suppress-import-lib>false <symlink-location>project-relative <tag>@Jamfile</tmp/boost_1_85_0>%Jamfile</tmp/boost_1_85_0>.tag <target-os>linux <testing.execute>on <threadapi>pthread <threading>multi <toolset>qcc <user-interface>console <variant>debug <vectorize>off <visibility>hidden <warnings-as-errors>off <warnings>on <xsl:param>boost.defaults=Boost :  :  :  :  :  :  :  :  :  :  :  :  :  :  : 
(builtin):>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>| qcc.check-target-platform <pbin.v2/libs/config/checks/architecture/qcc/debug/visibility-hidden>32.o
(builtin):>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>| regex.escape  : ()[]\+.*^$" : \
Segmentation fault (core dumped)

If I revert the changes on src/tools/qcc.jam from fbb7fb1 it seems to work fine.

Expected behavior summary

It should build without an error.

@frogarian frogarian added the bug Something isn't working label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant