Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 594010 - dev-scheme/guile-2.0.12-r1 Fails to compile with internal compiler error: SSA corruption
Summary: dev-scheme/guile-2.0.12-r1 Fails to compile with internal compiler error: SSA...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Scheme Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-16 20:12 UTC by Gary Stein
Modified: 2016-09-21 18:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch found online that fixes SSA corruption (guile-2.0.12-workaround-ice-ssa-corruption.patch,2.05 KB, patch)
2016-09-16 20:14 UTC, Gary Stein
Details | Diff
Ebuild that includes the patch (guile-2.0.12-r2.ebuild,2.32 KB, text/plain)
2016-09-16 20:14 UTC, Gary Stein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Stein 2016-09-16 20:12:18 UTC
Recent upgrade of guile from 1.8.8-r2 to guile-2.0.12-r1 fails to compile, with an odd compiler error.  In the grand scheme of things running older gcc version 4.9.3.

the actual error:
make[3]: Entering directory '/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12/libguile'
/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H   -DBUILDING_LIBGUILE=1 -I.. -I.. -I../lib -I../lib -I/usr/lib64/libffi-3.2.1/include -I/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12  -pthread -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wswitch-enum -fno-strict-aliasing -fwrapv -fvisibility=hidden -Os -pipe -march=corei7-avx -c -o libguile_2.0_la-vm.lo `test -f 'vm.c' || echo './'`vm.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DBUILDING_LIBGUILE=1 -I.. -I.. -I../lib -I../lib -I/usr/lib64/libffi-3.2.1/include -I/var/tmp/portage/dev-scheme/guile-2.0.12-r1/work/guile-2.0.12 -pthread -Wall -Wmissing-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wswitch-enum -fno-strict-aliasing -fwrapv -fvisibility=hidden -Os -pipe -march=corei7-avx -c vm.c  -fPIC -DPIC -o .libs/libguile_2.0_la-vm.o

Unable to coalesce ssa_names 48 and 3288 which are marked as MUST COALESCE.
sp_48(ab) and  sp_3288(ab)
vm-engine.c: In function 'vm_debug_engine':
vm.c:666:19: internal compiler error: SSA corruption
 #define VM_NAME   vm_debug_engine
                   ^
vm-engine.c:39:1: note: in expansion of macro 'VM_NAME'
 VM_NAME (SCM vm, SCM program, SCM *argv, int nargs)
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
make[3]: *** [Makefile:3220: libguile_2.0_la-vm.lo] Error 1


[ebuild     U  ] dev-scheme/guile-2.0.12-r1:12/22::gentoo [1.8.8-r2:12/12::gentoo] USE="deprecated networking* nls regex threads -debug -debug-malloc (-debug-freelist%) (-discouraged%) (-emacs%) (-readline%*)" 0 KiB

Was able to fix with a patch I found online:
https://github.com/maximeh/buildroot/blob/master/package/guile/0004-workaround-ice-ssa-corruption.patch

Which looks fairly old, and is for ARM even though I'm on amd64, but the same error.  Hate to say it works for me, but hopefully it helps anyone else that has had this bug.


Reproducible: Always
Comment 1 Gary Stein 2016-09-16 20:14:03 UTC
Created attachment 446036 [details, diff]
Patch found online that fixes SSA corruption

Attaching Patch
Comment 2 Gary Stein 2016-09-16 20:14:33 UTC
Created attachment 446038 [details]
Ebuild that includes the patch
Comment 3 Amy Liffey gentoo-dev 2016-09-21 18:13:56 UTC
committer	Amy Winston <amynka@gentoo.org>	2016-09-21 18:01:45 (GMT)
commit	cdf949db050341aec29539c5fb926f60b7fcffad

dev-scheme/guile: add patch for bug #594010
Comment 4 Amy Liffey gentoo-dev 2016-09-21 18:14:14 UTC
(In reply to Amy Winston from comment #3)
> committer	Amy Winston <amynka@gentoo.org>	2016-09-21 18:01:45 (GMT)
> commit	cdf949db050341aec29539c5fb926f60b7fcffad
> 
> dev-scheme/guile: add patch for bug #594010

Thanks !