package/lxc: fix build with ultrasparc
PATCH 1/1 package/lxc: fix build with ultrasparc
Fixes:
- http://autobuild.buildroot.org/results/17c2319850f02f24da6fbef9656c07f86fdc5a3a
Signed-off-by Fabrice Fontaine <[email protected]>
--- ...xc-raw_syscalls.c-fix-sparc-assembly.patch | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 package/lxc/0003-src-lxc-raw_syscalls.c-fix-sparc-assembly.patch
package/lxc/0003-src-lxc-raw_syscalls.c-fix-sparc-assembly.patch new file +41 -0
@@ -0,0 +1,41 @@ +From 5f7dd076fe203ebe6992698b63a1856a98bc0bba Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine <[email protected]> +Date: Fri, 28 Feb 2020 17:35:42 +0100 +Subject: [PATCH] src/lxc/raw_syscalls.c: fix sparc assembly +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Build of lxc 3.2.1 fails with ultrasparc on: + +raw_syscalls.c: In function ?lxc_raw_clone?: +raw_syscalls.c:66:3: error: invalid 'asm': invalid operand output code + asm volatile( + ^~~ + +Issue has been added with commit +b52e8e68a61866da2af86e85905ec850f8a8b7fc which added %g1 instead of %%g1 + +Fixes: + - http://autobuild.buildroot.org/results/17c2319850f02f24da6fbef9656c07f86fdc5a3a + +Signed-off-by: Fabrice Fontaine <[email protected]> +[Retrieved from: +https://github.com/lxc/lxc/commit/5f7dd076fe203ebe6992698b63a1856a98bc0bba] +--- + src/lxc/raw_syscalls.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/lxc/raw_syscalls.c b/src/lxc/raw_syscalls.c +index 7ffb2584b8..bfa48c0348 100644 +--- a/src/lxc/raw_syscalls.c ++++ b/src/lxc/raw_syscalls.c +@@ -76,7 +76,7 @@ __returns_twice pid_t lxc_raw_clone(unsigned long flags, int *pidfd) + * processor status register (psr) is used instead of a + * full register. + */ +- "addx %%g0, 0, %g1" ++ "addx %%g0, 0, %%g1" + : "=r"(g1), "=r"(o0), "=r"(o1), "=r"(o2) /* outputs */ + : "r"(g1), "r"(o0), "r"(o1), "r"(o2) /* inputs */ + : "%cc"); /* clobbers */
Signature · 1 line
2.25.0
Yann E. MORIN
AppliedPATCH 1/1 package/lxc: fix build with ultrasparc
Fabrice, All,
On 2020-02-29 10:18 +0100, Fabrice Fontaine spake thusly:
Quoted 4 lines
Fixes:
- http://autobuild.buildroot.org/results/17c2319850f02f24da6fbef9656c07f86fdc5a3aSigned-off-by Fabrice Fontaine <[email protected]>
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 59 lines
--- ...xc-raw_syscalls.c-fix-sparc-assembly.patch | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 package/lxc/0003-src-lxc-raw_syscalls.c-fix-sparc-assembly.patchpackage/lxc/0003-src-lxc-raw_syscalls.c-fix-sparc-assembly.patch new file +41
-0@@ -0,0 +1,41 @@ +From 5f7dd076fe203ebe6992698b63a1856a98bc0bba Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine <[email protected]> +Date: Fri, 28 Feb 2020 17:35:42 +0100 +Subject: [PATCH] src/lxc/raw_syscalls.c: fix sparc assembly +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Build of lxc 3.2.1 fails with ultrasparc on: + +raw_syscalls.c: In function ?lxc_raw_clone?: +raw_syscalls.c:66:3: error: invalid 'asm': invalid operand output code + asm volatile( + ^~~ + +Issue has been added with commit +b52e8e68a61866da2af86e85905ec850f8a8b7fc which added %g1 instead of %%g1 + +Fixes: + - http://autobuild.buildroot.org/results/17c2319850f02f24da6fbef9656c07f86fdc5a3a + +Signed-off-by: Fabrice Fontaine <[email protected]> +[Retrieved from: +https://github.com/lxc/lxc/commit/5f7dd076fe203ebe6992698b63a1856a98bc0bba] +--- + src/lxc/raw_syscalls.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/lxc/raw_syscalls.c b/src/lxc/raw_syscalls.c +index 7ffb2584b8..bfa48c0348 100644 +--- a/src/lxc/raw_syscalls.c ++++ b/src/lxc/raw_syscalls.c +@@ -76,7 +76,7 @@ __returns_twice pid_t lxc_raw_clone(unsigned long flags, int *pidfd) + * processor status register (psr) is used instead of a + * full register. + */ +- "addx %%g0, 0, %g1" ++ "addx %%g0, 0, %%g1" + : "=r"(g1), "=r"(o0), "=r"(o1), "=r"(o2) /* outputs */ + : "r"(g1), "r"(o0), "r"(o1), "r"(o2) /* inputs */ + : "%cc"); /* clobbers */Signature · 6 lines
2.25.0 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/1 package/lxc: fix build with ultrasparc
In reply to Fabrice FontaineQuoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
Fixes:
- http://autobuild.buildroot.org/results/17c2319850f02f24da6fbef9656c07f86fdc5a3aSigned-off-by Fabrice Fontaine <[email protected]>
Committed to 2019.11.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard