2019-08-24 02:35 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004941Spring engineLinuxpublic2016-01-22 03:26
Reporterapoleon 
Assigned Toabma 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionno change required 
Product Version100.0 
Target VersionFixed in Version 
Summary0004941: error: undefined reference to '__atomic_is_lock_free'
DescriptionHi,

one spring 100.0 test fails to build from source with GCC 5.2. The affected file is

test/engine/System/testThreadPool.cpp

Please find attached the full build log with the error message. The error is apparently caused by

std::atomic<int> cnt(0);
BOOST_CHECK(cnt.is_lock_free());

GCC 5.2 requires that -latomic must be added to the linker stage. However this might be a bug in GCC.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65913

Perhaps it won't hurt to add -latomic anyway?

Corresponding Debian bug report:

https://bugs.debian.org/797282
Steps To ReproduceCompile spring 100.0 tests with GCC 5.2 on Debian GNU/Linux amd64
TagsNo tags attached.
Checked infolog.txt for lua Errors
Attached Files

-Relationships
+Relationships

-Notes

~0015105

abma (administrator)

i'm a bit undecided about this. 5.2 is very new, imo we should wait for 5.2.1 as this seems clearly a gcc bug.

if its fixed there, everything is fine, if not a workarround makes sense.

~0015554

abma (administrator)

seems its fixed with gcc 5.3 at least
+Notes

-Issue History
Date Modified Username Field Change
2015-08-29 20:15 apoleon New Issue
2015-08-29 20:15 apoleon File Added: spring_100.0+dfsg-1_amd64.build.gz
2015-08-31 00:09 abma Note Added: 0015105
2015-08-31 00:09 abma Status new => feedback
2016-01-22 03:26 abma Note Added: 0015554
2016-01-22 03:26 abma Status feedback => resolved
2016-01-22 03:26 abma Resolution open => no change required
2016-01-22 03:26 abma Assigned To => abma
+Issue History