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 RANLIB not executed for built libraries #452

Open
Johnnyxy opened this issue Jun 12, 2019 · 1 comment
Open

[bug] QNX RANLIB not executed for built libraries #452

Johnnyxy opened this issue Jun 12, 2019 · 1 comment
Labels
transition Transition to bfgroup/b2

Comments

@Johnnyxy
Copy link

Johnnyxy commented Jun 12, 2019

hi there,
I was trying to build boost (static libs) with QNX SDP 7.0 (compiler QCC 5.4.0).
As I noticed that the built static libraries do not have an index. This is because there is no following ranlib execution after library creation.

The problem here is that QNX has different RANLIB executables for different target architectures.
This means that the boost recipe cannot (easily) detect the correct executable it has to execute to create an index in the libraries.

As I have to specify the architecture in a pre-boost-build-step anyway (by setting environment variable RANLIB) I was looking for a way to modify the ranlib executable boost executes. In the GCC recipe I found out that it retrieves the executable from the <ranlib> feature (see here) what in turn gets set by the configuration (user-config.jam in my case). This file gets generated by a pre-boost-build-step and uses the data from the RANLIB environment variable. So I modifed the qcc.jam to support the same.

The result is that the qcc toolset retrieves the <ranlib> feature from the configuration.

See the patch file here:
boost_build_qcc_use_ranlib_feature.patch.txt

further more

The problem with this approach is that it forces the user to specify a ranlib feature. But this could be undesireable. I tried to make it optional but had no success so far as I am no BJAM/JAM expert at all.
Can some BJAM-enthusiast help me out?

@Johnnyxy Johnnyxy changed the title [bug] [bug] QNX RANLIB not executed for built libraries Jun 12, 2019
@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
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

1 participant