boostorg / boostorg/build

Outdated Sparc processor list breaks atomic operations on Niagara processors

オープン
#338 コメント 3 件 リアクション 0 件 担当者 1 名 @grafikrobot が担当を希望しています GitHub で見る
bug transition
主要言語
C++
スター
251
フォーク
63
PR マージ指標
30日以内にマージされた PR はありません

説明

See downstream bug with logs: https://bugs.gentoo.org/646234

The code tries to autodetect the processor architecture, and overrides (!) the CXXFLAGS by the user by appending the result of the autodetection. Sadly this does not know about anything newer than ultrasparc3 (gcc knows about -mcpu=niagara since 4.2). For all unknown processors it forces a fallback to v7, which is unnecessary since it's the compiler default if no architecture is passed, and it is extremely old and does not know about atomic operations on anything larger than single bytes. And to make it worse it doesn't link to libatomic then.

My suggestion is to entirely drop that code and just let the user pass what is deemed appropiate. This especially makes it much easier if I want to build a package for a machine that does not match the current type.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。