Bug 1305019
| Summary: | boost-build gcc.jam file no longer translates compile options such as O3 and -g for release and debug builds with the GCC/G++ toolset specifically (the default toolset) | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Matt <matt> |
| Component: | boost | Assignee: | Jonathan Wakely <jwakely> |
| Status: | CLOSED ERRATA | QA Contact: | Miloš Prchlík <mprchlik> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.4 | CC: | mcermak, mnewsome, mprchlik |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: |
Feature: The gcc.jam file installed by the boost-build package now defines useful default compilation options.
Reason: The Red Hat Enterprise Linux packaging system provides its own compilation options when building the Boost packages, but other programs built with Boost.Build may want to use the default options for the toolset.
Result: It should no longer be necessary to override build flags when compiling with Boost.Build's gcc toolset.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-04 06:33:02 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Matt
2016-02-05 10:52:25 UTC
Just worth noting a key element that make this case worth solving: This happens for the default "bjam release install" and "bjam debug install" build options on the most popular gcc and g++ compilers. That is, "bjam release install" is meant to turn inlining and optimizations on. Similarly "bjam debug install" is meant to turn debugging on. Neither works because of these missing entries in the gcc.jam file. In other words, this isn't an unusual task. The vast majority of folks running the boost build commands will not get the proper compiler options for a given variant such as the two most default entries common (debug and release). We had a production issue and were expecting line numbers in the core dump because we thought "-g" would have been passed through but it was not. Rather unfortunate bug when moving from RHEL6 to RHEL7. The flags are removed from gcc.jam as a result of the patch for https://bugzilla.redhat.com/show_bug.cgi?id=1070789 (see comment 2). If I understand correctly, that was done to ensure that the boost libraries themselves are built as intended for RHEL. I think the fact that the flags are also absent when you use that gcc.jam file to build your own software is unintentional, but I'm still investigating. Verified for build boost-1.53.0-26.el7. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-2442.html |