bugGNU GRUB - Bugs: bug #29858, build error on pure x86-64 systems

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #29858: build error on pure x86-64 systems

Submitted by:  Denis Onischenko <denison>
Submitted on:  Tue 11 May 2010 04:19:28 PM UTC  
Votes:  100  
 
Category: CompilationSeverity: Major
Priority: 5 - NormalItem Group: None
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: Denis Onischenko
Open/Closed: ClosedRelease: 
Release: Bazaar - trunkReproducibility: Every Time
Planned Release: None

Sun 14 Nov 2010 10:41:54 PM UTC, comment #1:

For now I removed -lgcc on i386 and x86_64. However since GRUB on BIOS needs to generate 32-bit code it needs a working 32-bit compiler. And a gcc without libgcc isn't such. Considering that libgcc is pretty small I see no reason not to have it if you need it. So no waranty is given that such config will still work n the future.

Vladimir Serbinenko <phcoder>
Project Administrator
Tue 11 May 2010 04:19:28 PM UTC, original submission:

After unifying libgcc processing in revision 2320 (2010-04-11 Vladimir Serbinenko) the following error has been occur when building on pure x86-64 system (without 32-bit libgcc):

gcc -o kernel.exec kernel_img-kern_i386_pc_startup.o kernel_img-kern_i386_misc.o kernel_img-kern_main.o kernel_img-kern_device.o kernel_img-kern_disk.o kernel_img-kern_dl.o kernel_img-kern_file.o kernel_img-kern_fs.o kernel_img-kern_err.o kernel_img-kern_misc.o kernel_img-kern_mm.o kernel_img-kern_term.o kernel_img-kern_rescue_parser.o kernel_img-kern_rescue_reader.o kernel_img-kern_time.o kernel_img-kern_list.o kernel_img-kern_handler.o kernel_img-kern_command.o kernel_img-kern_corecmd.o kernel_img-kern___target_cpu__dl.o kernel_img-kern_i386_pc_init.o kernel_img-kern_i386_pc_mmap.o kernel_img-kern_parser.o kernel_img-kern_partition.o kernel_img-kern_i386_tsc.o kernel_img-kern_i386_pit.o kernel_img-kern_generic_rtc_get_time_ms.o kernel_img-kern_generic_millisleep.o kernel_img-kern_env.o kernel_img-term_i386_pc_console.o kernel_img-term_i386_vga_common.o kernel_img-symlist.o -nostdlib -static-libgcc -m32 -Wl,--build-id=none -lgcc -nostdlib -Wl,-N -Wl,-Ttext,0x8200 -mrtd -mregparm=3
/usr/bin/ld: skipping incompatible /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
make[2]: *** [kernel.exec] Error 1

Denis Onischenko <denison>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by ojab (Voted in favor of this item)
  • -unavailable- added by denison (Submitted the item)
  • -unavailable- added by denison
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 100 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 14 Nov 2010 10:41:54 PM UTCphcoderStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Thu 17 Jun 2010 05:45:34 PM UTCojabCarbon-Copy-=>Added ojab
    Tue 11 May 2010 04:19:28 PM UTCdenisonCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1