Summary: | wings-0.98.29b compilation failure | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Nickolay Kolchin-Semyonov <nbkolchin> |
Component: | New packages | Assignee: | SpanKY <vapier> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | quazgar |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 104578 | ||
Attachments: |
erlang-10.2.5.ebuild.tgz
erlang-10.2.5.ebuild |
Description
Nickolay Kolchin-Semyonov
2005-07-03 02:52:58 UTC
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 |