Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 303665 - dev-lang/hugs98-2006.9 compile stuck at checking for ANSI C header files (breaks sandbox, ignores USE="-openal -opengl")
Summary: dev-lang/hugs98-2006.9 compile stuck at checking for ANSI C header files (br...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Haskell Language team
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-06 01:39 UTC by Santiago Bruno
Modified: 2010-11-02 19:40 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Santiago Bruno 2010-02-06 01:39:40 UTC
I'm having a problem emerging dev-lang/hugs98-2006.9

It compiles for a while and after some minutes it stucks while

checking for ANSI C header files...

I'm on an AMD64.

I posted the problem on the forum with some more detail http://bugs.gentoo.org/show_bug.cgi?id=240036

A user suggested to use ghc instead because hugs98 was almost dead.



Reproducible: Always
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2010-02-06 16:32:16 UTC
Thank you for report. Please post/attach all relevant information to the bug next time. Bugzilla is used to document things, so it good idea to have everything in one place.

Copying emerge --info from forum:

Portage 2.2_rc62 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-r1 x86_64)
=================================================================                                     
System uname: Linux-2.6.32-gentoo-r1-x86_64-AMD_Athlon-tm-_64_Processor_3500+-with-gentoo-2.0.1       
Timestamp of tree: Mon, 01 Feb 2010 21:25:01 +0000                                                   
app-shells/bash:     4.0_p37                                                                         
dev-java/java-config: 2.1.10                                                                         
dev-lang/python:     2.4.6, 2.5.4-r2, 2.6.4-r1, 3.1.1-r1                                             
dev-python/pycrypto: 2.1.0                                                                           
dev-util/cmake:      2.8.0-r2                                                                         
sys-apps/baselayout: 2.0.1                                                                           
sys-apps/openrc:     0.6.0-r1                                                                         
sys-apps/sandbox:    2.2                                                                             
sys-devel/autoconf:  2.13, 2.65                                                                       
sys-devel/automake:  1.4_p6, 1.7.9-r2, 1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1                             
sys-devel/binutils:  2.20                                                                             
sys-devel/gcc:       4.4.2                                                                           
sys-devel/gcc-config: 1.4.1                                                                           
sys-devel/libtool:   2.2.6b                                                                           
virtual/os-headers:  2.6.30-r1                                                                       
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                       
ACCEPT_LICENSE="*"                                                                                   
CBUILD="x86_64-pc-linux-gnu"                                                                         
CFLAGS="-march=k8 -O2 -pipe"                                                                         
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://distfiles.gentoo.org ftp://mirror.datapipe.net/gentoo http://gentoo.mirrors.tds.net/gentoo"
LANG="es_AR"
LC_ALL="es_AR"
LDFLAGS="-Wl,-O1"
LINGUAS="en es es_AR"
MAKEOPTS=""
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/gnome /usr/portage/local/santiago"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amd amd64 apache apache2 be berkdb bluetooth branding bzip2 cairo cdr ch cli consolekit cracklib crypt cups cxx dbm dbus dri dts dv dvd dvdr eds emboss encode es evo fam ffmpeg fi firefox flac fortran gd gdb gdbm gg gif glib gpm gs gstreamer gtk gtk2 hal iconv ipod ipv6 irc is isdn it java javascript jp jpeg kde ldap libcaca libnotify lirc lm_sensors mad mikmod mmx mmxext mng mod modules mouse mp3 mp4 mpe mpeg mplayer mudflap multilib musepack musicbrainz ncurses nforce2 nl nls no nptl nptlonly ntfs nvidia ode offensive ogg opengl openmp pam pcre pdf perl png ppds pppd ps pt python qt qt3support qt4 quicktime re readline reflection scanner sdl session spell spl sse sse2 ssl startup-notification stream svg sysfs tcp tcpd thunar tiff tk truetype type1 unicode ups usb v4l vdr vorbis wma wmf wmp x264 xext xml xorg xulrunner xv xvid yp zlib" ALSA_CARDS="hda-intel intel8x0 intel8x0m usb-audio bt87x ens1370 ens1371" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en es es_AR" LIRC_DEVICES="devinput" RUBY_TARGETS="ruby18" SANE_BACKENDS="hp4200" USERLAND="GNU" VIDEO_CARDS="nv v4l fbdev nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2010-07-22 19:55:33 UTC
It's likely horrible problems in hugs98 autotools macros, which torture openal.
They are used even when you use USE=-openal.

Log snippet:
| #ifdef __cplusplus
| extern "C"
| #endif
| char alGenSources ();
| int
| main ()
| {
| return alGenSources ();
|   ;
|   return 0;
| }
...
configure:3302: test -s conftest.o
configure:3305: $? = 0
configure:3401: gcc -o conftest -g -O2   conftest.c -lopenal  >&5
configure:3404: $? = 0
configure:3410: ./conftest
^[[31;01mACCESS DENIED^[[0m  open_wr:      /dev/snd/controlC0
^[[31;01mACCESS DENIED^[[0m  open_wr:      /var/log/sandbox/sandbox-3033.log
^[[31;01mACCESS DENIED^[[0m  open_wr:      /var/log/sandbox/sandbox-3033.log
^[[31;01mACCESS DENIED^[[0m  open_wr:      /var/log/sandbox/sandbox-3033.log
^[[31;01mACCESS DENIED^[[0m  open_wr:      /var/log/sandbox/sandbox-3033.log

No idea who have come to idea for calling tested library functions during detection.
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2010-08-01 19:41:16 UTC
(In reply to comment #2)
> It's likely horrible problems in hugs98 autotools macros, which torture openal.
> They are used even when you use USE=-openal.

So, whole bag of issues:
* ./configure flags are ignored when passed to subprojects (we get hugs98 ignorant when we ask './configure --disable-openal', not very hard to fix)

* openal/opengl/glut use damaged compile/run autoconf hacks instead of compile-only tests. grep for FPTOOLS_CHECK_TYPE macro. It violates sandbox (post above). Harder to fix, but I have mostly working implementation locally.

* other autoconf related problems. openal constant detection code seems to be broken: macro FP_CHECK_CONST seems to return -1 every time; it's absed on old autoconf internals and should be converted to public API (preferably crosscompilation agnostic).

* bundled network package does not work against modern glibc (easy to fix)

* Last release is 4 years ago and upstream seems to be dead (harder to fix)

We will leave ebuild in haskell overlay and mask for removal in main tree: http://code.haskell.org/gentoo/gentoo-haskell/dev-lang/hugs98/

Upstream wanted! It's useless to carry all the needed hacks on distro side.
Comment 4 C W Rose 2010-08-09 07:46:29 UTC
Hugs 2006.9 emerges ok on x86, _provided_ that you
use -openal.  It's a reference implementation, so it
might be worth keeping even in its present damaged state.

Will
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2010-08-09 15:56:13 UTC
(In reply to comment #4)
> Hugs 2006.9 emerges ok on x86, _provided_ that you
> use -openal.  It's a reference implementation, so it
> might be worth keeping even in its present damaged state.

Not quite. It merges provided you don't have openal installed at all, what complicates things a little.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2010-11-02 19:40:37 UTC
Ebuild is pruned from portage and sits now in overlay:

    http://code.haskell.org/gentoo/gentoo-haskell/dev-lang/hugs98/

*sigh*