Bug#762307: grub2: FTBFS on mipsel: objcopy:none_decompress.img[.text]: File truncated

2014-09-26 Thread Jurica Stanojkovic
Hello,

I have attached a new patch.
It is tested on mipsel and i386.

--- grub2-2.02~beta2.orig/gentpl.py
+++ grub2-2.02~beta2/gentpl.py
@@ -753,7 +753,7 @@ def image(defn, platform):
 if test x$(TARGET_APPLE_LINKER) = x1; then \
   $(MACHO2IMG) $ $@; \
 else \
-  $(TARGET_OBJCOPY) $( + cname(defn) + _OBJCOPYFLAGS) --strip-unneeded 
-R .note -R .comment -R .note.gnu.build-id -R .reginfo -R .rel.dyn -R 
.note.gnu.gold-version $ $@; \
+  $(TARGET_OBJCOPY) $( + cname(defn) + _OBJCOPYFLAGS) --strip-unneeded 
-R .MIPS.abiflags -R .note -R .comment -R .note.gnu.build-id -R .reginfo -R 
.rel.dyn -R .note.gnu.gold-version $ $@; \
 fi
 )


Thank you!
Jurica
--- grub2-2.02~beta2.orig/gentpl.py
+++ grub2-2.02~beta2/gentpl.py
@@ -753,7 +753,7 @@ def image(defn, platform):
 if test x$(TARGET_APPLE_LINKER) = x1; then \
   $(MACHO2IMG) $ $@; \
 else \
-  $(TARGET_OBJCOPY) $( + cname(defn) + _OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .reginfo -R .rel.dyn -R .note.gnu.gold-version $ $@; \
+  $(TARGET_OBJCOPY) $( + cname(defn) + _OBJCOPYFLAGS) --strip-unneeded -R .MIPS.abiflags -R .note -R .comment -R .note.gnu.build-id -R .reginfo -R .rel.dyn -R .note.gnu.gold-version $ $@; \
 fi
 )
 


Bug#762307: grub2: FTBFS on mipsel: objcopy:none_decompress.img[.text]: File truncated

2014-09-26 Thread Colin Watson
On Fri, Sep 26, 2014 at 10:55:43AM +, Jurica Stanojkovic wrote:
 I have attached a new patch.
 It is tested on mipsel and i386.
 
 --- grub2-2.02~beta2.orig/gentpl.py
 +++ grub2-2.02~beta2/gentpl.py
 @@ -753,7 +753,7 @@ def image(defn, platform):
  if test x$(TARGET_APPLE_LINKER) = x1; then \
$(MACHO2IMG) $ $@; \
  else \
 -  $(TARGET_OBJCOPY) $( + cname(defn) + _OBJCOPYFLAGS) --strip-unneeded 
 -R .note -R .comment -R .note.gnu.build-id -R .reginfo -R .rel.dyn -R 
 .note.gnu.gold-version $ $@; \
 +  $(TARGET_OBJCOPY) $( + cname(defn) + _OBJCOPYFLAGS) --strip-unneeded 
 -R .MIPS.abiflags -R .note -R .comment -R .note.gnu.build-id -R .reginfo -R 
 .rel.dyn -R .note.gnu.gold-version $ $@; \
  fi
  )
 

Thanks for testing.  I committed a similar version this morning (when I
tagged this bug pending).

Regards,

-- 
Colin Watson   [cjwat...@debian.org]


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#762307: grub2: FTBFS on mipsel: objcopy:none_decompress.img[.text]: File truncated

2014-09-25 Thread Jurica Stanojkovic
Control: tags -1 + patch

Hello,

I have tried to build package on mipsel
with change that  Colin Watson has suggested (-R .MIPS.abiflags).

With that change package does build successfully on mipsel.
Patch resolving this issue is attached.

Regards,
Jurica
--- grub2-2.02~beta2.orig/gentpl.py
+++ grub2-2.02~beta2/gentpl.py
@@ -753,7 +753,11 @@ def image(defn, platform):
 if test x$(TARGET_APPLE_LINKER) = x1; then \
   $(MACHO2IMG) $ $@; \
 else \
-  $(TARGET_OBJCOPY) $( + cname(defn) + _OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .reginfo -R .rel.dyn -R .note.gnu.gold-version $ $@; \
+  case $(target_cpu)-$(target_vendor) in \
+mipsel-*) $(TARGET_OBJCOPY) $( + cname(defn) + _OBJCOPYFLAGS) --strip-unneeded -R .MIPS.abiflags -R .note -R .comment -R .note.gnu.build-id -R .reginfo -R .rel.dyn -R .note.gnu.gold-version $ $@; ;; \
+mips-*) $(TARGET_OBJCOPY) $( + cname(defn) + _OBJCOPYFLAGS) --strip-unneeded -R .MIPS.abiflags -R .note -R .comment -R .note.gnu.build-id -R .reginfo -R .rel.dyn -R .note.gnu.gold-version $ $@; ;; \
+*) $(TARGET_OBJCOPY) $( + cname(defn) + _OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .reginfo -R .rel.dyn -R .note.gnu.gold-version $ $@; ;; \
+  esac \
 fi
 )
 


Bug#762307: grub2: FTBFS on mipsel: objcopy:none_decompress.img[.text]: File truncated

2014-09-25 Thread Colin Watson
On Thu, Sep 25, 2014 at 03:52:52PM +, Jurica Stanojkovic wrote:
 --- grub2-2.02~beta2.orig/gentpl.py
 +++ grub2-2.02~beta2/gentpl.py
 @@ -753,7 +753,11 @@ def image(defn, platform):
  if test x$(TARGET_APPLE_LINKER) = x1; then \
$(MACHO2IMG) $ $@; \
  else \
 -  $(TARGET_OBJCOPY) $( + cname(defn) + _OBJCOPYFLAGS) --strip-unneeded 
 -R .note -R .comment -R .note.gnu.build-id -R .reginfo -R .rel.dyn -R 
 .note.gnu.gold-version $ $@; \
 +  case $(target_cpu)-$(target_vendor) in \
 +mipsel-*) $(TARGET_OBJCOPY) $( + cname(defn) + _OBJCOPYFLAGS) 
 --strip-unneeded -R .MIPS.abiflags -R .note -R .comment -R .note.gnu.build-id 
 -R .reginfo -R .rel.dyn -R .note.gnu.gold-version $ $@; ;; \
 +mips-*) $(TARGET_OBJCOPY) $( + cname(defn) + _OBJCOPYFLAGS) 
 --strip-unneeded -R .MIPS.abiflags -R .note -R .comment -R .note.gnu.build-id 
 -R .reginfo -R .rel.dyn -R .note.gnu.gold-version $ $@; ;; \
 +*) $(TARGET_OBJCOPY) $( + cname(defn) + _OBJCOPYFLAGS) 
 --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .reginfo -R 
 .rel.dyn -R .note.gnu.gold-version $ $@; ;; \
 +  esac \
  fi
  )
  

I think we could just remove that section on all architectures; there
doesn't seem any particular reason to make the code more complex in
order to do it just on mips*.

-- 
Colin Watson   [cjwat...@debian.org]


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#762307: grub2: FTBFS on mipsel: objcopy:none_decompress.img[.text]: File truncated

2014-09-23 Thread Colin Watson
On Sun, Sep 21, 2014 at 01:39:29AM +0200, Cyril Brulebois wrote:
 your package started FTBFSing on mipsel with 2.02~beta2-12, confirmed on
 2.02~beta2-13. Hopefully pasting the right lines, sorry if the parallel
 build makes that inaccurate:
 | gcc-4.9 -DHAVE_CONFIG_H -I. -I../../../grub-core -I..  
 -Wno-unused-but-set-variable -Wall -W -I../../../include -I../include  
 -DGRUB_CPU_MIPSEL=1 -DGRUB_MACHINE_MIPS_LOONGSON=1 
 -DGRUB_MACHINE=MIPS_LOONGSON -nostdinc -isystem 
 /usr/lib/gcc/mipsel-linux-gnu/4.9/include 
 -DGRUB_FILE=\boot/mips/loongson/fuloong2f.S\ -I. -I../../../grub-core -I.. 
 -I../../.. -I../../../include -I../include 
 -I../../../grub-core/lib/libgcrypt-grub/src/ -g 
 -DGRUB_FILE=\boot/mips/loongson/fuloong2f.S\ -I. -I../../../grub-core -I.. 
 -I../../.. -I../../../include -I../include 
 -I../../../grub-core/lib/libgcrypt-grub/src/ -DASM_FILE=1 -c -o 
 boot/mips/loongson/fwstart_fuloong2f_image-fuloong2f.o `test -f 
 'boot/mips/loongson/fuloong2f.S' || echo 
 '../../../grub-core/'`boot/mips/loongson/fuloong2f.S
 | if test x0 = x1; then   ../grub-macho2img none_decompress.image 
 none_decompress.img; else   objcopy  -O binary  --strip-unneeded -R .note -R 
 .comment -R .note.gnu.build-id -R .reginfo -R .rel.dyn -R 
 .note.gnu.gold-version none_decompress.image none_decompress.img; fi
 | BFD: Warning: Writing section `.text' to huge (ie negative) file offset 
 0x7fcfff48.
 | BFD: Warning: Writing section `.data' to huge (ie negative) file offset 
 0x7fd003d8.
 | objcopy:none_decompress.img[.text]: File truncated
 | make[5]: *** [none_decompress.img] Error 1
 | make[5]: *** Waiting for unfinished jobs
 | Makefile:41812: recipe for target 'none_decompress.img' failed

Looks like
https://lists.gnu.org/archive/html/grub-devel/2014-08/msg00021.html (and
https://lists.gnu.org/archive/html/grub-devel/2014-09/msg00037.html) was
actually a general mips* problem triggered by new binutils.  Chasing
this down on grub-devel.

-- 
Colin Watson   [cjwat...@debian.org]


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#762307: grub2: FTBFS on mipsel: objcopy:none_decompress.img[.text]: File truncated

2014-09-20 Thread Cyril Brulebois
Source: grub2
Version: 2.02~beta2-12
Severity: serious
Justification: FTBFS

Hi,

your package started FTBFSing on mipsel with 2.02~beta2-12, confirmed on
2.02~beta2-13. Hopefully pasting the right lines, sorry if the parallel
build makes that inaccurate:
| gcc-4.9 -DHAVE_CONFIG_H -I. -I../../../grub-core -I..  
-Wno-unused-but-set-variable -Wall -W -I../../../include -I../include  
-DGRUB_CPU_MIPSEL=1 -DGRUB_MACHINE_MIPS_LOONGSON=1 -DGRUB_MACHINE=MIPS_LOONGSON 
-nostdinc -isystem /usr/lib/gcc/mipsel-linux-gnu/4.9/include 
-DGRUB_FILE=\boot/mips/loongson/fuloong2f.S\ -I. -I../../../grub-core -I.. 
-I../../.. -I../../../include -I../include 
-I../../../grub-core/lib/libgcrypt-grub/src/ -g 
-DGRUB_FILE=\boot/mips/loongson/fuloong2f.S\ -I. -I../../../grub-core -I.. 
-I../../.. -I../../../include -I../include 
-I../../../grub-core/lib/libgcrypt-grub/src/ -DASM_FILE=1 -c -o 
boot/mips/loongson/fwstart_fuloong2f_image-fuloong2f.o `test -f 
'boot/mips/loongson/fuloong2f.S' || echo 
'../../../grub-core/'`boot/mips/loongson/fuloong2f.S
| if test x0 = x1; then   ../grub-macho2img none_decompress.image 
none_decompress.img; else   objcopy  -O binary  --strip-unneeded -R .note -R 
.comment -R .note.gnu.build-id -R .reginfo -R .rel.dyn -R 
.note.gnu.gold-version none_decompress.image none_decompress.img; fi
| BFD: Warning: Writing section `.text' to huge (ie negative) file offset 
0x7fcfff48.
| BFD: Warning: Writing section `.data' to huge (ie negative) file offset 
0x7fd003d8.
| objcopy:none_decompress.img[.text]: File truncated
| make[5]: *** [none_decompress.img] Error 1
| make[5]: *** Waiting for unfinished jobs
| Makefile:41812: recipe for target 'none_decompress.img' failed

Full build log:
  
https://buildd.debian.org/status/fetch.php?pkg=grub2arch=mipselver=2.02~beta2-13stamp=1411238872

Mraw,
KiBi.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org