Opened 13 years ago

Closed 13 years ago

#30555 closed defect (fixed)

GHC build error: LLVM cannot handle register variable ‘R1’

Reported by: dmm@… Owned by: gwright@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc: zdw (Zack Williams), Feuermurmel (Michael Schwarz)
Port: ghc

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Can't build GHC under MacPorts 2.0.1, gives this error.

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/ghc-6.10.4/ghc/stage1-inplace/ghc -optc-O -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-I../includes -optc-I. -optc-Iparallel -optc-Ism -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -optc-I/opt/local/include -optc-I../gmp/gmpbuild -optc-I../libffi/build/include -optc-fno-strict-aliasing  -H32m -O -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ghc/ghc/work/ghc-6.10.4/libffi -I/opt/local/include -L/opt/local/lib -optc-O2 -I../includes -I. -Iparallel -Ism -DCOMPILING_RTS -package-name rts -static  -I/opt/local/include -I../gmp/gmpbuild -I../libffi/build/include -I. -optc-fno-stack-protector -dcmm-lint     -c Task.c -o Task.o
:info:build In file included from ../includes/Stg.h:206,
:info:build 
:info:build                  from StgCRun.c:71:0: 
:info:build 
:info:build ../includes/Regs.h:217:0:
:info:build      sorry, unimplemented: LLVM cannot handle register variable ‘R1’, report a bug
:info:build make[1]: *** [StgCRun.o] Error 1

OS Mac OS 10.6.8, Xcode 4.0.2

Attachments (1)

main.log (84.8 KB) - added by dmm@… 13 years ago.
compile error log

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by dmm@…

Attachment: main.log added

compile error log

comment:1 Changed 13 years ago by zdw (Zack Williams)

Cc: zdw@… added

Cc Me!

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to gwright@…

Use WikiFormatting please and preview before submitting, and Cc the port's maintainer.

comment:3 Changed 13 years ago by Feuermurmel (Michael Schwarz)

Cc: michi.schwarz@… added

Cc Me!

comment:4 Changed 13 years ago by mkb-prime@…

Fix for this might be similar to that for ticket:30012

comment:5 Changed 13 years ago by burkhard@…

Adding

configure.compiler gcc-4.2

to the 'platform darwin 10' section seems to fix/work around the problem.

Diff would be

--- Portfile.orig       2011-10-12 13:57:11.000000000 -0600
+++ Portfile    2011-10-12 13:58:15.000000000 -0600
@@ -274,6 +274,8 @@
                        return -code error "Unrecognized build architecture on Snow Leopard"
                }
 
+                configure.compiler      gcc-4.2
+
                patchfiles-append       patch-snowleopard-compiler-cmm-CLabel.hs.diff           \
                                        patch-snowleopard-compiler-main-DynFlags.hs.diff        \
                                        patch-snowleopard-ghc-ghc-bin.cabal.in.diff             \

comment:6 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.