conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
946 stars 1.72k forks source link

[package] boost/1.78.0: PCH error when building on GCC-11 #9699

Open jmarrec opened 2 years ago

jmarrec commented 2 years ago

When building on a M1 mac (arm64) with gcc-11 from homebrew (I realize this is not a common configuration right now), I get a build error due to many PCH issues

cc1plus: warning: /Users/julien/.conan/data/boost/1.78.0/_/_/build/27c3ed4565cd4a93ed54d7ad2e7e48b12fdd2986/boost/bin.v2/libs/math/build/drwn-11/rls/lnk-sttc/nm-on/thrd-mlt/vsblt-hdn/pch.gch: had text segment at different address [-Winvalid-pch]
cc1plus: error: one or more PCH files were found, but they were invalid

Package and Environment Details (include every applicable attribute)

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

[settings]
arch=armv8
arch_build=armv8
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=11
os=Macos
os_build=Macos
[options]
[build_requires]
[env]

Steps to reproduce (Include if Applicable)

Logs (Include/Attach if Applicable)

Click to expand log ``` Put your log output here ```
SSE4 commented 2 years ago

as a workaround, you may try to build with pch=off

jmarrec commented 2 years ago

I have to pass both pch=False and without_fiber=Trueoptions to work.