Summary: | dev-lang/ghc-6.6.1 up to dev-lang/ghc-6.12.3 doesn't compile: lexical error (LANGUAGE=es) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jesús Guerrero Botella (RETIRED) <i92guboj> |
Component: | [OLD] Development | Assignee: | Gentoo's Haskell Language team <haskell> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | coldwind, slyfox |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
URL: | http://hackage.haskell.org/trac/ghc/ticket/4207 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jesús Guerrero Botella (RETIRED)
2007-12-14 03:15:34 UTC
Try LC_ALL=C emerge ghc :) (In reply to comment #1) > Try LC_ALL=C emerge ghc :) > After googling and looking at various forums for around 3 hours I found a similar advise. Recompiling right now, by 5th or 6th time, I can't remember :P In a couple of hours I will know if it worked or not. Thanks for the response. I'll report whatever back :) (In reply to comment #2) > (In reply to comment #1) > > Try LC_ALL=C emerge ghc :) > > > > After googling and looking at various forums for around 3 hours I found a > similar advise. Recompiling right now, by 5th or 6th time, I can't remember :P > > In a couple of hours I will know if it worked or not. > > Thanks for the response. I'll report whatever back :) > It works. Thanks again. > > > Try LC_ALL=C emerge ghc :) ... > It works. Thanks again. What locale did you use to achieve reported breakage? (In reply to comment #4) > > > > Try LC_ALL=C emerge ghc :) > ... > > It works. Thanks again. > > What locale did you use to achieve reported breakage? > It's been quite some time since that post, I don't even use ghc any longer. However I haven't changed the locale settings, for what I can remember. So I guess that they were the same that I have right now: LANG=es_ES.utf8 LC_CTYPE="es_ES.utf8" LC_NUMERIC="es_ES.utf8" LC_TIME="es_ES.utf8" LC_COLLATE="es_ES.utf8" LC_MONETARY="es_ES.utf8" LC_MESSAGES="es_ES.utf8" LC_PAPER="es_ES.utf8" LC_NAME="es_ES.utf8" LC_ADDRESS="es_ES.utf8" LC_TELEPHONE="es_ES.utf8" LC_MEASUREMENT="es_ES.utf8" LC_IDENTIFICATION="es_ES.utf8" LC_ALL=es_ES.utf8 Same issue (lexical error) with 6.8.2-r1 version. Also # LC_ALL=C emerge ghc installs ok the package. My locales: LANG=es_ES.UTF-8 LC_CTYPE="es_ES.UTF-8" LC_NUMERIC="es_ES.UTF-8" LC_TIME="es_ES.UTF-8" LC_COLLATE="es_ES.UTF-8" LC_MONETARY="es_ES.UTF-8" LC_MESSAGES="es_ES.UTF-8" LC_PAPER="es_ES.UTF-8" LC_NAME="es_ES.UTF-8" LC_ADDRESS="es_ES.UTF-8" LC_TELEPHONE="es_ES.UTF-8" LC_MEASUREMENT="es_ES.UTF-8" LC_IDENTIFICATION="es_ES.UTF-8" LC_ALL=es_ES.UTF-8 The error: -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../gmp/gmpbuild -optc-fno-strict-aliasing -H16m -O -optc-march=core2 -opta-march=core2 -opta-Wa,--noexecstack -w -optc-O2 -package-name rts -static -I../gmp/gmpbuild -I. -#include HCIncludes.h -dcmm-lint -c sm/GCUtils.c -o sm/GCUtils.o ../compiler/ghc-inplace -optc-O -optc-march=core2 -optc-O2 -optc-pipe -optc-Wa,--noexecstack -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../gmp/gmpbuild -optc-fno-strict-aliasing -H16m -O -optc-march=core2 -opta-march=core2 -opta-Wa,--noexecstack -w -optc-O2 -package-name rts -static -I../gmp/gmpbuild -I. -#include HCIncludes.h -dcmm-lint -c sm/MBlock.c -o sm/MBlock.o ../compiler/ghc-inplace -optc-O -optc-march=core2 -optc-O2 -optc-pipe -optc-Wa,--noexecstack -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../gmp/gmpbuild -optc-fno-strict-aliasing -H16m -O -optc-march=core2 -opta-march=core2 -opta-Wa,--noexecstack -w -optc-O2 -package-name rts -static -I../gmp/gmpbuild -I. -#include HCIncludes.h -dcmm-lint -c sm/MarkWeak.c -o sm/MarkWeak.o sm/Evac.c: En la función ‘evacuate’: sm/Evac.c:198:0: aviso: falló la inclusión en línea en la llamada a ‘copy’: call is unlikely and code size would grow sm/Evac.c:452:0: aviso: llamado desde aquí sm/Evac.c:97:0: aviso: falló la inclusión en línea en la llamada a ‘copy_noscav_tag’: call is unlikely and code size would grow sm/Evac.c:471:0: aviso: llamado desde aquí sm/Evac.c:43:0: aviso: falló la inclusión en línea en la llamada a ‘copy_tag’: call is unlikely and code size would grow sm/Evac.c:477:0: aviso: llamado desde aquí sm/Evac.c:198:0: aviso: falló la inclusión en línea en la llamada a ‘copy’: call is unlikely and code size would grow sm/Evac.c:481:0: aviso: llamado desde aquí sm/Evac.c:198:0: aviso: falló la inclusión en línea en la llamada a ‘copy’: call is unlikely and code size would grow sm/Evac.c:493:0: aviso: llamado desde aquí sm/Evac.c:43:0: aviso: falló la inclusión en línea en la llamada a ‘copy_tag’: call is unlikely and code size would grow sm/Evac.c:500:0: aviso: llamado desde aquí sm/Evac.c:97:0: aviso: falló la inclusión en línea en la llamada a ‘copy_noscav_tag’: call is unlikely and code size would grow sm/Evac.c:503:0: aviso: llamado desde aquí sm/Evac.c:198:0: aviso: falló la inclusión en línea en la llamada a ‘copy’: call is unlikely and code size would grow sm/Evac.c:506:0: aviso: llamado desde aquí sm/Evac.c:43:0: aviso: falló la inclusión en línea en la llamada a ‘copy_tag’: call is unlikely and code size would grow sm/Evac.c:514:0: aviso: llamado desde aquí sm/Evac.c:198:0: aviso: falló la inclusión en línea en la llamada a ‘copy’: call is unlikely and code size would grow sm/Evac.c:517:0: aviso: llamado desde aquí sm/Evac.c:198:0: aviso: falló la inclusión en línea en la llamada a ‘copy’: call is unlikely and code size would grow sm/Evac.c:531:0: aviso: llamado desde aquí sm/Evac.c:198:0: aviso: falló la inclusión en línea en la llamada a ‘copy’: call is unlikely and code size would grow sm/Evac.c:541:0: aviso: llamado desde aquí sm/Evac.c:198:0: aviso: falló la inclusión en línea en la llamada a ‘copy’: call is unlikely and code size would grow sm/Evac.c:593:0: aviso: llamado desde aquí sm/Evac.c:198:0: aviso: falló la inclusión en línea en la llamada a ‘copy’: call is unlikely and code size would grow sm/Evac.c:596:0: aviso: llamado desde aquí sm/Evac.c:198:0: aviso: falló la inclusión en línea en la llamada a ‘copy’: call is unlikely and code size would grow sm/Evac.c:599:0: aviso: llamado desde aquí sm/Evac.c:97:0: aviso: falló la inclusión en línea en la llamada a ‘copy_noscav_tag’: call is unlikely and code size would grow sm/Evac.c:205:0: aviso: llamado desde aquí sm/Evac.c:198:0: aviso: falló la inclusión en línea en la llamada a ‘copy’: call is unlikely and code size would grow sm/Evac.c:636:0: aviso: llamado desde aquí sm/Evac.c:198:0: aviso: falló la inclusión en línea en la llamada a ‘copy’: call is unlikely and code size would grow sm/Evac.c:670:0: aviso: llamado desde aquí sm/Evac.c:198:0: aviso: falló la inclusión en línea en la llamada a ‘copy’: call is unlikely and code size would grow sm/Evac.c:673:0: aviso: llamado desde aquí sm/Evac.c:198:0: aviso: falló la inclusión en línea en la llamada a ‘copy’: call is unlikely and code size would grow sm/Evac.c:676:0: aviso: llamado desde aquí sm/Evac.c:198:0: aviso: falló la inclusión en línea en la llamada a ‘copy’: call is unlikely and code size would grow sm/Evac.c:679:0: aviso: llamado desde aquí sm/Evac.c:198:0: aviso: falló la inclusión en línea en la llamada a ‘copy’: call is unlikely and code size would grow sm/Evac.c:682:0: aviso: llamado desde aquí sm/Evac.c:198:0: aviso: falló la inclusión en línea en la llamada a ‘copy’: call is unlikely and code size would grow sm/Evac.c:685:0: aviso: llamado desde aquí ../compiler/ghc-inplace -optc-O -optc-march=core2 -optc-O2 -optc-pipe -optc-Wa,--noexecstack -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../gmp/gmpbuild -optc-fno-strict-aliasing -H16m -O -optc-march=core2 -opta-march=core2 -opta-Wa,--noexecstack -w -optc-O2 -package-name rts -static -I../gmp/gmpbuild -I. -#include HCIncludes.h -dcmm-lint -c sm/Scav.c -o sm/Scav.o ../compiler/ghc-inplace -optc-O -optc-march=core2 -optc-O2 -optc-pipe -optc-Wa,--noexecstack -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../gmp/gmpbuild -optc-fno-strict-aliasing -H16m -O -optc-march=core2 -opta-march=core2 -opta-Wa,--noexecstack -w -optc-O2 -package-name rts -static -I../gmp/gmpbuild -I. -#include HCIncludes.h -dcmm-lint -c sm/Storage.c -o sm/Storage.o ../compiler/ghc-inplace -H16m -O -optc-march=core2 -opta-march=core2 -opta-Wa,--noexecstack -w -optc-O2 -package-name rts -static -I../gmp/gmpbuild -I. -#include HCIncludes.h -dcmm-lint -c Apply.cmm -o Apply.o <interno>:0:1: lexical error make[1]: *** [Apply.o] Error 1 make[1]: *** Se espera a que terminen otras tareas.... sm/Scav.c: En la función ‘scavenge_mark_stack’: sm/Scav.c:66:0: aviso: falló la inclusión en línea en la llamada a ‘scavenge_srt’: call is unlikely and code size would grow sm/Scav.c:123:0: aviso: llamado desde aquí sm/Scav.c:66:0: aviso: falló la inclusión en línea en la llamada a ‘scavenge_srt’: call is unlikely and code size would grow sm/Scav.c:112:0: aviso: llamado desde aquí sm/Scav.c:66:0: aviso: falló la inclusión en línea en la llamada a ‘scavenge_srt’: call is unlikely and code size would grow sm/Scav.c:123:0: aviso: llamado desde aquí sm/Scav.c:66:0: aviso: falló la inclusión en línea en la llamada a ‘scavenge_srt’: call is unlikely and code size would grow sm/Scav.c:112:0: aviso: llamado desde aquí sm/Scav.c:66:0: aviso: falló la inclusión en línea en la llamada a ‘scavenge_srt’: call is unlikely and code size would grow sm/Scav.c:123:0: aviso: llamado desde aquí sm/Scav.c:66:0: aviso: falló la inclusión en línea en la llamada a ‘scavenge_srt’: call is unlikely and code size would grow sm/Scav.c:112:0: aviso: llamado desde aquí make: *** [stage1] Error 1 * * ERROR: dev-lang/ghc-6.8.2-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3437: Called die * The specific snippet of code: * emake all || die "make failed" * The die message: * make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-lang/ghc-6.8.2-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ghc-6.8.2-r1/temp/environment'. * >>> Failed to emerge dev-lang/ghc-6.8.2-r1, Log file: >>> '/var/tmp/portage/dev-lang/ghc-6.8.2-r1/temp/build.log' * Messages for package dev-lang/ghc-6.8.2-r1: * * ERROR: dev-lang/ghc-6.8.2-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 3437: Called die * The specific snippet of code: * emake all || die "make failed" * The die message: * make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-lang/ghc-6.8.2-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ghc-6.8.2-r1/temp/environment'. * localhost distfiles # Yay! I have managed to reproduce it for 6.8.2-r1 too (needs LANGUAGE as well here): LANGUAGE=es LC_ALL=es_ES.UTF-8 PORTAGE_TMPDIR="$(pwd)/tmp" ebuild ghc-6.8.2-r1.ebuild clean compile ... ../compiler/ghc-inplace -optc-O -optc-O2 -optc-pipe -optc-Wa,--noexecstack -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../gmp/gmpbuild -optc-fno-strict-aliasing -H16m -O -opta-Wa,--noexecstack -w -optc-O2 -package-name rts -static -I../gmp/gmpbuild -I. -#include HCIncludes.h -dcmm-lint -c sm/Storage.c -o sm/Storage.o ../compiler/ghc-inplace -H16m -O -opta-Wa,--noexecstack -w -optc-O2 -package-name rts -static -I../gmp/gmpbuild -I. -#include HCIncludes.h -dcmm-lint -c Apply.cmm -o Apply.o <interno>:0:1: lexical error make[1]: *** [Apply.o] Error 1 make[1]: *** Se espera a que terminen otras tareas.... make: *** [stage1] Error 1 And the same holds for 6.12.3: "inplace/bin/ghc-stage1" -H64m -O0 -fasm -w -package-name integer-gmp-0.2.0.1 -hide-all-packages -i -ilibraries/integer-gmp/. -ilibraries/integer-gmp/dist-install/build -ilibraries/integer-gmp/dist-install/build/autogen -Ilibraries/integer-gmp/dist-install/build -Ilibraries/integer-gmp/dist-install/build/autogen -Ilibraries/integer-gmp/. -optP-include -optPlibraries/integer-gmp/dist-install/build/autogen/cabal_macros.h -package ghc-prim-0.2.0.0 -package-name integer-gmp -XCPP -XMagicHash -XUnboxedTuples -XNoImplicitPrelude -XForeignFunctionInterface -XUnliftedFFITypes -O0 -fasm -fno-warn-deprecated-flags -c libraries/integer-gmp/cbits/gmp-wrappers.cmm -o libraries/integer-gmp/dist-install/build/cbits/gmp-wrappers.o <interno>:0:1: lexical error make[1]: *** [libraries/integer-gmp/dist-install/build/cbits/gmp-wrappers.o] Error 1 make: *** [all] Error 2 Reported upstream: http://hackage.haskell.org/trac/ghc/ticket/4207 Pushed forced 'LC_ALL=C' for all ghc ebuilds. Please reopen if the build problem still exists. Thank you, guys! |