help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Loongson: make failed


From: Stayvoid
Subject: Loongson: make failed
Date: Wed, 10 Oct 2012 00:08:03 +0400

Hi,

I'm trying to install GRUB from sources [1] on Lemote YeeLoong
(Loongson). I'm using Parabola GNU/Linux-libre.

I installed the following deps:

 # pacman -Syu
 # pacman -S gcc make bison binutils flex \
 > gettext autogen python autoconf automake \
 > bdf-unifont

(I decided to try without libdevmapper.)

I edited L245 in configure.ac to fix unifont-related error:

 for dir in . /usr/src /usr/share/fonts/X11/misc
/usr/share/fonts/unifont /usr/share/fonts/unifont /usr/share/fonts/uni
/usr/share/fonts/misc; do

Ran the following commands:

 # ./autgen.sh
 # ./configure
 # make

The latter failed with this error:

 ./stdio.h:456:1: error: 'gets' undeclared here (not in a function)
 make[4]: *** [argp-eexst.o] Error 1
 make[4]: Leaving directory `/home/grub-source/grub/grub-core/gnulib'
 make[3]: *** [all-recursive] Error 1
 make[3]: Leaving directory `/home/grub-source/grub/grub-core/gnulib'
 make[2]: *** [all] Error 2
 make[2]: Leaving directory `/home/grub-source/grub/grub-core/gnulib'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/home/grub-source/grub'
 make: *** [all] Error 2

Then I found this message [2].

I downloaded the patch and installed it:

 # wget http://lists.gnu.org/archive/html/grub-devel/2012-07/txtHRnXiHYUrM.txt
 # pacman -S patch
 # mv txtHRnXiHYUrM.txt stdio.h.patch
 # cd grub-core/gnulib
 # patch -b < stdio.h.patch

Ran make again:

 # cd ../..
 # make

But it failed with a slightly different error:

 ./stdio.h:457:1: error: 'gets' undeclared here (not in a function)
 make[4]: *** [argp-eexst.o] Error 1
 make[4]: Leaving directory `/home/grub-source/grub/grub-core/gnulib'
 make[3]: *** [all-recursive] Error 1
 make[3]: Leaving directory `/home/grub-source/grub/grub-core/gnulib'
 make[2]: *** [all] Error 2
 make[2]: Leaving directory `/home/grub-source/grub/grub-core/gnulib'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/home/grub-source/grub'
 make: *** [all] Error 2

I also tried  to comment the following line in stdio.h.

 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");

make crashed with the following error:

 kern/mips/startup.S: Assembler messages:
 kern/mips/startup.S:99: Error: Illegal operands `lb $t4,0($t2)'
 kern/mips/startup.S:100: Error: Illegal operands `sb $t4,0($t1)'
 make[3]: *** [kern/mips/kernel_exec-startup.o] Error 1
 make[3]: Leaving directory `/home/grub-source/grub/grub-core'
 make[2]: *** [all] Error 2
 make[2]: Leaving directory `/home/grub-source/grub/grub-core'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/home/grub-source/grub'
 make: *** [all] Error 2

Could you help me to fix this?

Thanks

[1] http://bzr.savannah.gnu.org/r/grub/trunk/grub
[2] http://lists.gnu.org/archive/html/grub-devel/2012-07/msg00007.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]