can't compile r220 because of setjmp.S
Hi list,
r2220 on amd64 fails for me with:
cc -Ilib/i386 -I/tmp/buildd/grub2-1.96+20090516/lib/i386 -I. -I./include -I/tmp/buildd/grub2-1.96+20090516/include -Wall -W -DASM_FILE=1 -MD -c -o setjmp_mod-lib_i386_setjmp.o /tmp/buildd/grub2-1.96+20090516/lib/i386/setjmp.Ssetjmp.S: Assembler messages:
setjmp.S:33: Error: suffix or operands invalid for pop' setjmp.S:37: Error: suffix or operands invalid for jmp' setjmp.S:55: Error: suffix or operands invalid for `jmp'
Both with binutils from Debian sid and experimental
GNU assembler version 2.19.1 (x86_64-linux-gnu) using BFD version (GNU Binutils for Debian) 2.19.1 GNU assembler version 2.19.51 (x86_64-linux-gnu) using BFD version (GNU Binutils for Debian) 2.19.51.20090508
I don't know any ASM at all so I can't fix this.
--
Felix Zielcke
Quoted 9 lines · Felix Zielcke
Hi list,
r2220 on amd64 fails for me with:
cc -Ilib/i386 -I/tmp/buildd/grub2-1.96+20090516/lib/i386 -I. -I./include -I/tmp/buildd/grub2-1.96+20090516/include -Wall -W -DASM_FILE=1 -MD -c -o setjmp_mod-lib_i386_setjmp.o
/tmp/buildd/grub2-1.96+20090516/lib/i386/setjmp.Ssetjmp.S: Assembler messages:
setjmp.S:33: Error: suffix or operands invalid for `pop'
setjmp.S:37: Error: suffix or operands invalid for `jmp'
setjmp.S:55: Error: suffix or operands invalid for `jmp'
It tries to compile 32-bit version. You should say it to take 64-bit one. I have to go to eat now. When I come back if you haven't done it yet I'll do it
Quoted 16 lines
Both with binutils from Debian sid and experimental
GNU assembler version 2.19.1 (x86_64-linux-gnu) using BFD version (GNU Binutils for Debian) 2.19.1 GNU assembler version 2.19.51 (x86_64-linux-gnu) using BFD version (GNU Binutils for Debian) 2.19.51.20090508I don't know any ASM at all so I can't fix this.
--
Felix Zielcke_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'phcoder' Serbinenko
Am Samstag, den 16.05.2009, 18:34 +0200 schrieb Vladimir 'phcoder' Serbinenko:
Quoted 5 lines · Felix Zielcke
Quoted 4 lines
Hi list,
r2220 on amd64 fails for me with:
Quoted 8 lines
Quoted 5 lines
cc -Ilib/i386 -I/tmp/buildd/grub2-1.96+20090516/lib/i386 -I. -I./include -I/tmp/buildd/grub2-1.96+20090516/include -Wall -W -DASM_FILE=1 -MD -c -o setjmp_mod-lib_i386_setjmp.o
/tmp/buildd/grub2-1.96+20090516/lib/i386/setjmp.Ssetjmp.S: Assembler messages:
setjmp.S:33: Error: suffix or operands invalid forpop' setjmp.S:37: Error: suffix or operands invalid forjmp' setjmp.S:55: Error: suffix or operands invalid for `jmp'It tries to compile 32-bit version. You should say it to take 64-bit one. I have to go to eat now. When I come back if you haven't done it yet I'll do it
As said on IRC, it seems like the -m32 was missing there, even though it should be set through the COMMON_CSFLAGS in i386-pc.rmk.
But that did the trick in i386.rmk:
-setjmp_mod_CFLAGS = $(COMMON_CFLAGS)
+setjmp_mod_ASFLAGS = $(COMMON_ASFLAGS)
Signature · 1 line
Felix Zielcke
Am Samstag, den 16.05.2009, 18:52 +0200 schrieb Felix Zielcke:
Review
Quoted 6 lines
As said on IRC, it seems like the -m32 was missing there, even though it should be set through the
COMMON_CSFLAGSin i386-pc.rmk.
But that did the trick in i386.rmk:(quoted diff) +1
-1-setjmp_mod_CFLAGS = $(COMMON_CFLAGS) +setjmp_mod_ASFLAGS = $(COMMON_ASFLAGS)
Commited this change as Acked-by Vladimir on IRC.
Signature · 1 line
Felix Zielcke
Quoted 10 lines · Felix Zielcke
Am Samstag, den 16.05.2009, 18:52 +0200 schrieb Felix Zielcke:
Review
Quoted 6 lines
As said on IRC, it seems like the -m32 was missing there, even though it should be set through the
COMMON_CSFLAGSin i386-pc.rmk.
But that did the trick in i386.rmk:(quoted diff) +1
-1-setjmp_mod_CFLAGS = $(COMMON_CFLAGS) +setjmp_mod_ASFLAGS = $(COMMON_ASFLAGS)Commited this change as Acked-by Vladimir on IRC.
You only changed it in i386. Given that a .S file is always "compiled" by the assembler, shouldn't the change be applied to all other platforms too?
Signature · 1 line
-- Lazy, Oblivious, Recurrent Disaster -- Habbit
2009/5/16 Javier Martín <[email protected]>:
Quoted 7 lines · Felix Zielcke
Quoted 6 lines
Am Samstag, den 16.05.2009, 18:52 +0200 schrieb Felix Zielcke:
Quoted 4 lines
As said on IRC, it seems like the -m32 was missing there, even though it should be set through the
COMMON_CSFLAGSin i386-pc.rmk.
But that did the trick in i386.rmk:
Quoted 8 lines
Quoted 4 lines
Review
Quoted 2 lines
(quoted diff) +1
-1-setjmp_mod_CFLAGS = $(COMMON_CFLAGS) +setjmp_mod_ASFLAGS = $(COMMON_ASFLAGS)Commited this change as Acked-by Vladimir on IRC.
You only changed it in i386. Given that a .S file is always "compiled" by the assembler, shouldn't the change be applied to all other platforms too?
True. I didn't see it was the same mistake in other arches as well. Nice catch
Quoted 9 lines
--
-- Lazy, Oblivious, Recurrent Disaster -- Habbit_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'phcoder' Serbinenko
Am Samstag, den 16.05.2009, 19:27 +0200 schrieb Vladimir 'phcoder' Serbinenko:
Quoted 12 lines
2009/5/16 Javier Martín <[email protected]>:
Quoted 11 lines · Felix Zielcke
Quoted 10 lines
Am Samstag, den 16.05.2009, 18:52 +0200 schrieb Felix Zielcke:
Review
Quoted 6 lines
As said on IRC, it seems like the -m32 was missing there, even though it should be set through the
COMMON_CSFLAGSin i386-pc.rmk.
But that did the trick in i386.rmk:(quoted diff) +1
-1-setjmp_mod_CFLAGS = $(COMMON_CFLAGS) +setjmp_mod_ASFLAGS = $(COMMON_ASFLAGS)Commited this change as Acked-by Vladimir on IRC.
Quoted 5 lines
Quoted 4 lines
You only changed it in i386. Given that a .S file is always "compiled" by the assembler, shouldn't the change be applied to all other platforms too?
True. I didn't see it was the same mistake in other arches as well. Nice catch
Changed now for the other arches too.
Signature · 1 line
Felix Zielcke
Hi,
Oh, sorry about the setjmp breakage. BTW, I've written a wiki page on lua script engine:
http://grub.enbug.org/LUASupport
Quoted 31 lines · Felix Zielcke
Am Samstag, den 16.05.2009, 19:27 +0200 schrieb Vladimir 'phcoder' Serbinenko:
Quoted 12 lines
2009/5/16 Javier Martín <[email protected]>:
Quoted 11 lines · Felix Zielcke
Quoted 10 lines
Am Samstag, den 16.05.2009, 18:52 +0200 schrieb Felix Zielcke:
Review
Quoted 6 lines
As said on IRC, it seems like the -m32 was missing there, even though it should be set through the
COMMON_CSFLAGSin i386-pc.rmk.
But that did the trick in i386.rmk:(quoted diff) +1
-1-setjmp_mod_CFLAGS = $(COMMON_CFLAGS) +setjmp_mod_ASFLAGS = $(COMMON_ASFLAGS)Commited this change as Acked-by Vladimir on IRC.
Quoted 5 lines
Quoted 4 lines
You only changed it in i386. Given that a .S file is always "compiled" by the assembler, shouldn't the change be applied to all other platforms too?
True. I didn't see it was the same mistake in other arches as well. Nice catch
Changed now for the other arches too.
--
Felix Zielcke_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 1 line
Bean