Bug 753455 - iwhd fails to link when compiled with --target i386
Summary: iwhd fails to link when compiled with --target i386
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: iwhd
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jim Meyering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-12 17:32 UTC by Jim Meyering
Modified: 2013-03-13 20:41 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-14 14:02:52 UTC
Type: ---


Attachments (Terms of Use)

Description Jim Meyering 2011-11-12 17:32:11 UTC
Description of problem:
[This is not a bug in iwhd.  I expect to close it NOTABUG or to reassign it. ]
Building for i386, you get a link failure:

...replica.c:445: undefined reference to `__sync_fetch_and_add_4'

The solution is not to build for i386, since it lacks the atomic
built-in functions.  Use -march=i486 or greater instead.

How reproducible: every time.

Steps to Reproduce:
1. build with arch of i386
2.
3.

Actual results:
link failure, as above

Expected results:
successful build

Additional info:
  It seems this is a FAQ:
  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43980

Comment 1 Jim Meyering 2011-11-14 14:02:52 UTC
For the record, this was fixed by telling the RPM-building tool
to build for the target i686, rather than i386.


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