Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186902 - dev-lang/ghc-6.6.1 fails to build with : "[GHC/PrimopWrappers.o] Erreur 1"
Summary: dev-lang/ghc-6.6.1 fails to build with : "[GHC/PrimopWrappers.o] Erreur 1"
Status: RESOLVED DUPLICATE of bug 182459
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-28 14:13 UTC by alexandre
Modified: 2007-07-28 19:35 UTC (History)
0 users

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


Attachments
emerge --info (emerge_info.txt,3.29 KB, text/plain)
2007-07-28 14:16 UTC, alexandre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alexandre 2007-07-28 14:13:40 UTC
For the recent upgrade of ghc (on ~x86), i had to uninstall ghc-bin-6.4.2 and ghc-6.4.2. Emerge of ghc-6.6.1 package with 'binary' USE flag is ok, but if i try to switch it to '-binary', the compilation fails with the following message :

GHC/PrimopWrappers_split/PrimopWrappers__1.o:ghc452_0.hc:(.text+0x18): défini pour la première fois ici
collect2: ld a retourné 1 code d'état d'exécution
<<ghc: 780835288 bytes, 166 GCs, 1049165/1821828 avg/max bytes residency (5 samples), 19M in use, 0.01 INIT (0.00 elapsed), 2.87 MUT (22.75 elapsed), 0.12 GC (0.24 elapsed) :ghc>>
make[2]: *** [GHC/PrimopWrappers.o] Erreur 1
Failed making all in base: 1
make[1]: *** [all] Erreur 1
make[1]: quittant le répertoire « /var/tmp/portage/dev-lang/ghc-6.6.1/work/ghc-6.6.1/libraries »
make: *** [stage1] Erreur 2

* ERROR: dev-lang/ghc-6.6.1 failed.
* Call stack:
*   ebuild.sh, line 1648:   Called dyn_compile
*   ebuild.sh, line 988:   Called qa_call 'src_compile'
*   ebuild.sh, line 44:   Called src_compile
*   ghc-6.6.1.ebuild, line 252:   Called die
* 
* make failed [...]

Reproducible: Always

Steps to Reproduce:
1.uninstall previous ghc installation
2.install ghc-6.6.1 with 'binary' flag on
3.run /opt/ghc/sbin/ghc-updater
4.re-install ghc-6.6.1 with 'binary' flag off

Actual Results:  
make failed

Expected Results:  
make succeed
Comment 1 alexandre 2007-07-28 14:16:19 UTC
Created attachment 126228 [details]
emerge --info
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-07-28 14:33:24 UTC
1/ Set your locales to C when reporting bugs.
2/ Post the *topmost* errors as the emerge output told you.

Thanks.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-07-28 15:37:32 UTC
3/ Don't send me private emails about bugs ;P

We need errors in *English* (set your locales to C) - and post more lines above the output above.
Comment 4 alexandre 2007-07-28 17:59:06 UTC
Here is the error with locales set to C :

GHC/PrimopWrappers_split/PrimopWrappers__301.o:(.data+0x0): multiple definition of `base_GHCziPrimopWrappers_newBCOzh_closure'
GHC/PrimopWrappers_split/PrimopWrappers__1.o:(.data+0x0): first defined here
GHC/PrimopWrappers_split/PrimopWrappers__301.o: In function `base_GHCziPrimopWrappers_newBCOzh_info':
ghc1264_0.hc:(.text+0x18): multiple definition of `base_GHCziPrimopWrappers_newBCOzh_info'
GHC/PrimopWrappers_split/PrimopWrappers__1.o:ghc1264_0.hc:(.text+0x18): first defined here
GHC/PrimopWrappers_split/PrimopWrappers__302.o:(.data+0x0): multiple definition of `base_GHCziPrimopWrappers_newBCOzh_closure'
GHC/PrimopWrappers_split/PrimopWrappers__1.o:(.data+0x0): first defined here
GHC/PrimopWrappers_split/PrimopWrappers__302.o: In function `base_GHCziPrimopWrappers_newBCOzh_info':
ghc1264_0.hc:(.text+0x18): multiple definition of `base_GHCziPrimopWrappers_newBCOzh_info'
GHC/PrimopWrappers_split/PrimopWrappers__1.o:ghc1264_0.hc:(.text+0x18): first defined here
collect2: ld returned 1 exit status
<<ghc: 867380868 bytes, 183 GCs, 946180/1429936 avg/max bytes residency (5 samples), 18M in use, 0.00 INIT (0.00 elapsed), 2.97 MUT (27.30 elapsed), 0.12 GC (0.17 elapsed) :ghc>>
make[2]: *** [GHC/PrimopWrappers.o] Error 1
Failed making all in base: 1
make[1]: *** [all] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-lang/ghc-6.6.1/work/ghc-6.6.1/libraries'
make: *** [stage1] Error 2

Comment 5 alexandre 2007-07-28 19:04:40 UTC
1/ & 2/ hoppefully as requested
Comment 6 Duncan Coutts (RETIRED) gentoo-dev 2007-07-28 19:35:24 UTC
We've applied a workaround to the ebuild so you can emerge --sync and re-emerge the updated ebuild.

If that does not fix the problem please re-open this bug.

*** This bug has been marked as a duplicate of bug 182459 ***