pkgsrc-Bugs archive

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

Re: pkg/53743: pkgsrc-2018Q3 lang/vala dumps core on NetBSD/earmv6hf 8.0



The following reply was made to PR pkg/53743; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: pkg/53743: pkgsrc-2018Q3 lang/vala dumps core on NetBSD/earmv6hf
	 8.0
Date: Sun, 23 Dec 2018 05:40:58 +0900

 > Disabling -O2 optimization by CFLAGS seems to work around
 
 Further boring bisect shows -fno-optimize-sibling-calls is enough
 to build working binaries on RPI3.
 
 I'll put it in hacks.mk as suggested.
 
 ---
 # $NetBSD$
 
 .if !defined(VALA_HACKS_MK)
 VALA_HACKS_MK=	defined
 
 .include "../../mk/compiler.mk"
 
 ### On NetBSD/earmv6ef 8.0 with gcc 5.5.0, vala binaries compiled with the
 ### default optiomization options produce segmentation faulting.
 ### Compiling with `-fno-optimize-sibling-calls' works around.
 ###
 .if !empty(MACHINE_PLATFORM:MNetBSD-*-*arm*) && !empty(CC_VERSION:Mgcc-5.*)
 PKG_HACKS+=	optimisation
 CFLAGS+=	-fno-optimize-sibling-calls
 .endif
 
 .endif	# VALA_HACKS_MK
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index