OpenWrt Forum Archive

Topic: compile error "_FILE_OFFSET_BITS=64" with uclibc?

The content of this topic has been archived on 16 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hello everyone:
I'm new to WRT, trying to compile for atheros target,
got following error when compile with uclibc enabled:

   "mips-linux-uclibc/sys-include/features.h:329:2: error: #error It appears you have defined _FILE_OFFSET_BITS=64. Unfortunately, uClibc was built without large file support enabled."


I did try turn on/off the Toolchain Options "Enable large file (files > 2 GB) support?" via menuconfig, but it didn't help.
need help to point out where should I dig out to fix this issue.

thanks

all right, I found something interesting.
in this file: kamikaze_7.09/package/busybox/config/Config.in, line 300

config BUSYBOX_CONFIG_LFS
        bool          <==== there is no description here, so that it didn't show up in menuconfig
        default y
        select BUSYBOX_CONFIG_FDISK_SUPPORT_LARGE_DISKS
        help
          If ... ...

after I add a description, I can turn on/off this setting, otherwise, it default value is 'y', which will cause the compile error in my previous email.

is it a bug or leave empty intended?

best

The discussion might have continued from here.