Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lang/guile30 build issue: lto support missing in ar/ranlib



Thomas Klausner <wiz%NetBSD.org@localhost> writes:

> On 10.99.2 after the load sections 2->4 change I see the following
> when building lang/guile30:
>
> ar: libguile_3.0_la-alist.o: plugin needed to handle lto object
> ranlib: .libs/libguile-3.0.a(libguile_3.0_la-alist.o): plugin needed to handle lto object
>   CCLD     guile
>
> and the resulting binary segfaults when run (which also happens during
> the build), backtrace below.
>
> Is there a flag to turn off lto, or can we please get ar/ranlib
> support for lto?
>
> To reproduce, just try building 'lang/guile30'.

It fails to even build on i386.  I have a local patch, pending figuring
it out, to just disable lto.  I was unsure if that belonged on only some
arches, but seems best to mass disable and theni figure it out.


Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/guile30/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- Makefile	26 Oct 2022 10:31:04 -0000	1.5
+++ Makefile	8 Jan 2023 17:37:16 -0000
@@ -23,6 +23,8 @@ LDFLAGS.SunOS+=		-lsocket -lnsl
 MAKE_ENV+=		PAXCTL=echo
 MAKE_ENV.NetBSD+=	PAXCTL=/usr/sbin/paxctl
 
+CONFIGURE_ARGS+=	--disable-lto
+
 .if !empty(GUILE_SUBDIR)
 # Installation prefix is non-default.
 GUILE_PREFIX=			${PREFIX}/${GUILE_SUBDIR}


Home | Main Index | Thread Index | Old Index