Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189782 - dev-lang/smarteiffel-2.2 ebuild fails with gcc 4.2
Summary: dev-lang/smarteiffel-2.2 ebuild fails with gcc 4.2
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Maintainers for Miscelleneous Language Packages [OBSOLETE]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-22 05:42 UTC by neomagus00
Modified: 2007-08-22 21:31 UTC (History)
0 users

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


Attachments
The build log. (dev-lang:smarteiffel-2.2:20070822-053401.log,2.06 KB, text/plain)
2007-08-22 05:46 UTC, neomagus00
Details
A diff to apply to the stock ebuild. (smarteiffel-2.2.ebuild.diff,836 bytes, text/plain)
2007-08-22 05:47 UTC, neomagus00
Details
My emerge --info. (emerge.info,3.33 KB, text/plain)
2007-08-22 05:49 UTC, neomagus00
Details

Note You need to log in before you can comment on or make changes to this bug.
Description neomagus00 2007-08-22 05:42:45 UTC
The ebuild for smarteiffel-2.2 seems to compile an installation script of sorts, and then echo preselected values into that program.  The program is install.bin, compiled from install.c.  When I customise the ebuild and remove the pre-echoed values, in order to manually walk through the install script, it fails with a signal 11 on the first possible keystroke (it asks you to hit enter, and fails immediately).
Comment 1 neomagus00 2007-08-22 05:46:01 UTC
Created attachment 128829 [details]
The build log.
Comment 2 neomagus00 2007-08-22 05:47:50 UTC
Created attachment 128831 [details]
A diff to apply to the stock ebuild.

This simply produces an alternate ebuild that should let you walk through install.bin manually (this is what I used to find exactly where the segfault was occuring).
Comment 3 neomagus00 2007-08-22 05:49:51 UTC
Created attachment 128833 [details]
My emerge --info.

Note that I tried to remove all CFLAGS to test this, but apparently emerge reapplies -O2 and -pipe.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-08-22 06:07:53 UTC
Interactive ebuilds are really not acceptable, I guess the patch is meant for debugging only? :)
Comment 5 neomagus00 2007-08-22 06:50:01 UTC
(In reply to comment #4)
> Interactive ebuilds are really not acceptable, I guess the patch is meant for
> debugging only? :)
> 

Sure :-). It seems a somewhat clumsy system to echo values into a script, but it works... or should, at least.
Comment 6 Harald van Dijk (RETIRED) gentoo-dev 2007-08-22 21:31:28 UTC
Thanks for the report. This is not specific to amd64, but it is (so far) specific to gcc 4.2, specifically with the -fstrict-overflow option which gets enabled at -O2 and higher. smarteiffel generates not completely valid C code and relies on the compiler not to optimise too aggressively, but gcc 4.2 does. I've updated the ebuild to add the -fno-strict-overflow compiler flag when supported to work around this issue, and I'll inform upstream. Hopefully, they will fix the code so that this will not be necessary in the next version.

I'll close this as UPSTREAM instead of FIXED because really, this flag just hides the error.