GNU GRUB - Bugs: bug #32676, Linker error in...
You are not allowed to post comments on this tracker with your current authentication level.
bug #32676: Linker error in 'grub-core/kern/i386/pc/startup.S' on a x86_64 system
Submitter: | Alexander Diewald <diewi> | ||
Submitted: | Fri 04 Mar 2011 12:41:25 PM UTC | ||
Category: | Compilation | Severity: | Major |
Priority: | 5 - Normal | Item Group: | Software Error |
Status: | Fixed | Privacy: | Public |
Assigned to: | None | Originator Name: | |
Open/Closed: | Closed | Release: | Bazaar - trunk |
Release: | Reproducibility: | Every Time | |
Planned Release: | None |
Jump to the original submission
Wed 06 Apr 2011 02:55:40 PM UTC, comment #9: |
Alexander Diewald <diewi> |
Wed 06 Apr 2011 02:21:09 PM UTC, comment #8:
Have you checked that your grub-mkimage is updated? It changes depending on offsets. If it did I'll try to recreate it on my FreeBSD
These asm files are generated from C files. We needed a highly unusual way of combining files, a way that ld doesn't support. Simplifying this system by logically dividing the files and using ld is post-2.0 objective
These files are always compiled and assembled with -m32. Moreover my main system is amd64. No problems here.
We use -Os.
None taken. |
Vladimir Serbinenko <phcoder> |
Wed 06 Apr 2011 02:01:02 PM UTC, comment #7: Just tested the patch. It is NOT working. It fixes the compilation issue, but after a "grub-install --no-floppy /dev/sda" my system just goes on to the message "Grub Loading..." and then reboots. So I'm caught in a reboot loop, only installing the 1.98 version makes my system behave normal again.
|
Alexander Diewald <diewi> |
Wed 06 Apr 2011 12:27:36 PM UTC, comment #6: Committed with a comment and adjustments. |
Vladimir Serbinenko <phcoder> |
Tue 05 Apr 2011 07:28:48 PM UTC, comment #5: Hi, Vladimir,
|
Andrey <devel> |
Mon 04 Apr 2011 09:39:22 PM UTC, comment #4: Looks like you both use an old compiler which optimizes the code far less than I supposed. Could you try attached patch? |
Vladimir Serbinenko <phcoder> |
Tue 08 Mar 2011 06:47:14 PM UTC, comment #3: Hi,
|
Andrey <devel> |
Fri 04 Mar 2011 03:23:20 PM UTC, comment #2: Thanks for your reply.
|
Alexander Diewald <diewi> |
Fri 04 Mar 2011 01:02:09 PM UTC, comment #1: Please don't override the -Os with -O2 |
Vladimir Serbinenko <phcoder> |
Fri 04 Mar 2011 12:41:25 PM UTC, original submission:
Hello,
|
Alexander Diewald <diewi> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2011-04-06 | phcoder | Status | None | Fixed | |
Open/Closed | Open | Closed | |||
2011-04-05 | devel | Attached File | - | Added video_fb.c.patch, #23113 | |
2011-04-04 | phcoder | Attached File | - | Added offset.diff, #23106 | |
2011-03-04 | diewi | Attached File | - | Added emerge-info.txt, #22836 |
Powered by Savane 3.13-d3ae.
Corresponding source code
Now It works. Thank you Vladimir, you were a great help. And thanks for the short descriptions of the build process. Very interesting.
Well, my problem was that my system didn't boot when I applied my offset fix (added 0x8) AND changed the compiler flag to Os my system didn't boot. So, I concluded that this doesn't make any difference. Wrong thought. I just tried it again with the Os flag and Vladimirs offset patch and it did work!
I have to say that I didn't work thoroughly enough. Again a lesson for me :)
I will fill a bug report on gentoo.org, so it'll get fixed in the official ebuild soon too.