Bug 735822 - kyotocabinet 1.2.70-1 built with problematic compiler flags
Summary: kyotocabinet 1.2.70-1 built with problematic compiler flags
Alias: None
Product: Fedora
Classification: Fedora
Component: kyotocabinet
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Casey Dahlin
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: DebugInfo
TreeView+ depends on / blocked
Reported: 2011-09-05 15:33 UTC by Ville Skyttä
Modified: 2014-06-18 08:47 UTC (History)
2 users (show)

Fixed In Version: kyotocabinet-1.2.70-2.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2011-12-16 19:48:23 UTC

Attachments (Terms of Use)
Compiler flag fixes (406 bytes, patch)
2011-09-05 15:33 UTC, Ville Skyttä
no flags Details | Diff

Description Ville Skyttä 2011-09-05 15:33:13 UTC
Created attachment 521512 [details]
Compiler flag fixes

kyotocabinet 1.2.70-1 is built with -march=native which quite probably means it'll break on systems that don't have all the features the build system has, and -g0 which makes its -debuginfo useless.

Attached is one way to fix it; probably it's better to use a patch than sed for modifying configure so it has less chance of breaking and going unnoticed in the future.

Comment 1 Casey Dahlin 2011-09-06 22:12:25 UTC
It looks to me like just passing --enable-devel will swap in a different set of CFLAGS/CXXFLAGS that fix the issues you mention (assuming -O2 doesn't have the offensive arch option). Does that look right to you?

Comment 2 Ville Skyttä 2011-09-07 19:38:38 UTC
--enable-devel will end up passing at least things like -UNDEBUG, and -D_KCDEBUG which sound potentially undesirable to me (haven't looked at the source though).  The offensive arch option will be used unless --disable-opt is used, and on the other hand using it will end up in -O0 so I don't see an option that results in desirable flags and doesn't involve some kind of patching.

Comment 3 Fedora Update System 2011-10-19 22:25:04 UTC
kyotocabinet-1.2.70-2.fc15 has been submitted as an update for Fedora 15.

Comment 4 Fedora Update System 2011-10-19 22:41:36 UTC
kyotocabinet-1.2.70-2.fc16 has been submitted as an update for Fedora 16.

Comment 5 Fedora Update System 2011-10-20 02:23:27 UTC
Package kyotocabinet-1.2.70-2.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing kyotocabinet-1.2.70-2.fc16'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2011-12-16 19:48:23 UTC
kyotocabinet-1.2.70-2.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2011-12-16 19:49:28 UTC
kyotocabinet-1.2.70-2.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.