[Bug 238915] sysutils/busybox: Update to 1.30.1
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Jul 12 19:15:10 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238915
Fernando Apesteguía <fernape at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fernape at FreeBSD.org
--- Comment #3 from Fernando Apesteguía <fernape at FreeBSD.org> ---
Hi Samm,
Thanks for the patch.
The port doesn't build in i386 systems due to this error:
include/platform.h:125:47: note: expanded from macro 'FAST_FUNC'
# define FAST_FUNC __attribute__((regparm(3),stdcall))
^
networking/tls_pstm_montgomery_reduce.c:385:4: error: unknown register name
'%cc' in asm
INNERMUL;
^
networking/tls_pstm_montgomery_reduce.c:76:19: note: expanded from macro
'INNERMUL'
: "%eax", "%edx", "%cc")
^
networking/tls_pstm_montgomery_reduce.c:390:4: error: unknown register name
'%cc' in asm
PROPCARRY;
^
networking/tls_pstm_montgomery_reduce.c:85:11: note: expanded from macro
'PROPCARRY'
: "%eax", "%cc")
^
11 warnings and 2 errors generated.
gmake[2]: *** [scripts/Makefile.build:198:
networking/tls_pstm_montgomery_reduce.o] Error 1
gmake[1]: *** [Makefile:743: networking] Error 2
gmake[1]: Leaving directory
'/wrkdirs/usr/ports/sysutils/busybox/work/busybox-1.30.1'
*** Error code 1
I fixed it quick and dirty by replacing %cc with cc[1] just to face another
error of the type "inline assembly requires more registers than available". It
seems that assembler code outsmarts clang and the compiler chokes.
However GCC builds the port fine so I added this on top of your patch:
+.if ${ARCH} == "i386"
+USE_GCC= yes
+.endif
I did some light testing (ls, mkdir, rmdir, wc...). Would you mind to test it
yourself?
Thanks in advance.
[1] https://bugs.llvm.org/show_bug.cgi?id=10365
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list