Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Feb 2024 09:36:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 277291] machine/atomic.h on x86_64 build issue on a Linux's cross compiling context
Message-ID:  <bug-277291-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277291

            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: bugs@FreeBSD.org
          Reporter: devnexen@gmail.com

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 seem=
s),
we re blocked with the following :

```
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:214:1: err=
or:
invalid output constraint '=3D@cce' in asm
ATOMIC_CMPSET(char);
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:190:4: not=
e:
expanded from macro 'ATOMIC_CMPSET'
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:190:4: not=
e:
expanded from macro 'ATOMIC_CMPSET'
        : "=3D@cce" (res),                /* 0 */         \
          ^
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:214:1: err=
or:
invalid output constraint '=3D@cce' in asm
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:206:4: not=
e:
expanded from macro 'ATOMIC_CMPSET'
        : "=3D@cce" (res),                /* 0 */         \
          ^
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:215:1: err=
or:
invalid output constraint '=3D@cce' in asm
ATOMIC_CMPSET(short);
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:190:4: not=
e:
expanded from macro 'ATOMIC_CMPSET'
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:190:4: not=
e:
expanded from macro 'ATOMIC_CMPSET'
        : "=3D@cce" (res),                /* 0 */         \
          ^
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:215:1: err=
or:
invalid output constraint '=3D@cce' in asm
/usr/local/x86_64-unknown-freebsd13/usr/include/machine/atomic.h:206:4: not=
e:
expanded from macro 'ATOMIC_CMPSET'
        : "=3D@cce" (res),=20=20=20=20=20
```

same goes on with the other flavors for sure.

https://productionresultssa15.blob.core.windows.net/actions-results/9c52c8f=
5-ceaf-47b1-be2f-a881fa0dfdfd/workflow-job-run-6b331a53-14f3-55fe-965a-00d6=
199df180/logs/job/job-logs.txt?rsct=3Dtext%2Fplain&se=3D2024-02-25T09%3A45%=
3A13Z&sig=3DCcYklcQ0WJT1U%2BCI86fIm0YWh%2BjveVOcqnwmHG2xpBM%3D&sp=3Dr&spr=
=3Dhttps&sr=3Db&st=3D2024-02-25T09%3A35%3A08Z&sv=3D2021-12-02

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277291-227>