#20017: grub2 compilation error (uclibc, x86)
------------------------+------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Resolution: | Keywords: grub2
------------------------+------------------------
Comment (by anonymous):
Problem remains with latest trunk r46369
{{{
mv -f grub-core/osdep/.deps-util/libgrubkern_a-hostdisk.Tpo grub-
core/osdep/.deps-util/libgrubkern_a-hostdisk.Po
i486-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -Wall -W -I./include
-DGRUB_UTIL=1 -DGRUB_FILE=\"grub-core/osdep/unix/hostdisk.c\" -I. -I. -I.
-I. -I./include -I./include -I./grub-core/lib/libgcrypt-grub/src/ -I
./grub-core/gnulib -I./grub-core/gnulib -I/home/development/src/openwrt-
trunk/openwrt/staging_dir/target-i386_pentium4_uClibc-0.9.33.2/usr/include
-I/home/development/src/openwrt-trunk/openwrt/staging_dir/target-
i386_pentium4_uClibc-0.9.33.2/include -I/home/development/src/openwrt-
trunk/openwrt/staging_dir/toolchain-
i386_pentium4_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include
-I/home/development/src/openwrt-trunk/openwrt/staging_dir/toolchain-
i386_pentium4_gcc-4.8-linaro_uClibc-0.9.33.2/include -fno-builtin-gettext
-Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment
-Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-
equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit
-Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces
-Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type
-Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wunknown-
pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter
-Wunused-value -Wunused-variable -Wwrite-strings -Wnested-externs
-Wstrict-prototypes -Wcast-align -Wextra -Wattributes -Wendif-labels
-Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-
initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-
aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign
-Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations
-Wformat=2 -Wno-undef -Wno-sign-compare -Wno-unused -Wno-unused-parameter
-Wno-redundant-decls -Wno-unreachable-code -Wno-conversion -Os -pipe
-march=pentium4 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-
set-variable -Wformat -Werror=format-security -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro -MT grub-core/osdep/unix/libgrubkern_a-hostdisk.o
-MD -MP -MF grub-core/osdep/unix/.deps-util/libgrubkern_a-hostdisk.Tpo -c
-o grub-core/osdep/unix/libgrubkern_a-hostdisk.o `test -f 'grub-
core/osdep/unix/hostdisk.c' || echo './'`grub-core/osdep/unix/hostdisk.c
grub-core/osdep/unix/hostdisk.c: In function 'grub_util_fd_seek':
grub-core/osdep/unix/hostdisk.c:87:14: error: invalid storage class for
function '_llseek'
static int _llseek (uint filedes, ulong hi, ulong lo,
^
grub-core/osdep/unix/hostdisk.c:89:3: warning: implicit declaration of
function '_syscall5' [-Wimplicit-function-declaration]
_syscall5 (int, _llseek, uint, filedes, ulong, hi, ulong, lo,
^
grub-core/osdep/unix/hostdisk.c:89:3: warning: nested extern declaration
of '_syscall5' [-Wnested-externs]
grub-core/osdep/unix/hostdisk.c:89:14: error: expected expression before
'int'
_syscall5 (int, _llseek, uint, filedes, ulong, hi, ulong, lo,
^
grub-core/osdep/unix/hostdisk.c:93:3: warning: implicit declaration of
function '_llseek' [-Wimplicit-function-declaration]
if (_llseek (fd, offset >> 32, offset & 0xffffffff, &result, SEEK_SET))
^
grub-core/osdep/unix/hostdisk.c:93:3: warning: nested extern declaration
of '_llseek' [-Wnested-externs]
make[6]: *** [grub-core/osdep/unix/libgrubkern_a-hostdisk.o] Error 1
make[6]: Leaving directory `/home/development/src/openwrt-
trunk/openwrt/build_dir/target-i386_pentium4_uClibc-0.9.33.2/linux-
x86_kvm_guest/grub-2.02~beta2'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/development/src/openwrt-
trunk/openwrt/build_dir/target-i386_pentium4_uClibc-0.9.33.2/linux-
x86_kvm_guest/grub-2.02~beta2'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/development/src/openwrt-
trunk/openwrt/build_dir/target-i386_pentium4_uClibc-0.9.33.2/linux-
x86_kvm_guest/grub-2.02~beta2'
make[3]: *** [/home/development/src/openwrt-trunk/openwrt/build_dir
/target-i386_pentium4_uClibc-0.9.33.2/linux-
x86_kvm_guest/grub-2.02~beta2/.built] Error 2
make[3]: Leaving directory `/home/development/src/openwrt-
trunk/openwrt/package/boot/grub2'
make[2]: *** [package/boot/grub2/compile] Error 2
make[2]: Leaving directory `/home/development/src/openwrt-trunk/openwrt'
make[1]: *** [/home/development/src/openwrt-trunk/openwrt/staging_dir
/target-i386_pentium4_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/development/src/openwrt-trunk/openwrt'
make: *** [world] Error 2
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/20017#comment:4>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets