[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GRUB2 on OpenBSD 5.3-amd64: linking problem
From: |
Ilya Bakulin |
Subject: |
Re: GRUB2 on OpenBSD 5.3-amd64: linking problem |
Date: |
Fri, 16 Aug 2013 16:33:38 +0200 |
User-agent: |
KMail/1.9.10 (enterprise35 20120322.0d8ab49a133482885a7a6ae00ec4472b1859206f) |
Hi Vladimir,
so I'm trying the latest version from BZR now. Running ./configure without
CFLAGS succeeds now, thanks!
On Wednesday 14 August 2013 18:28:45 Vladimir 'φ-coder/phcoder' Serbinenko
wrote:
> #ifdef __OpenBSD__
> #define mbstate_t grub_posix_mbstate_t
> #endif
Yes, this seems to help!
The correct way to detect OpenBSD system is __OpenBSD__, not __OPENBSD__.
Now I have the following error:
gmake[3]: Entering directory `/home/kibab/repos/grub/grub-core'
gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -I../include -I../include
-DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -DGRUB_TARGET_CPU_I386=1 -m32
-DGRUB_FILE=\"gnulib/regex.c\" -I. -I. -I.. -I.. -I../include -I../include
-I../grub-core/lib/libgcrypt-grub/include
-I../grub-core/lib/libgcrypt-grub/src/ -I../grub-core/lib/posix_wrap
-I../grub-core/gnulib -I../grub-core/gnulib -Os -Wall -W
-Wshadow -Wold-style-definition -Wpointer-arith -Wundef -Wextra -Waddress
-Wattributes -Wcast-align -Wchar-subscripts -Wcomment -Wdeprecated-declarations
-Wdisabled-optimization -Wdiv-by-zero -Wendif-labels -Wfloat-equal
-Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit
-Wimplicit-function-declaration -Wimplicit-int -Winit-self
-Wint-to-pointer-cast -Winvalid-pch -Wmain -Wmissing-braces
-Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-noreturn
-Wmultichar -Wnonnull -Woverflow -Wparentheses -Wpointer-arith
-Wpointer-to-int-cast -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare
-Wstrict-aliasing -Wswitch -Wtrigraphs -Wundef -Wunknown-pragmas -Wunused
-Wunused-function -Wunused-label -Wunused-parameter -Wunused-value
-Wunused-variable -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings
-Wnested-externs -Wstrict-prototypes -Wpointer-sign -g -Wredundant-decls
-Wmissing-prototypes -Wmissing-declarations -falign-jumps=1 -falign-loops=1
-falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -m32 -fno-PIE
-fno-PIC -fno-stack-protector -Werror -Wtrampolines -mrtd -mregparm=3
-Dfloat=__grub_poision -Ddouble=__grub_poision -fno-builtin -fno-builtin
-Wno-undef -Wno-sign-compare -Wno-unused -Wno-unused-parameter
-Wno-redundant-decls -Wno-unreachable-code -Wno-conversion
-Wno-old-style-definition -Wno-unsafe-loop-optimizations -MT
gnulib/libgnulib_a-regex.o -MD -MP -MF
gnulib/.deps-core/libgnulib_a-regex.Tpo -c -o gnulib/libgnulib_a-regex.o
`test -f 'gnulib/regex.c' || echo './'`gnulib/regex.c
In file included from /usr/include/sys/_types.h:37,
from /usr/include/stddef.h:39,
from ../grub-core/lib/posix_wrap/sys/types.h:27,
from ../grub-core/gnulib/regex.h:24,
from gnulib/regex.c:67:
/usr/include/machine/_types.h:122: error: expected '=', ',', ';', 'asm'
or '__attribute__' before '__double_t'
/usr/include/machine/_types.h:123: error: expected '=', ',', ';', 'asm'
or '__attribute__' before '__float_t'
gmake[3]: *** [gnulib/libgnulib_a-regex.o] Error 1
gmake[3]: Leaving directory `/home/kibab/repos/grub/grub-core'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/kibab/repos/grub/grub-core'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/kibab/repos/grub'
gmake: *** [all] Error 2
Lines 122 and 123 in /usr/include/sys/_types.h are:
typedef double __double_t;
typedef float __float_t;
So the types "double" and "float" are not recognized.
Could you please help me to debug this?
Good news is that the tools like grub-bios-setup and grub-mkimage already
work, I was able to install GRUB into MBR just fine.
--
Ilya
- Re: GRUB2 on OpenBSD 5.3-amd64: linking problem, Vladimir 'φ-coder/phcoder' Serbinenko, 2013/08/14
- Re: GRUB2 on OpenBSD 5.3-amd64: linking problem, Ilya Bakulin, 2013/08/14
- Re: GRUB2 on OpenBSD 5.3-amd64: linking problem, Vladimir 'φ-coder/phcoder' Serbinenko, 2013/08/14
- Re: GRUB2 on OpenBSD 5.3-amd64: linking problem, Vladimir 'φ-coder/phcoder' Serbinenko, 2013/08/14
- Re: GRUB2 on OpenBSD 5.3-amd64: linking problem, Grégoire Sutre, 2013/08/14
- Re: GRUB2 on OpenBSD 5.3-amd64: linking problem, Ilya Bakulin, 2013/08/14
- Re: GRUB2 on OpenBSD 5.3-amd64: linking problem, Vladimir 'φ-coder/phcoder' Serbinenko, 2013/08/14
- Re: GRUB2 on OpenBSD 5.3-amd64: linking problem,
Ilya Bakulin <=
- Re: GRUB2 on OpenBSD 5.3-amd64: linking problem, Grégoire Sutre, 2013/08/16
- Re: GRUB2 on OpenBSD 5.3-amd64: linking problem, Vladimir 'φ-coder/phcoder' Serbinenko, 2013/08/16
- Re: GRUB2 on OpenBSD 5.3-amd64: linking problem, Vladimir 'φ-coder/phcoder' Serbinenko, 2013/08/15
- Re: GRUB2 on OpenBSD 5.3-amd64: linking problem, Grégoire Sutre, 2013/08/15