RTEMS | m68k/uC5252: (#5217)

Joel Sherrill (@joel) gitlab at rtems.org
Sat Feb 15 22:27:42 UTC 2025



Joel Sherrill created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5217

Assignee: Sebastian Huber

## Summary
With GCC 14 on main, at least the uC5282 fails to link and reports that __atomic_test_and_set is not provided. RTEMS does not include this symbol on any platform. Looking in GCC, @sebhub added libatomic/config/rtems and hopefully knows what to tweak to get this resolved.

```
[3938/4617] Linking b-uC5282/m68k/uC5282/testsuites/sptests/spcxx01.exe
/home/joel/rtems-work/tools/7/lib/gcc/m68k-rtems7/14.2.0/../../../../m68k-rtems7/bin/ld: testsuites/sptests/spcxx01/init.cc.759.o: in function `std::atomic_flag::test_and_set(std::memory_order)':
/home/joel/rtems-work/tools/7/lib/gcc/m68k-rtems7/14.2.0/include/c++/bits/atomic_base.h:226:(.text.Init+0x19a): undefined reference to `__atomic_test_and_set'
collect2: error: ld returned 1 exit status
```


### Pre-set options

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5217
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250215/8f514c66/attachment.htm>


More information about the bugs mailing list