Print

Print


The riscv64 architecture supports 32 and 64 bit atomics, but not 8 and 16 bit atomics. The old test that only tested 64 bit succeeded, but then linking failed with missing symbols for untested versions.
```
/usr/bin/ld: libXrdServer.so.3.0.0: undefined reference to `__atomic_fetch_or_1'
/usr/bin/ld: libXrdServer.so.3.0.0: undefined reference to `__atomic_fetch_sub_1'
/usr/bin/ld: libXrdServer.so.3.0.0: undefined reference to `__atomic_fetch_and_1'
/usr/bin/ld: libXrdServer.so.3.0.0: undefined reference to `__atomic_fetch_add_1'
collect2: error: ld returned 1 exit status
```

You can view, comment on, or merge this pull request online at:

  https://github.com/xrootd/xrootd/pull/1505

-- Commit Summary --

  * Expand the atomics test to test for char (8 bit) versions in addition

-- File Changes --

    M cmake/XRootDSystemCheck.cmake (26)

-- Patch Links --

https://github.com/xrootd/xrootd/pull/1505.patch
https://github.com/xrootd/xrootd/pull/1505.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/pull/1505

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1