Modify

Opened 5 years ago

Closed 5 years ago

#12488 closed defect (invalid)

Unable to build grub2

Reported by: hamvil Owned by: developers
Priority: highest Milestone: Chaos Calmer 15.05
Component: base system Version: Trunk
Keywords: grub2 Cc:

Description

When trying to build an image using the x86 target, I get the following error:

make[7]: Entering directory `/home/rriggio/src/kamikaze/build_dir/host/grub-2.00/grub-core/gnulib'
make[8]: Entering directory `/home/rriggio/src/kamikaze/build_dir/host/grub-2.00/grub-core/gnulib'
gcc -DHAVE_CONFIG_H -I. -I../..  -I../../intl -I/home/rriggio/src/kamikaze/staging_dir/host/include  -O2 -I/home/rriggio/src/kamikaze/staging_dir/host/include -MT argp-eexst.o -MD -MP -MF .deps/argp-eexst.Tpo -c -o argp-eexst.o argp-eexst.c
In file included from argp.h:22:0,
                 from argp-eexst.c:25:
./stdio.h:456:1: error: 'gets' undeclared here (not in a function)
make[8]: *** [argp-eexst.o] Error 1
make[8]: Leaving directory `/home/rriggio/src/kamikaze/build_dir/host/grub-2.00/grub-core/gnulib'
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory `/home/rriggio/src/kamikaze/build_dir/host/grub-2.00/grub-core/gnulib'
make[6]: *** [all] Error 2
make[6]: Leaving directory `/home/rriggio/src/kamikaze/build_dir/host/grub-2.00/grub-core/gnulib'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/rriggio/src/kamikaze/build_dir/host/grub-2.00'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/rriggio/src/kamikaze/build_dir/host/grub-2.00'
make[3]: *** [/home/rriggio/src/kamikaze/build_dir/host/grub-2.00/.built] Error 2
make[3]: Leaving directory `/home/rriggio/src/kamikaze/package/boot/grub2'
make[2]: *** [package/boot/grub2/host/compile] Error 2
make[2]: Leaving directory `/home/rriggio/src/kamikaze'
make[1]: *** [/home/rriggio/src/kamikaze/staging_dir/target-i386_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/rriggio/src/kamikaze'
make: *** [world] Error 2

Attachments (0)

Change History (7)

comment:1 Changed 5 years ago by florian

Can you give more intormation about your host system? in particular the gcc and glibc versions used by your machine.

comment:2 Changed 5 years ago by millefiore

i have a similar error.

The machine that i'm using is ubuntu 11.10, 32-bit

uname -a
Linux gulaman 3.0.0-19-generic #33-Ubuntu SMP Thu Apr 19 19:05:57 UTC 2012 i686 i686 i386 GNU/Linux

gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6.1/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)

ldd --version
ldd (Ubuntu EGLIBC 2.13-20ubuntu5.1) 2.13

comment:3 Changed 5 years ago by millefiore

also tried compiling after svn update, make distclean but to no avail

comment:4 Changed 5 years ago by hamvil

I'm using a Fedora 18-alpha.

uname -a
Linux localhost.localdomain 3.6.7-5.fc18.i686 #1 SMP Tue Nov 20 20:03:18 UTC 2012 i686 i686 i386 GNU/Linux

gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-redhat-linux/4.7.2/lto-wrapper
Target: i686-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --disable-build-with-cxx --disable-build-poststage1-with-cxx --with-system-zlib --enable-cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch=i686 --build=i686-redhat-linux
Thread model: posix
gcc version 4.7.2 20121109 (Red Hat 4.7.2-8) (GCC)

ldd --version
ldd (GNU libc) 2.16
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

The error is produced after trying to compile an image for an alix2 board starting from a clean checkout.

comment:5 Changed 5 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

comment:6 Changed 5 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

i know you read this, then answer in irc!!

luci_splash, how do i get it working?

comment:7 Changed 5 years ago by jow

  • Resolution set to invalid
  • Status changed from reopened to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.