LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-23-2012, 09:03 AM   #1
gkasica
Member
 
Registered: Jan 2011
Location: Jackson WI
Distribution: Fedora Core/Generic
Posts: 97

Rep: Reputation: 0
compile error on grub 1.99 Error: attempt to move .org backwards


In need of some assistance here with building grub 1.99

./configure

completes without errors


but with make I get

gcc -Wall -W -I../include -I../include -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -Os -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -

Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -m32 -fno-stack-protector -mno-stack-arg-

probe -Werror -Os -I.. -S -DSTANDALONE -o rs_decoder.S lib/reed_solomon.c -g0 -mregparm=3
gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -I../include -I../include -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -DGRUB_FILE=\"kern/i386/pc/startup.S\" -I.

-I. -I.. -I.. -I../include -I../include -g -m32 -DASM_FILE=1 -MT kern/i386/pc/kernel_exec-startup.o -MD -MP -MF kern/i386/pc/.deps-core/kernel_exec-

startup.Tpo -c -o kern/i386/pc/kernel_exec-startup.o `test -f 'kern/i386/pc/startup.S' || echo './'`kern/i386/pc/startup.S
reed_solomon.c: Assembler messages:
reed_solomon.c:707: Warning: ignoring changed section attributes for .text
kern/i386/pc/startup.S:161: Error: attempt to move .org backwards
make[3]: *** [kern/i386/pc/kernel_exec-startup.o] Error 1
make[3]: Leaving directory `/mnt/scsi-1/Linux/grub-1.99/grub-core'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/mnt/scsi-1/Linux/grub-1.99/grub-core'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/scsi-1/Linux/grub-1.99'
make: *** [all] Error 2


I have the config.log output but it exceeds the size allowed to upload and .zip is not allowed at all.
 
Old 01-23-2012, 09:45 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,818

Rep: Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003
Hello,

Have a look at this mailing list - http://lists.gnu.org/archive/html/gr.../msg00078.html

Cheers,

Josh
 
Old 01-23-2012, 10:34 AM   #3
gkasica
Member
 
Registered: Jan 2011
Location: Jackson WI
Distribution: Fedora Core/Generic
Posts: 97

Original Poster
Rep: Reputation: 0
Per the rerferenced thread I edited

>> Try increasing
>> #define GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART 0x6e0
>> in include/grub/offsets.h, but keep it divisible by 8 and don't increase
>> too much.
> Vladimir,
>

I increased to 0x7f0 as shown below:


#define GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART 0x7f0

but I still get the following similar error

gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -I../include -I../include -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -DGRUB_FILE=\"kern/i386/pc/startup.S\" -I. -I. -I.. -I.. -I../include -I../include -g -m32 -DASM_FILE=1 -MT kern/i386/pc/kernel_exec-startup.o -MD -MP -MF kern/i386/pc/.deps-core/kernel_exec-startup.Tpo -c -o kern/i386/pc/kernel_exec-startup.o `test -f 'kern/i386/pc/startup.S' || echo './'`kern/i386/pc/startup.S
reed_solomon.c: Assembler messages:
reed_solomon.c:707: Warning: ignoring changed section attributes for .text
kern/i386/pc/startup.S:456: Error: attempt to .org/.space backwards? (-182)
kern/i386/pc/startup.S:1011: Internal error!
Assertion failure in emit_inc_line_addr at dwarf2dbg.c line 876.
Please report this bug.
make[3]: *** [kern/i386/pc/kernel_exec-startup.o] Error 1
make[3]: Leaving directory `/mnt/scsi-1/Linux/grub-1.99/grub-core'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/mnt/scsi-1/Linux/grub-1.99/grub-core'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/scsi-1/Linux/grub-1.99'
make: *** [all] Error 2
 
Old 01-26-2012, 08:37 AM   #4
gkasica
Member
 
Registered: Jan 2011
Location: Jackson WI
Distribution: Fedora Core/Generic
Posts: 97

Original Poster
Rep: Reputation: 0
Updated to latest release of gcc 4.6.2 and error is gone. Compiled successfully per INSTALL docs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] avidemux compile error using slackbuilds.org BCarey Slackware 4 08-18-2011 12:35 PM
Dual boot attempt, grub error 13. blitzX Linux - Software 7 04-10-2008 01:39 PM
GRUB gives error messages after a OpenSuSE install attempt on a External HD mandrakethepenguin Linux - General 1 01-19-2006 03:37 PM
Mandrake Move 9.2 error, fatal server error:( silentwhispers Mandriva 1 12-16-2004 11:36 PM
kernel 2.6.3 compile ends in grub error 13: unsupported executable format(?) browny_amiga Linux - General 4 03-06-2004 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration