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

[bug] QNX SDP 7.0 debug build with stabs #453

Closed
Johnnyxy opened this issue Jun 21, 2019 · 2 comments
Closed

[bug] QNX SDP 7.0 debug build with stabs #453

Johnnyxy opened this issue Jun 21, 2019 · 2 comments
Labels
transition Transition to bfgroup/b2

Comments

@Johnnyxy
Copy link

Johnnyxy commented Jun 21, 2019

Hi there,
while compiling code with QNX SDP 7.0 (GCC 5.4) I get an error:

qcc.compile.c++ C:\boost\bin.v2\libs\thread\build\qcc-5.4\dbg\lnk-sttc\trgt-os-qnxnt\thrdp-pthrd\vsblt-hdn\future.o

"QCC" -lang-c++ -Wc,-ftemplate-depth-128 -fvisibility-inlines-hidden -Vgcc_ntoaarch64le_cxx -fPIC -gstabs+ -O0 -Wc,-fno-inline -Wc,-Wall -fvisibility=hidden -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -I"." -c -o "C:\boost\bin.v2\libs\thread\build\qcc-5.4\dbg\lnk-sttc\trgt-os-qnxnt\thrdp-pthrd\vsblt-hdn\future.o" "libs\thread\src\future.cpp"

libs\thread\src\future.cpp:1:0: error: target system does not support the 'stabs' debug format
// (C) Copyright 2012 Vicente J. Botet Escriba
^
cc: c:/qnx700//host/win64/x86_64/usr/lib/gcc/aarch64-unknown-nto-qnx7.0.0/5.4.0/cc1plus caught signal 1
...failed qcc.compile.c++ C:\boost\bin.v2\libs\thread\build\qcc-5.4\dbg\lnk-sttc\trgt-os-qnxnt\thrdp-pthrd\vsblt-hdn\future.o...

I investigated the problem and found out that the qcc.jam specifies the -gstabs+ flag.

toolset.flags qcc.compile OPTIONS <debug-symbols>on : -gstabs+ ;

toolset.flags qcc.link OPTIONS <debug-symbols>on : -gstabs+ ;

The QCC compiler wrapper docs describe only -g as compiler argument (see QNX 7.0, QNX 6.5).

I have patched the file with the attached patch file (locally):
boost_build_qcc_fix_debug_build_parameter.patch.txt

@stale
Copy link

stale bot commented Jun 11, 2021

Thank you for your contributions. Main development of B2 has moved to https://github.com/bfgroup/b2
This issue has been automatically marked as "transition" to indicate the potential for needing transition to the new B2 development project.

@stale stale bot added the transition Transition to bfgroup/b2 label Jun 11, 2021
johnmcfarlane added a commit to johnmcfarlane/b2 that referenced this issue Mar 8, 2024
As per the patch put forward in boostorg/build#453
grafikrobot pushed a commit to bfgroup/b2 that referenced this issue Mar 8, 2024
As per the patch put forward in boostorg/build#453
@grafikrobot
Copy link
Member

Fixed externally thanks to @johnmcfarlane

grafikrobot pushed a commit to grafikrobot/boostorg.build that referenced this issue Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
transition Transition to bfgroup/b2
Projects
None yet
Development

No branches or pull requests

2 participants