boost does not cross-compile for qnx (at least x86_64) since 1.86.0

Open
#1,120 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp

Research direction

Reproduce the failure with the reported ./bootstrap and ./b2 command on Ubuntu 22.04 targeting QNX, comparing Boost 1.85.0 with 1.86.0 or later. Investigate the regression using the available cross-compilation output; done means the reported QNX x86_64 build completes without a segmentation fault.

Written by the indexing model from the issue text.

Description

Cross compiling boost release 1.86.0 on QNX SDP 7.1 (qcc 8.3.0 (with gcc backend)) results in Segmentation Fault.

I tried the following versions:
1.81.0 works ✅
1.85.0 works ✅
1.86.0 seg fault ❌
1.87.0 seg fault ❌
1.90.0 seg fault ❌

I used the following comands on a freshly download version:
./bootstrap
./b2 -j$(nproc) toolset=qcc target-os=qnx architecture=x86 address-model=64 variant=release threading=multi threadapi=pthread link=static runtime-link=static --with-system --with-filesystem --with-thread --with-chrono --with-date_time --with-regex --with-program_options

The only output I see on the terminal is:
Segmentation fault (core dumped)

I cross compile on the following host (lsb_release -a):

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:       jammy
Dominant language
HTML
Stars
8.6k
Forks
2k
Avg merge
9h 35m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/boost

All issues in boostorg/boost

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.