On Sat, November 28, 2020 14:00, v...@openbsd.org wrote:
> bulk build on octeon.ports.openbsd.org started on  Sun Nov 22 13:59:35 UTC 
> 2020 finished at Fri Nov 27 09:18:46 UTC
> 2020
> lasted 05D19h19m done with kern.version=OpenBSD 6.8-current (GENERIC.MP) 
> #384: Fri Nov 20 18:35:29 MST 2020
>
> built packages:8614 Nov 22:2424
> Nov 23:962
> Nov 24:689
> Nov 25:673
> Nov 26:1082
> Nov 27:2783
>
>
I'm not sure about the cause of the error, although it would be nice
to know. I hope this diff will be a good work-around.

Can't test, don't have mips64

Index: Makefile
===================================================================
RCS file: /cvs/ports/math/lrs/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- Makefile    21 Nov 2020 14:13:06 -0000      1.8
+++ Makefile    28 Nov 2020 13:52:32 -0000
@@ -3,7 +3,7 @@
 COMMENT =              solve vertex enumeration and convex hull problems

 V =                    071a
-REVISION =             0
+REVISION =             1
 DISTNAME =             lrslib-${V}
 PKGNAME =              lrs-${V}
 FIX_EXTRACT_PERMISSIONS=Yes
Index: patches/patch-makefile
===================================================================
RCS file: /cvs/ports/math/lrs/patches/patch-makefile,v
retrieving revision 1.3
diff -u -p -r1.3 patch-makefile
--- patches/patch-makefile      21 Nov 2020 14:13:06 -0000      1.3
+++ patches/patch-makefile      28 Nov 2020 13:52:32 -0000
@@ -101,7 +101,7 @@ Index: makefile

  ${SHLIB}: ${SHLIBOBJ}
 -      $(CC) -shared -Wl,-soname=$(SONAME) $(SHLIBFLAGS) -o $@ ${SHLIBOBJ} 
-lgmp
-+      $(CC) -shared -Wl,-soname=${SHLIB} $(SHLIBFLAGS) -o $@ ${SHLIBOBJ} 
-L${LIBDIR} -lgmp
++      $(CC) -shared -Wl,-soname=${SHLIB},-rpath=${LIBDIR} $(SHLIBFLAGS) -o $@ 
${SHLIBOBJ} -L${LIBDIR} -lgmp

  ${SONAME}: ${SHLIB}
        ln -sf ${SHLIB} ${SONAME}

> http://build-failures.rhaalovely.net/mips64/2020-11-22/math/lrs.log
>
>
> cc lrs.o -o lrs-shared -L . -llrs ./liblrs.so.0.0: warning: sprintf() is 
> often misused, please use snprintf()
> ./liblrs.so.0.0: warning: strcat() is almost always misused, please use 
> strlcat()
> ./liblrs.so.0.0: warning: strcpy() is almost always misused, please use 
> strlcpy()
> ./liblrs.so.0.0: warning: random() may return deterministic values, is that 
> what you want?
> /usr/bin/ld: warning: libgmp.so.11.0, needed by ./liblrs.so.0.0, not found 
> (try using -rpath or -rpath-link)
> ./liblrs.so.0.0: undefined reference to `__gmpz_set_si'
> ./liblrs.so.0.0: undefined reference to `__gmpz_clear'
> ./liblrs.so.0.0: undefined reference to `__gmpz_mul_ui'
> ./liblrs.so.0.0: undefined reference to `__gmpz_divexact'
> ./liblrs.so.0.0: undefined reference to `__gmpz_set'
> ./liblrs.so.0.0: undefined reference to `__gmpz_cmp'
> ./liblrs.so.0.0: undefined reference to `__gmpz_gcd'
> ./liblrs.so.0.0: undefined reference to `__gmpz_mul'
> ./liblrs.so.0.0: undefined reference to `__gmpz_cmp_ui'
> ./liblrs.so.0.0: undefined reference to `__gmpz_init'
> ./liblrs.so.0.0: undefined reference to `__gmpz_get_d'
> ./liblrs.so.0.0: undefined reference to `__gmpz_fac_ui'
> ./liblrs.so.0.0: undefined reference to `__gmpz_add'
> ./liblrs.so.0.0: undefined reference to `__gmpz_get_str'
> ./liblrs.so.0.0: undefined reference to `__gmpz_out_str'
> ./liblrs.so.0.0: undefined reference to `__gmpz_sub'
> cc: error: linker command failed with exit code 1 (use -v to see invocation)
> gmake: *** [makefile:210: lrs-shared] Error 1
> *** Error 2 in math/lrs (/ports/infrastructure/mk/bsd.port.mk:2925 
> '/pobj/lrs-071a/.build_done': @cd
> /pobj/lrs-071a/lrslib-071a && exec  /us...)
> *** Error 2 in math/lrs (/ports/infrastructure/mk/bsd.port.mk:2584 'build': 
> @lock=lrs-071ap0;  export _LOCKS_HELD="
> lrs-071ap0";   /usr/bin/...) ===> Exiting math/lrs with an error
> *** Error 1 in /ports (infrastructure/mk/bsd.port.subdir.mk:137 'build': @: 
> ${echo_msg:=echo};  : ${target:=build};
> for i in ; do  eval ${e...)
>>>> Ended at 1606087703.12
>>>>
> Error: job failed with 512 on localhost at 1606087703
>
>

Attachment: lrs-diff
Description: Binary data

Reply via email to