Bug 13598 - boost fails to compile for x86-64-x32
Summary: boost fails to compile for x86-64-x32
Status: CLOSED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-intel (show other bugs)
Version: unspecified
Hardware: x86 other
: Medium+ normal
Target Milestone: 2.7.4
Assignee: akuster
QA Contact:
URL:
Whiteboard: BACKPORT
Depends on:
Blocks:
 
Reported: 2019-10-17 09:08 UTC by mabnhdev
Modified: 2020-04-09 14:12 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Full log of boost do_compile. (38.65 KB, application/octet-stream)
2019-10-17 09:08 UTC, mabnhdev
no flags Details
Bash script to repro the issue (693 bytes, text/x-sh)
2019-10-17 09:11 UTC, mabnhdev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description mabnhdev 2019-10-17 09:08:10 UTC
Created attachment 4582 [details]
Full log of boost do_compile.

On Warrior
MACHINE = "intel-corei7-64"
DEFAULTTUNE = "x86-64-x32"

The boost recipe fails to compile.

The following is the typical error.

| /home/mabnhdev/boost-x32-issue/boost-x32-issue-repro-work/build/tmp/work/x86_64_x32-poky-linux-gnux32/boost/1.69.0-r0/recipe-sysroot/usr/include/bits/long-double.h:44:10: fatal error: bits/long-double-64.h: No such file or directory
|  #include <bits/long-double-64.h>
|           ^~~~~~~~~~~~~~~~~~~~~~~
| compilation terminated.


I've enclosed the full log.
Comment 1 mabnhdev 2019-10-17 09:11:27 UTC
Created attachment 4583 [details]
Bash script to repro the issue

I've attached a simple bash script that will reproduce this issue.
Comment 2 mabnhdev 2019-10-17 12:13:07 UTC
If I hack around the missing bits/long-double-64.h issue, I hit another issue.

| 
| In file included from ./boost/random/detail/integer_log2.hpp:19,
|                  from ./boost/random/detail/large_arithmetic.hpp:19,
|                  from ./boost/random/detail/const_mod.hpp:23,
|                  from ./boost/random/detail/seed_impl.hpp:26,
|                  from ./boost/random/linear_feedback_shift.hpp:27,
|                  from ./boost/random/taus88.hpp:18,
|                  from libs/log/src/core.cpp:30:
| ./boost/pending/integer_log2.hpp:7:59: note: #pragma message: This header is deprecated. Use <boost/integer/integer_log2.hpp> instead.
|  BOOST_HEADER_DEPRECATED("<boost/integer/integer_log2.hpp>");
|                                                            ^
Comment 3 Randy MacLeod 2019-10-17 14:43:45 UTC
It would be good to add more tests on the autobuilder.
Comment 4 mabnhdev 2019-11-06 15:45:25 UTC
The issue is the same in Zeus.

To repro in Zeus, just modify the Repro script I supplied.

sed -i 's/warrior/zeus/' <script>
Comment 5 Anuj Mittal 2019-11-14 04:19:17 UTC
Looks like we dropped the patch to fix compiler flags when doing an upgrade. Patch sent to list.
Comment 6 Anuj Mittal 2019-12-04 04:04:26 UTC
This was merged in zeus and master.

Armin, can you please merge this in warrior as well?
Comment 7 Anuj Mittal 2020-01-07 05:50:52 UTC
Backport needed to warrior too.
Comment 8 akuster 2020-01-07 15:38:34 UTC
(In reply to comment #5)
> Looks like we dropped the patch to fix compiler flags when doing an upgrade.
> Patch sent to list.

is there a reference to the patch?
Comment 9 Armin Kuster 2020-02-03 00:40:30 UTC
(In reply to comment #8)
> (In reply to comment #5)
> > Looks like we dropped the patch to fix compiler flags when doing an upgrade.
> > Patch sent to list.
> 
> is there a reference to the patch?

https://git.openembedded.org/openembedded-core/commit/meta/recipes-support/boost?h=zeus&id=ebbfe23acfbc820ad7b71c95539b5af97a8be49d

requires fix to align with version in warrior.  This is new work.
Comment 12 Armin Kuster 2020-04-09 14:12:38 UTC
closing