https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277291
Bug ID: 277291
Summary: machine/atomic.h on x86_64 build issue on a Linux's
cross compiling context
Product: Base System
Version: 13.2-STABLE
Hardware: amd64
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
on rust, we try to upgrade the freebsd version for CI to 13.2 (actually 12.3)
but because of "invalid" assembly (from a cross compile perspective it seems),
we re blocked with the following :
```
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:214:1: error:
invalid output constraint '=@cce' in asm
ATOMIC_CMPSET(char);
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:190:4: note:
expanded from macro 'ATOMIC_CMPSET'
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:190:4: note:
expanded from macro 'ATOMIC_CMPSET'
: "=@cce" (res), /* 0 */ \
^
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:214:1: error:
invalid output constraint '=@cce' in asm
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:206:4: note:
expanded from macro 'ATOMIC_CMPSET'
: "=@cce" (res), /* 0 */ \
^
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:215:1: error:
invalid output constraint '=@cce' in asm
ATOMIC_CMPSET(short);
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:190:4: note:
expanded from macro 'ATOMIC_CMPSET'
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:190:4: note:
expanded from macro 'ATOMIC_CMPSET'
: "=@cce" (res), /* 0 */ \
^
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:215:1: error:
invalid output constraint '=@cce' in asm
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:206:4: note:
expanded from macro 'ATOMIC_CMPSET'
: "=@cce" (res),
```
same goes on with the other flavors for sure.
https://productionresultssa15.blob.core.windows.net/actions-results/9c52c8f5-ceaf-47b1-be2f-a881fa0dfdfd/workflow-job-run-6b331a53-14f3-55fe-965a-00d6199df180/logs/job/job-logs.txt?rsct=text%2Fplain&se=2024-02-25T09%3A45%3A13Z&sig=CcYklcQ0WJT1U%2BCI86fIm0YWh%2BjveVOcqnwmHG2xpBM%3D&sp=r&spr=https&sr=b&st=2024-02-25T09%3A35%3A08Z&sv=2021-12-02
--
You are receiving this mail because:
You are the assignee for the bug.