bugGNU GRUB - Bugs: bug #59127, grub-2.04 build failure on i386

 
 

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

bug #59127: grub-2.04 build failure on i386

Submitted by:  Frédéric Fauberteau <triaxx>
Submitted on:  Fri 18 Sep 2020 06:45:13 AM UTC  
 
Category:  Compilation Severity:  Major
Priority:  5 - Normal Item Group:  Hardware-specific
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release: 
Release:  other Reproducibility:  Every Time
Planned Release:  None

Fri 18 Sep 2020 06:45:13 AM UTC, original submission:  

I try to build grub-2.04 with sources fetched from ftp://ftp.gnu.org/gnu/grub/ on NetBSD/i386 9.0. This release successfully builds on NetBSD/amd64 9.0.

The gcc version is:

$ gcc --version
gcc (nb3 20190319) 7.4.0

The binutils version is:

$ ld --version
GNU ld (NetBSD Binutils nb1) 2.31.1

The compilation error is the following:

cc -DHAVE_CONFIG_H -I. -I..  -Wall -W  -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -m32 -I../include -I../include -DGRUB_FILE=\"lib/i386/relocator64.S\" -I. -I. -I.. -I.. -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/
   -I/mnt/data/pkg/netbsd-9/include -I/usr/include -I/mnt/data/pkg/netbsd-9/include/python3.8 -I/usr/X11R7/include/freetype2 -D_FILE_OFFSET_BITS=64 -g  -m32 -msoft-float -DGRUB_FILE=\"lib/i386/relocator64.S\" -I. -I. -I.. -I.. -I../include -I../include -I../grub-core/lib/libgcrypt-grub/src/ -DASM_FILE=1    -O2 -Wno-unused-value -I/mnt/data/pkg/netbsd-9/include -I/usr/include -I/mnt/data/pkg/netbsd-9/include/python3.8 -I/usr/X11R7/include/freetype2 -MT lib/i386/relocator_module-relocator64.o -MD -MP -MF lib/i386/.deps-core/relocator_module-relocator64.Tpo -c -o lib/i386/relocator_module-relocator64.o `test -f 'lib/i386/relocator64.S' || echo './'`lib/i386/relocator64.S
lib/i386/relocator64.S: Assembler messages:
lib/i386/relocator64.S:66: Error: unknown pseudo-op: `.code64'
lib/i386/relocator64.S:74: Error: bad register name `%rax'
lib/i386/relocator64.S:98: Error: bad register name `%rax'
lib/i386/relocator64.S:132: Error: bad register name `%rip)'
gmake[3]: *** [Makefile:32165: lib/i386/relocator_module-relocator64.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
mv -f io/.deps-core/gzio_module-gzio.Tpo io/.deps-core/gzio_module-gzio.Po
gmake[3]: Leaving directory '/mnt/data/pkgsrc/work/netbsd-9-unpriv/sysutils/grub2/work/grub-2.04/grub-core'
gmake[2]: *** [Makefile:26403: all] Error 2
gmake[2]: Leaving directory '/mnt/data/pkgsrc/work/netbsd-9-unpriv/sysutils/grub2/work/grub-2.04/grub-core'
gmake[1]: *** [Makefile:11304: all-recursive] Error 1
gmake[1]: Leaving directory '/mnt/data/pkgsrc/work/netbsd-9-unpriv/sysutils/grub2/work/grub-2.04'
gmake: *** [Makefile:3343: all] Error 2
*** Error code 2

Stop.
bmake[1]: stopped in /mnt/data/pkgsrc/HEAD/sysutils/grub2
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/sysutils/grub2

Frédéric Fauberteau <triaxx>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by triaxx (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5