On Thu, Aug 18 2022, Omar Polo <o...@openbsd.org> wrote: > On 2022/08/18 14:35:22 +0000, Visa Hankala <v...@hankala.org> wrote: >> On Thu, Aug 18, 2022 at 11:31:19AM +0200, Omar Polo wrote: >> > On 2022/08/17 13:30:22 +0000, v...@openbsd.org wrote: >> > > http://build-failures.rhaalovely.net/mips64/2022-08-09/lang/guile3.log >> > >> > : configure: error: cannot compute sizeof (int) >> > >> > that's a new one to me :) >> > >> > There are several other strange-looking things in the output of the >> > configure, for example: >> > >> > : checking whether rmdir works... no >> > : checking whether dup2 works... no >> > : checking for mbtowc... no >> > : checking for dlopen... no >> > >> > do you still have the config.log file around in ${WRKSRC}? Would like >> > to take a look as this is puzzling and otherwise I don't have a clue >> > about what is going wrong. >> >> configure:54462: checking size of int >> configure:54468: cc -std=gnu11 -o conftest -O2 -pipe -flto >> -I/usr/local/include -L/usr/local/lib conftest.c >&5 >> /tmp/conftest-8c39ee.o: file not recognized: File format not recognized >> cc: error: linker command failed with exit code 1 (use -v to see invocation) >> >> It is the -flto option that causes the trouble. ld.bfd does not work >> with it. > > Ah, I see! This explains it, thanks! > > Something like this should at least pass the configure phase then: > > ? build
I don't think you need to bump REVISION but LGTM, ok jca@ fwiw > Index: Makefile > =================================================================== > RCS file: /cvs/ports/lang/guile3/Makefile,v > retrieving revision 1.2 > diff -u -p -r1.2 Makefile > --- Makefile 31 Jul 2022 09:14:31 -0000 1.2 > +++ Makefile 18 Aug 2022 15:05:19 -0000 > @@ -6,7 +6,7 @@ COMMENT= GNU's Ubiquitous Intelligent La > VERSION= 3.0.8 > DISTNAME= guile-${VERSION} > PKGNAME= guile3-${VERSION} > -REVISION= 0 > +REVISION= 1 > V= ${VERSION:R} > SUBST_VARS= V > > @@ -43,6 +43,11 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/ > LDFLAGS="-L${LOCALBASE}/lib" > CONFIGURE_ARGS= --enable-jit=no \ > --program-suffix=${V} > + > +.include <bsd.port.arch.mk> > +.if !${PROPERTIES:Mlld} > +CONFIGURE_ARGS+=--disable-lto > +.endif > > post-install: > install -d ${PREFIX}/share/guile/site/${V}/ > -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE