Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jul 2019 19:15:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 238915] sysutils/busybox: Update to 1.30.1
Message-ID:  <bug-238915-7788-Lte49HN28c@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-238915-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-238915-7788@https.bugs.freebsd.org/bugzilla/>

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

Fernando Apestegu=C3=ADa <fernape@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fernape@FreeBSD.org

--- Comment #3 from Fernando Apestegu=C3=ADa <fernape@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} =3D=3D "i386"
+USE_GCC=3D       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=3D10365

--=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-238915-7788-Lte49HN28c>