Hi,

Quoting Vladimir 'φ-coder/phcoder' Serbinenko, who wrote the following on...:

On 09.11.2011 07:17, Seth Goldberg wrote:
Hi,

  Just a followup -- it appears that the root cause is a missing
"-m64" -- since the compilation for this platform should be done with
-m64, the preprocessing done for .lst generation should also be done
with that cflag, otherwise (at least in this case), the library gets
confused.

 Adding 'TARGET_CPPFLAGS=-m64" to the configure line allowed the build
to finish without errors (though I'm not sure if that's the proper fix).
Please try following patch:
=== modified file 'configure.ac'
--- configure.ac    2011-11-08 11:38:30 +0000
+++ configure.ac    2011-11-09 09:08:28 +0000
@@ -464,6 +464,7 @@
  # Force 32-bit mode.
  TARGET_CFLAGS="$TARGET_CFLAGS -m32"
  TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m32"
+  TARGET_CPPFLAGS="$TARGET_CPPFLAGS -m32"
  TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
  TARGET_MODULE_FORMAT="elf32"
fi
@@ -472,6 +473,7 @@
  # Force 64-bit mode.
  TARGET_CFLAGS="$TARGET_CFLAGS -m64"
  TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m64"
+  TARGET_CPPFLAGS="$TARGET_CPPFLAGS -m64"
  TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
  TARGET_MODULE_FORMAT="elf64"
fi


  That fixed the error.  I vote for a commit :).

 Thanks,
 --S
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to