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

Re: guile-3.0: FTBFS on hppa - segmentation faults



Control: retitle -1 guile-3.0: Please include patch to fix FTBFS on 32-bit BE systems
Control: tags -1 +patch

Hello!

The attached patch fixes the problem for me. It was suggested by Efraim Flashner
in the corresponding upstream bug report [1].

It simply adds "-Oresolve-primitives -Ocps" to GUILE_OPTIMIZATIONS in bootstrap/
Makefile.am. I have tried coming up a with a solution to add these flags on hppa,
m68k and powerpc only but I couldn't find any suitable solution.

However, I would assume that passing these flags to the bootstrap build won't hurt
as the second stage is built with -O2 anyway and the above flags are not being used
in this case.

Could you include this patch or a possible better version in the next guile-3.0 upload?

Adrian

> [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45214

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
--- guile-3.0-3.0.7.orig/bootstrap/Makefile.am
+++ guile-3.0-3.0.7/bootstrap/Makefile.am
@@ -22,7 +22,7 @@
 
 
 GUILE_WARNINGS = -W0
-GUILE_OPTIMIZATIONS = -O1
+GUILE_OPTIMIZATIONS = -O1 -Oresolve-primitives -Ocps
 
 include $(top_srcdir)/am/bootstrap.am
 

Reply to: