Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 310963 - dev-lang/ghc-6.12.1 fails to emerge
Summary: dev-lang/ghc-6.12.1 fails to emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-23 18:59 UTC by Sergey Mironov
Modified: 2010-03-25 21:02 UTC (History)
2 users (show)

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


Attachments
fixes arch translation. Looks m4-safe, but who knows.. (ghc-6.12.1-configure-CHOST.patch,773 bytes, patch)
2010-03-24 22:39 UTC, Sergey Mironov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Mironov 2010-03-23 18:59:58 UTC
last seen error message was:

checking version of ghc... 6.12.1
Target platform inferred as: i386-unknown-linux
Unknown arch i486

On amd64 package emerges without problems
Comment 1 Sergey Mironov 2010-03-23 19:00:32 UTC
emerge --info

Portage 2.1.7.17 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6-my15 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-my15-i686-Genuine_Intel-R-_CPU_T2050_@_1.60GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 19 Mar 2010 17:15:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1
dev-util/cmake:      2.8.1
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -mtune=prescott -pipe"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=prescott -mtune=prescott  -pipe"
DISTDIR="/home/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en ru"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/ierton/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa bash-completion berkdb bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus djvu dri dvd flac fortran gdbm gnutls gpm gtk iconv ipv6 jpeg jpeg2k ldap lm_sensors mmx modules mp3 mudflap musepack ncurses nls nptl nptlonly ogg opengl openmp pam pch pcre perl png pppd python qt4 readline reflection session smp spl sse sse2 ssl ssse3 svg sysfs syslog tcpd threads tiff truetype unicode vim-pager vim-syntax vorbis wavpack x86 xft xorg xpm zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Sergey Mironov 2010-03-23 19:01:40 UTC
build.log:

 [32;01m*[0m CPV:  dev-lang/ghc-6.12.1
 [32;01m*[0m REPO: gentoo
 [32;01m*[0m USE:  bash-completion doc elibc_glibc kernel_linux userland_GNU x86
>>> Unpacking source...
>>> Unpacking ghc-6.12.1-src.tar.bz2 to /home/portage/tmp/portage/dev-lang/ghc-6.12.1/work
>>> Unpacking ghc-bin-6.12.1-x86.tbz2 to /home/portage/tmp/portage/dev-lang/ghc-6.12.1/work

bzip2: /home/portage/tmp/portage/dev-lang/ghc-6.12.1/distdir/ghc-bin-6.12.1-x86.tbz2: trailing garbage after EOF ignored
 [32;01m*[0m Applying ghc-6.12.1-configure-CHOST.patch ...
[A[119C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying ghc-6.10.4-libm-detection.patch ...
[A[119C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Running eautoreconf in '/home/portage/tmp/portage/dev-lang/ghc-6.12.1/work/ghc-6.12.1' ...
 [32;01m*[0m Running autoconf ...
[A[119C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Running autoheader ...
[A[119C  [34;01m[ [32;01mok[34;01m ][0m
>>> Source unpacked in /home/portage/tmp/portage/dev-lang/ghc-6.12.1/work
>>> Compiling source in /home/portage/tmp/portage/dev-lang/ghc-6.12.1/work/ghc-6.12.1 ...
 * econf: updating ghc-6.12.1/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating ghc-6.12.1/libraries/unix/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating ghc-6.12.1/libraries/unix/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating ghc-6.12.1/libraries/old-time/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating ghc-6.12.1/libraries/old-time/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating ghc-6.12.1/libraries/directory/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating ghc-6.12.1/libraries/directory/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating ghc-6.12.1/libraries/base/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating ghc-6.12.1/libraries/base/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating ghc-6.12.1/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=i486-pc-linux-gnu --host=i486-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
checking for gfind... no
checking for find... /usr/bin/find
checking for sort... /usr/bin/sort
checking for ghc... /home/portage/tmp/portage/dev-lang/ghc-6.12.1/work/usr/bin/ghc
checking version of ghc... 6.12.1
Target platform inferred as: i386-unknown-linux
Unknown arch i486

!!! Please attach the following file when seeking support:
!!! /home/portage/tmp/portage/dev-lang/ghc-6.12.1/work/ghc-6.12.1/config.log
 [31;01m*[0m ERROR: dev-lang/ghc-6.12.1 failed:
 [31;01m*[0m   econf failed
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line   54:  Called src_compile
 [31;01m*[0m   environment, line 3912:  Called econf
 [31;01m*[0m     ebuild.sh, line  544:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m   			die "econf failed"
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of 'emerge --info =dev-lang/ghc-6.12.1',
 [31;01m*[0m the complete build log and the output of 'emerge -pqv =dev-lang/ghc-6.12.1'.
 [31;01m*[0m The complete build log is located at '/home/portage/tmp/portage/dev-lang/ghc-6.12.1/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/home/portage/tmp/portage/dev-lang/ghc-6.12.1/temp/environment'.
 [31;01m*[0m S: '/home/portage/tmp/portage/dev-lang/ghc-6.12.1/work/ghc-6.12.1'
Comment 3 Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-03-23 19:25:16 UTC
Hm, this version is masked as I see,

!!! All ebuilds that could satisfy "=dev-lang/ghc-6.12.1" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-lang/ghc-6.12.1 (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Lennart Kolmodin <kolmodin@gentoo.org> (26 Jan 2010)
# Masked GHC and friends for testing.

----------
Thanks for reporting anyway. I assign it to haskell@


Comment 4 Ivan 2010-03-23 20:42:35 UTC
Is there any reason you're using i486 rather than i686 for CHOST?

Also, what USE flags did you use for GHC?
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2010-03-23 21:41:29 UTC
(In reply to comment #0)
> last seen error message was:
> 
> checking version of ghc... 6.12.1
> Target platform inferred as: i386-unknown-linux
> Unknown arch i486
> 
> On amd64 package emerges without problems
> 

Thanks for the report!

Very interesting CHOST. Where did you get your stage tarball?

I've pushed slightly changed CHOST workaround to the overlay. You can try this patch until it hits main tree.
http://code.haskell.org/gentoo/gentoo-haskell/dev-lang/ghc/files/ghc-6.12.1-configure-CHOST.patch
Comment 6 Sergey Mironov 2010-03-24 08:06:34 UTC
Thanks for patch! I'll try it soon.


> Very interesting CHOST. Where did you get your stage tarball?

I can't remember exactly, but i used gentoo install guide as usual. :) It was 3
or 4 years ago..  My amd64 machine (ghc emerges well) has CHOST="x86_64-pc-linux-gnu". 
So i'll check if i missed any update. It is first time i have troubles of this kind.

> Is there any reason you're using i486 rather than i686 for CHOST?

No. I guess i found it to be safe that time. I'll think about upgrading, thanks.


> Also, what USE flags did you use for GHC?

Here they are:

ierton@vault ~ % equery uses ghc
[ Searching for packages matching ghc... ]
[ Colour Code : set unset ]
[ Legend : Left column  (U) - USE flags from make.conf              ]
[        : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for dev-lang/ghc-6.10.4-r1 ]
 U I
 + + bash-completion : Enable bash-completion support
 - - binary          : Install the binary version directly, rather than using it to build the source version.
 + + doc             : Adds extra documentation (API, Javadoc, etc)
 - - ghcbootstrap    : Internal: Bootstrap GHC from an existing GHC installation.
Comment 7 Sergey Mironov 2010-03-24 22:36:33 UTC
Hi, i've checked the patch, it is NOT working.
m4 treats all '[' and ']' as special symbols and rips them away.
Following solution works (see attach), but it is still playing with fire. I suggest writing sed rules without square brackets..
Comment 8 Sergey Mironov 2010-03-24 22:39:49 UTC
Created attachment 225159 [details, diff]
fixes arch translation. Looks m4-safe, but who knows..
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2010-03-25 10:38:05 UTC
(In reply to comment #7)
> Hi, i've checked the patch, it is NOT working.
> m4 treats all '[' and ']' as special symbols and rips them away.
> Following solution works (see attach), but it is still playing with fire. I
> suggest writing sed rules without square brackets..
> 

Yes, you are perfectly right. Added (slightly changed) quotation, as square-bracketless solution i can build looks too ugly: "\(4\|5\|6\)"

Tested by injecting --host=i486-pc-linux-gnu

http://code.haskell.org/gentoo/gentoo-haskell/dev-lang/ghc/files/ghc-6.12.1-configure-CHOST.patch
Comment 10 Lennart Kolmodin (RETIRED) gentoo-dev 2010-03-25 21:02:14 UTC
Patch committed to portage. Thanks both for the report and the patch!