Bug 631771
| Summary: | binutils-2.20.51.0.10 breaks x86_64 assembly on Xeon E5540 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jens Petersen <petersen> |
| Component: | binutils | Assignee: | Nick Clifton <nickc> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | rawhide | CC: | haskell-devel, hjl, jakub, nickc, randyn3lrx |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-09-16 10:13:42 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
I forgot a few more details though I have already communicated
them to Nick in email earlier.
F14 (with binutils-2.20.51.0.7) is unaffected.
Koji buildservers:
x86-{13,15,16,17,19,20}.phx2: seem to be all Xeon Quad Core E5540 blades.
x86-{01,02,03,04,07}.phx2: should all be older Xeon Dual Core 5140 blades
The failures are only seen on the new E5540 blades for dist-f15.
One more datapoint the failures seem to be related to dynamically linked code (PIC?). Statically linked objects are building fine but not dynamically linked objects. I got access to a E5540 server and reproduced the problem there by hand in a f15 mock x86_64 buildroot. I used this test package: http://petersen.fedorapeople.org/testcase-ghc-binutils-0.1-1.fc13.src.rpm which just runs "as" on some assembler generated earlier by ghc when compiling gtk2hs-buildtools in koji. Fails in dist-f15 x86_64 with binutils-2.20.51.0.10-3.fc15.x86_64 Reverting the f15 buildroot to binutils-2.20.51.0.7-5.fc14.x86_64 and the build succeeds. So confirming that this is definitely caused by the changes in the latest binutils version. A none haskell example (fldigi): http://koji.fedoraproject.org/koji/getfile?taskID=2458724&name=build.log g++ -DHAVE_CONFIG_H -I. -DBUILD_FLDIGI -DLOCALEDIR=\"/usr/share/locale\" -I. -I./include -I./irrxml -I./fileselector -pthread -I/usr/include/freetype2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT -D_REENTRANT -I/usr/include/libpng12 -I/usr/include/libxml2 -pipe -Wall -fexceptions -O2 -ffast-math -finline-functions -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c -o fldigi-Fl_Text_Editor_mod.o `test -f 'widgets/Fl_Text_Editor_mod.cxx' || echo './'`widgets/Fl_Text_Editor_mod.cxx {standard input}: Assembler messages: {standard input}:5214: Error: junk `ff' after expression {standard input}:5214: Error: 8-byte relocation cannot be applied to 4-byte field make[2]: *** [fldigi-trx.o] Error 1 (correcting comment 1: x86-09 is also a E5540 CPU.) Would it be useful to get a newer binutils into dist-f15 to test or better to revert to binutils-2.20.51.0.7 for now perhaps? I see there is a newer upstream release: binutils-2.20.51.0.11. and seems to fix the problem. :-) :-/ Could you please update binutils in rawhide to 2.20.51.0.11 ASAP? I built ghc-glib and fldigi on the E5540 box using 2.20.51.0.11 successfully. I have created a new binutils rpm based on the 2.20.51.0.11 source release. This should resolve the problem. Thank you Looks good to me now - I updated xmonad successfully: http://koji.fedoraproject.org/koji/buildinfo?buildID=194937 |
Description of problem: Current binutils-2.20.51.0.10 seems to break compile the assembly output from ghc's Native Code Generator on x86_64 rawhide on Xeon E5540 CPUs. Version-Release number of selected component (if applicable): binutils-2.20.51.0.10-3.fc15 How reproducible: every time on x86-NN.phx2.fedoraproject.org (with NN >= 10) Steps to Reproduce: 1. Try to build Haskell library or package in rawhide with ghc Actual results: as /tmp/ghc7450_0/ghc7450_0.s -o dist/build/System/Glib/Attributes.dyn_o /tmp/ghc7450_0/ghc7450_0.s: Assembler messages: /tmp/ghc7450_0/ghc7450_0.s:992:0: Error: junk `el' after expression /tmp/ghc7450_0/ghc7450_0.s:992:0: Error: 8-byte relocation cannot be applied to 4-byte field /usr/bin/ghc returned ExitFailure 1 Expected results: To succeed like on older CPUs (x86-NN.phx2 (with NN <= 09) Additional info: http://koji.fedoraproject.org/koji/getfile?taskID=2454643&name=build.log http://koji.fedoraproject.org/koji/taskinfo?taskID=2454643