erlc -pa /usr/lib/erlang/lib//media-libs/ebin +warn_unused_vars -I/usr/lib/erlang/lib//media-libs/include -I ../e3d -W +debug_info '-Dwings_version="0.98.29b"' -pa ../ebin -o../ebin wings_color.erl wings_color: function internal_rgb_to_hsv/3+97: Internal consistency check failed - please report this bug. Instruction: {test,is_eq_exact,{f,80},[{x,0},{atom,error}]} Error: {unsafe_instruction,{float_error_state,cleared}}: make[2]: *** [../ebin/wings_color.beam] Error 1 make[2]: Leaving directory `/mnt/oktet/tmp/portage/wings-0.98.29b/work/wings-0.98.29b/src' make[1]: *** [opt] Error 2 make[1]: Leaving directory `/mnt/oktet/tmp/portage/wings-0.98.29b/work/wings-0.98.29b/src' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: Actual Results: compilation failure. Expected Results: correct compilation. athlon snob # emerge -pv erlang esdl These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] dev-lang/erlang-10.2.6 +X +emacs +ssl 0 kB [ebuild R ] media-libs/esdl-0.95.0630 0 kB Total size of downloads: 0 kB athlon snob # emerge info Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.12-gentoo-r1 i686) ================================================================= System uname: 2.6.12-gentoo-r1 i686 AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.6.12 ccache version 2.4 [disabled] dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.9 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=athlon-xp -msse -mfpmath=sse -mmmx -m3dnow -fomit-frame-pointer -ffast-math -funroll-loops -pipe -ftracer -funit-at-a-time" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -msse -mfpmath=sse -mmmx -m3dnow -fomit-frame-pointer -ffast-math -funroll-loops -pipe -ftracer -funit-at-a-time" DISTDIR="/mnt/oktet/tmp/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/mnt/oktet/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 7zip X aalib acl adns alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts blas bzip2 cairo cdr crypt cscope css cups curl dga doc dvd dvdr dynagraph eds emacs emboss encode esd evo fam firebird flac font-server foomaticdb fortran gd gdbm gif gimpprint glitz gnome gphoto2 gpm graphviz gstreamer gtk gtk2 guile hal idea imagemagick imlib innodb ipv6 ithreads java javascript jce jpeg junit kcal kde kdeenablefinal ladspa lcms ldap libg++ libgda libwww lzw-tiff mad mcal mikmod mmx mng motif mozdevelop mozilla mozsvg mozxmlterm mp3 mpeg mysql nas ncurses nls nntp no-old-linux nptl offensive ogg oggvorbis opengl pam pcre pdflib perl pic plotutils png postgres povray python qt quicktime readline rrdtool ruby samba scanner sdk sdl slang sndfile speex spell sqlite sse ssl subversion svg tcltk tcpd tetex theora threads tidy tiff truetype truetype-fonts type1-fonts unicode vdesktop vorbis wmf xine xml xml2 xmms xprint xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS athlon snob #
Remove -ffast-math from your C[XX]FLAGS and try again.
1. Wings is completely written in erlang and changing C[XX]FLAGS will have no effect (I've tested it, but it is obvious). 2. The real issue must be in new Erlang version. 3. This bug was incorrectly closed 4. I'm getting tired of Gentoo -ffast-math "Holy cow".
(In reply to comment #2) > 4. I'm getting tired of Gentoo -ffast-math "Holy cow". Likewise, devs are probably tired of users enabling arbitrary C[XX]FLAGS that break their Gentoo and reporting "bugs" then. man gcc: <snip> This option should never be turned on by any -O option since it can result in incorrect output for programs which depend on an exact implementation of IEEE or ISO rules/specifications for math functions. </snip>
Err, you missed the key phrase: "programs which depend on an exact implementation". 99.9% programs don't depend on this. Gentoo Ebuild has powerfull compilation flag stripping mechanism --- which should be used for packages that can't be compiled with "bad" flags. I submitted several updated ebuilds for packages that depend on this. But again: 99.9% programs should compile without any problems with "-ffast-math".
Bjorn Gustavsson replied on bug report: "It is a bug in Erlang/OTP R10B-6. Until R10B-7 is released, use R10B-5." https://sourceforge.net/tracker/index.php?func=detail&aid=1231771&group_id=33028&atid=406952 So, this is a bug in current Erlang implementation. P.S. And it has nothing to do with "-ffast-math".
I've donwgraded Erlang to version 10.2.5 (ebuild rename) and wings compiled correctly. Is there any way to specify that program will not work with some version of external utility in ebuild file? I.e. wings will compile under Erlang >10.2.1 and probably >=10.2.7, but not with 10.2.6.
@Nickolay: Thanks for your offer (from bug #103359), copying the ebuild and the correspinding files to /usr/local/portage/dev-lang/erlang and renaming everything to 10.2.5 worked fine for the erlang part. But wings just stopped with the exact error described here. So if you have a working ebuild, could you please add it as an attachment here?
Created attachment 66594 [details] erlang-10.2.5.ebuild.tgz Sorry, don't know about Gentoo policy on tgz.
(In reply to comment #7) I'm using a full "~x86" setup. Try upgrading esdl to esdl-0.95.0630. [ebuild R ] dev-lang/erlang-10.2.5 +X +emacs +ssl 0 kB [1] [ebuild R ] media-libs/esdl-0.95.0630 0 kB [ebuild R ] media-gfx/wings-0.98.29b 0 kB Just checked, no probs on my machine. ------------------------------------------ erlc -pa /ebin +warn_unused_vars -I/include -I ../e3d -W +debug_info '-Dwings_version="0.98.29b"' -pa ../ebin -o../ebin wings_lang.erl erlc -pa /ebin +warn_unused_vars -I/include -I ../e3d -W +debug_info '-Dwings_version="0.98.29b"' -pa ../ebin -o../ebin user_default.erl
(In reply to comment #2) > 1. Wings is completely written in erlang and changing C[XX]FLAGS will have no > effect (I've tested it, but it is obvious). actually, bad CFLAGS have broken erlang before > 4. I'm getting tired of Gentoo -ffast-math "Holy cow". suck it up, we're tired of ricer users (In reply to comment #4) > Gentoo Ebuild has powerful compilation flag stripping mechanism --- > which should be used for packages that can't be compiled with "bad" flags. or we simply tell users to stop screwing around because it wastes our time
i'll prob add 10.2.5 and mask 10.2.6 ... the ebuild posted here is missing a lot of features from the current 10.2.6 ebuild
Created attachment 66610 [details] erlang-10.2.5.ebuild give this ebuild a twirl for me please
New Ebuild work just fine. One note: Erlang depends on Tcl/TK installation, this should be added to DEPEND flags. See "lib/gs/tcl/README".
Works fine for me as well, with your ebuild, esdl-0.94.0125 and wings-0.98.29b But before this gets into portage, I'd suggest that the patch and manpage files should be renamed as well to 10.2.5 and the following lines should be changed (back): < epatch "${FILESDIR}"/${PN}-10.2.6-export-TARGET.patch < epatch "${FILESDIR}"/10.2.6-manpage-emacs-gentoo.patch -- > epatch ${FILESDIR}/${P}-export-TARGET.patch > epatch ${FILESDIR}/${PV}-manpage-emacs-gentoo.patch
renaming the patch is pointless since both ebuilds use it ... no point in duplicating them i'll check out the tcl stuff
now in portage with tk fix 10.2.6 has been p.masked