* I've a problem to compile i386 grub-emu
@ 2008-07-20 10:08 Felix Zielcke
2008-07-20 10:24 ` Marco Gerards
0 siblings, 1 reply; 5+ messages in thread
From: Felix Zielcke @ 2008-07-20 10:08 UTC (permalink / raw)
To: grub-devel
I have a x86_64 Kernel and want to have a 32bit grub-emu so modules are working.
Even in a 32bit chroot running a shell with linux32 so uname -m reports i686 I can't get it to compile
Btw. make distclean didn't worked for my already used 64bit grub2 SVN directory I needed to do a clean checkout
# ./configure --enable-grub-emu
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
# make grub-emu
cd . && autoheader
echo timestamp > ./stamp-h.in
gcc -Iutil -I./util -I. -Iinclude -I./include -Wall -W -DGRUB_LIBDIR=\"/usr/local/lib/`echo grub/i386-pc | sed
's,x,x,'`\" -g -O2 -DGRUB_UTIL=1 -MD -c -o grub_emu-util_console.o util/console.c
util/console.c: In function 'grub_ncurses_putchar':
util/console.c:88: warning: implicit declaration of function 'addch'
util/console.c: In function 'grub_ncurses_setcolor':
util/console.c:120: warning: implicit declaration of function 'color_set'
util/console.c: At top level:
util/console.c:123: error: 'ERR' undeclared here (not in a function)
util/console.c: In function 'grub_ncurses_checkkey':
util/console.c:135: warning: implicit declaration of function 'wtimeout'
util/console.c:135: error: 'stdscr' undeclared (first use in this function)
util/console.c:135: error: (Each undeclared identifier is reported only once
util/console.c:135: error: for each function it appears in.)
util/console.c:136: warning: implicit declaration of function 'getch'
util/console.c: In function 'grub_ncurses_getkey':
util/console.c:160: error: 'stdscr' undeclared (first use in this function)
util/console.c:166: error: 'KEY_LEFT' undeclared (first use in this function)
util/console.c:170: error: 'KEY_RIGHT' undeclared (first use in this function)
util/console.c:174: error: 'KEY_UP' undeclared (first use in this function)
util/console.c:178: error: 'KEY_DOWN' undeclared (first use in this function)
util/console.c:182: error: 'KEY_IC' undeclared (first use in this function)
util/console.c:186: error: 'KEY_DC' undeclared (first use in this function)
util/console.c:190: error: 'KEY_BACKSPACE' undeclared (first use in this function)
util/console.c:197: error: 'KEY_HOME' undeclared (first use in this function)
util/console.c:201: error: 'KEY_END' undeclared (first use in this function)
util/console.c:205: error: 'KEY_NPAGE' undeclared (first use in this function)
util/console.c:209: error: 'KEY_PPAGE' undeclared (first use in this function)
util/console.c: In function 'grub_ncurses_getxy':
util/console.c:223: warning: implicit declaration of function 'getyx'
util/console.c:223: error: 'stdscr' undeclared (first use in this function)
util/console.c: In function 'grub_ncurses_getwh':
util/console.c:234: warning: implicit declaration of function 'getmaxyx'
util/console.c:234: error: 'stdscr' undeclared (first use in this function)
util/console.c: In function 'grub_ncurses_gotoxy':
util/console.c:242: warning: implicit declaration of function 'move'
util/console.c: In function 'grub_ncurses_cls':
util/console.c:248: warning: implicit declaration of function 'clear'
util/console.c:249: warning: implicit declaration of function 'refresh'
util/console.c: In function 'grub_ncurses_setcursor':
util/console.c:255: warning: implicit declaration of function 'curs_set'
util/console.c: In function 'grub_ncurses_init':
util/console.c:267: warning: implicit declaration of function 'initscr'
util/console.c:268: warning: implicit declaration of function 'raw'
util/console.c:269: warning: implicit declaration of function 'noecho'
util/console.c:270: warning: implicit declaration of function 'scrollok'
util/console.c:270: error: 'stdscr' undeclared (first use in this function)
util/console.c:270: error: 'TRUE' undeclared (first use in this function)
util/console.c:272: warning: implicit declaration of function 'nonl'
util/console.c:273: warning: implicit declaration of function 'intrflush'
util/console.c:273: error: 'FALSE' undeclared (first use in this function)
util/console.c:274: warning: implicit declaration of function 'keypad'
util/console.c:275: warning: implicit declaration of function 'start_color'
util/console.c: In function 'grub_ncurses_fini':
util/console.c:283: warning: implicit declaration of function 'endwin'
make: *** [grub_emu-util_console.o] Fehler 1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I've a problem to compile i386 grub-emu
2008-07-20 10:08 I've a problem to compile i386 grub-emu Felix Zielcke
@ 2008-07-20 10:24 ` Marco Gerards
2008-07-20 10:30 ` Felix Zielcke
2008-07-20 14:59 ` Felix Zielcke
0 siblings, 2 replies; 5+ messages in thread
From: Marco Gerards @ 2008-07-20 10:24 UTC (permalink / raw)
To: The development of GRUB 2
"Felix Zielcke" <fzielcke@z-51.de> writes:
> I have a x86_64 Kernel and want to have a 32bit grub-emu so modules are working.
> Even in a 32bit chroot running a shell with linux32 so uname -m reports i686 I can't get it to compile
You need to install ncurses and the -dev package. Which distribution
do you use?
> Btw. make distclean didn't worked for my already used 64bit grub2 SVN directory I needed to do a clean checkout
>
>
> # ./configure --enable-grub-emu
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
>
> # make grub-emu
> cd . && autoheader
> echo timestamp > ./stamp-h.in
> gcc -Iutil -I./util -I. -Iinclude -I./include -Wall -W
> -DGRUB_LIBDIR=\"/usr/local/lib/`echo grub/i386-pc | sed 's,x,x,'`\" -g
> -O2 -DGRUB_UTIL=1 -MD -c -o grub_emu-util_console.o util/console.c
> util/console.c: In function 'grub_ncurses_putchar':
I wonder why this got through the autoconf test.
--
Marco
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I've a problem to compile i386 grub-emu
2008-07-20 10:24 ` Marco Gerards
@ 2008-07-20 10:30 ` Felix Zielcke
2008-07-20 14:59 ` Felix Zielcke
1 sibling, 0 replies; 5+ messages in thread
From: Felix Zielcke @ 2008-07-20 10:30 UTC (permalink / raw)
To: The development of GRUB 2
From: "Marco Gerards" <mgerards@xs4all.nl>
> You need to install ncurses and the -dev package. Which distribution
> do you use?
>
debian unstable.
I have libncurses5-dev installed
I used debootstrap --variant=buildd that did it I think
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I've a problem to compile i386 grub-emu
2008-07-20 10:24 ` Marco Gerards
2008-07-20 10:30 ` Felix Zielcke
@ 2008-07-20 14:59 ` Felix Zielcke
2008-07-20 21:15 ` Pavel Roskin
1 sibling, 1 reply; 5+ messages in thread
From: Felix Zielcke @ 2008-07-20 14:59 UTC (permalink / raw)
To: The development of GRUB 2
From: "Marco Gerards" <mgerards@xs4all.nl>
> I wonder why this got through the autoconf test.
Rerunning ./configure with --enable-grub-emu and then make grub-emu did work
Maybe it's possible to disallow compiling grub-emu if --enable-grub-emu wasn't given to configure?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: I've a problem to compile i386 grub-emu
2008-07-20 14:59 ` Felix Zielcke
@ 2008-07-20 21:15 ` Pavel Roskin
0 siblings, 0 replies; 5+ messages in thread
From: Pavel Roskin @ 2008-07-20 21:15 UTC (permalink / raw)
To: The development of GRUB 2
On Sun, 2008-07-20 at 16:59 +0200, Felix Zielcke wrote:
> From: "Marco Gerards" <mgerards@xs4all.nl>
>
> > I wonder why this got through the autoconf test.
>
> Rerunning ./configure with --enable-grub-emu and then make grub-emu did work
>
> Maybe it's possible to disallow compiling grub-emu if --enable-grub-emu wasn't given to configure?
It's possible, but it will make the makefiles more complex. I think the
focus should be on refactoring the build system. Then making such
improvements could be done in one place, not for every platform.
--
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-07-20 21:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-20 10:08 I've a problem to compile i386 grub-emu Felix Zielcke
2008-07-20 10:24 ` Marco Gerards
2008-07-20 10:30 ` Felix Zielcke
2008-07-20 14:59 ` Felix Zielcke
2008-07-20 21:15 ` Pavel Roskin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.