I recently purchased a Tyan S2882 motherboard so that I could play with linuxbios. Alas, even purchasing a supported board with a tutorial isn't straight forward. I have cut and pasted the Config example for FILO with grub, and editing only the
MENULST_FILE = "hda1:/grub/menu.lst" to MENULST_FILE = "hda1:/boot/grub/menu.lst" to reflect the location of my grub's menu.lst file.
But, it won't compile. Any help?
We're going to need a lot more details. What doesn't compile - filo? What's the error you get? What version of GCC do you use?
Thanks, Ward
I'm trying to compile filo-0.5 (It's at the beginning of the tutorial, so I've started there. I may well have other problems later. (If someone wants to send me a compiled linuxbios for the S2882 using the ATI bios with a payload, that would be ok!) The last few lines of the output are:
... make[1]: Leaving directory `/home/jebradl/filo-0.5/drivers/usb' make -C i386 make[1]: Entering directory `/home/jebradl/filo-0.5/i386' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/jebradl/filo-0.5/i386' ld -m elf_i386 -N -T i386/ldscript -o filo main/builtin.o main/grub/builtin.o fs/builtin.o drivers/builtin.o drivers/usb/builtin.o i386/builtin.o /usr/lib/gcc/x86_64-linux-gnu/4.1.2/32/libgcc.a main/builtin.o: In function `number': printf.c:(.text+0x924): undefined reference to `__stack_chk_fail' main/builtin.o: In function `elf_load': (.text+0x18c6): undefined reference to `__stack_chk_fail' main/grub/builtin.o: In function `run_menu': stage2.c:(.text+0xe76): undefined reference to `__stack_chk_fail' main/grub/builtin.o: In function `terminfo_func': builtins.c:(.text+0x1510): undefined reference to `__stack_chk_fail' main/grub/builtin.o: In function `md5crypt_func': builtins.c:(.text+0x1c7d): undefined reference to `__stack_chk_fail' main/grub/builtin.o:builtins.c:(.text+0x1db7): more undefined references to `__stack_chk_fail' follow make: *** [filo] Error 1
I've attempted the compile with gcc 4.1.2 (Ubuntu 4.1.2-0ubuntu4) on kubuntu feisty. I have the S2882 motherboard without builtin SCSI. I have 2 processors installed. The drive is an IDE drive. A floppy and CDROM are also installed.
Thank you.
On Sun, Apr 29, 2007 at 09:24:17AM -0500, James E. Bradley wrote:
I'm trying to compile filo-0.5 (It's at the beginning of the tutorial, so I've started there. I may well have other problems later. (If someone wants to send me a compiled linuxbios for the S2882 using the ATI bios with a payload, that would be ok!) The last few lines of the output are:
... make[1]: Leaving directory `/home/jebradl/filo-0.5/drivers/usb' make -C i386 make[1]: Entering directory `/home/jebradl/filo-0.5/i386' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/jebradl/filo-0.5/i386' ld -m elf_i386 -N -T i386/ldscript -o filo main/builtin.o main/grub/builtin.o fs/builtin.o drivers/builtin.o drivers/usb/builtin.o i386/builtin.o /usr/lib/gcc/x86_64-linux-gnu/4.1.2/32/libgcc.a main/builtin.o: In function `number': printf.c:(.text+0x924): undefined reference to `__stack_chk_fail' main/builtin.o: In function `elf_load': (.text+0x18c6): undefined reference to `__stack_chk_fail' main/grub/builtin.o: In function `run_menu': stage2.c:(.text+0xe76): undefined reference to `__stack_chk_fail' main/grub/builtin.o: In function `terminfo_func': builtins.c:(.text+0x1510): undefined reference to `__stack_chk_fail' main/grub/builtin.o: In function `md5crypt_func': builtins.c:(.text+0x1c7d): undefined reference to `__stack_chk_fail' main/grub/builtin.o:builtins.c:(.text+0x1db7): more undefined references to `__stack_chk_fail' follow make: *** [filo] Error 1
I've attempted the compile with gcc 4.1.2 (Ubuntu 4.1.2-0ubuntu4) on kubuntu feisty.
Try GCC 4.0 or even 3.4.
Thanks, Ward.
On Sun, Apr 29, 2007 at 10:30:52AM -0400, Ward Vandewege wrote:
ld -m elf_i386 -N -T i386/ldscript -o filo main/builtin.o main/grub/builtin.o fs/builtin.o drivers/builtin.o drivers/usb/builtin.o i386/builtin.o /usr/lib/gcc/x86_64-linux-gnu/4.1.2/32/libgcc.a main/builtin.o: In function `number': printf.c:(.text+0x924): undefined reference to `__stack_chk_fail'
[..]
I've attempted the compile with gcc 4.1.2 (Ubuntu 4.1.2-0ubuntu4) on kubuntu feisty.
Try GCC 4.0 or even 3.4.
For the record, I build FILO with 4.1.1 without problems. Maybe this is a 64/32 problem, I'm just on i686-pc-linux-gnu.
//Peter
On Sun, Apr 29, 2007 at 06:24:16PM +0200, Peter Stuge wrote:
On Sun, Apr 29, 2007 at 10:30:52AM -0400, Ward Vandewege wrote:
ld -m elf_i386 -N -T i386/ldscript -o filo main/builtin.o main/grub/builtin.o fs/builtin.o drivers/builtin.o drivers/usb/builtin.o i386/builtin.o /usr/lib/gcc/x86_64-linux-gnu/4.1.2/32/libgcc.a main/builtin.o: In function `number': printf.c:(.text+0x924): undefined reference to `__stack_chk_fail'
[..]
I've attempted the compile with gcc 4.1.2 (Ubuntu 4.1.2-0ubuntu4) on kubuntu feisty.
Try GCC 4.0 or even 3.4.
For the record, I build FILO with 4.1.1 without problems. Maybe this is a 64/32 problem, I'm just on i686-pc-linux-gnu.
Yeah, that rings a bell. I think I saw this on x86_64 - could not compile FILO with gcc 4.0 or 4.1, but it did work with gcc 3.4.
Thanks, Ward.
Hi,
Am Sonntag, den 29.04.2007, 09:24 -0500 schrieb James E. Bradley:
I'm trying to compile filo-0.5 (It's at the beginning of the tutorial, so I've started there. I may well have other problems later. (If someone wants to send me a compiled linuxbios for the S2882 using the ATI bios with a payload, that would be ok!) The last few lines of the output are:
... main/grub/builtin.o: In function `md5crypt_func': builtins.c:(.text+0x1c7d): undefined reference to `__stack_chk_fail' main/grub/builtin.o:builtins.c:(.text+0x1db7): more undefined references to `__stack_chk_fail' follow make: *** [filo] Error 1
try to add -fno-stack-protector to CFLAGS in the makerules file.
Bye
Jens
James E. Bradley wrote:
I recently purchased a Tyan S2882 motherboard so that I could play with
main/grub/builtin.o:builtins.c:(.text+0x1db7): more undefined references to `__stack_chk_fail' follow make: *** [filo] Error 1
I've attempted the compile with gcc 4.1.2 (Ubuntu 4.1.2-0ubuntu4) on kubuntu feisty.
Ubuntu has the stack protector enabled. You can workaround by adding '-fno-stack-protector' into the CFLAGS of your makefile.