Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 458920 - sys-libs/uclibc: add posix_fallocate support (for sqlite)
Summary: sys-libs/uclibc: add posix_fallocate support (for sqlite)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL: http://git.uclibc.org/uClibc/commit/?...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-23 22:54 UTC by Mark Reiche
Modified: 2013-05-19 05:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (dev-db:sqlite-3.7.15.2:.log,12.45 KB, text/plain)
2013-02-23 22:55 UTC, Mark Reiche
Details
build.log (build.log,12.76 KB, text/plain)
2013-03-14 02:51 UTC, Carlos Sosa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Reiche 2013-02-23 22:54:54 UTC
emerge of sqlite 3.7.15.2 on a uclibc based system fails with
sqlite3.c:23299:42: error: 'posix_fallocate' undeclared here (not in a function)

probably because of the addition of these lines to sqlite3.c:

/* Use posix_fallocate() if it is available
*/
#if !defined(HAVE_POSIX_FALLOCATE) \
      && (_XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L)
# define HAVE_POSIX_FALLOCATE 1
#endif

Reproducible: Always




Portage 2.1.11.50 (hardened/linux/uclibc/x86, gcc-4.6.3, uclibc-0.9.33.2-r2, 3.5.7-gentoo i686)
=================================================================
System uname: Linux-3.5.7-gentoo-i686-QEMU_Virtual_CPU_version_1.2.2-with-gentoo-2.1
KiB Mem:     2074344 total,    931548 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sat, 23 Feb 2013 10:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/uclibc:          0.9.33.2-r2::x-portage
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE"
CBUILD="i686-gentoo-linux-uclibc"
CFLAGS="-O2 -march=geode -pipe -fomit-frame-pointer -mmmx -m3dnow"
CHOST="i686-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=geode -pipe -fomit-frame-pointer -mmmx -m3dnow"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/root/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="cli cracklib crypt cxx dri fortran hardened iconv ipv6 modules mudflap ncurses nptl openmp pax_kernel pch pcre pic readline session ssl uclibc unicode x86 xattr zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="gnutls" ELIBC="
uclibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en_GB" LIRC_DEVICES="serial" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="snapscan" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Mark Reiche 2013-02-23 22:55:31 UTC
Created attachment 339878 [details]
build.log
Comment 2 Arfrever Frehtes Taifersar Arahesis 2013-02-24 21:02:46 UTC
Could you report your problem to upstream?
Comment 3 Mark Reiche 2013-02-24 21:27:39 UTC
(In reply to comment #2)
> Could you report your problem to upstream?

How do I?
Comment 4 Arfrever Frehtes Taifersar Arahesis 2013-02-24 22:03:04 UTC
Maybe on sqlite-dev or sqlite-users mailing list:
http://sqlite.org/support.html
You need to subscribe to given mailing list before sending e-mail thereto.
Comment 5 Anthony Basile gentoo-dev 2013-02-27 08:24:39 UTC
(In reply to comment #4)
> Maybe on sqlite-dev or sqlite-users mailing list:
> http://sqlite.org/support.html
> You need to subscribe to given mailing list before sending e-mail thereto.

Upstream sqlite should add a check for posix_fallocate.

Upstream uclibc does have a patch for posix_fallocate, but it has not made it into stable yet:

    http://lists.uclibc.org/pipermail/uclibc/2012-April/046679.html
Comment 6 Mark Reiche 2013-02-27 11:25:57 UTC
(In reply to comment #5)
> Upstream sqlite should add a check for posix_fallocate.
> 
That's the part that I don't get here. Apparently there is a define for this already (HAVE_POSIX_FALLOCATE), but it is set in sqlite3.c if _XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L

I don't know enough about these defines to judge whether it is wrong how sqlite3.c evaluates them or whether they should not be set this way in uclibc as long as posix_fallocate is not supported

A simple workaround could be to patch sqlite with something like #ifdef __UCLIBC__ around the mentioned code fragment. This would prevent HAVE_POSIX_FALLOCATE from being set.
Comment 7 Carlos Sosa 2013-03-14 02:51:15 UTC
Created attachment 341976 [details]
build.log
Comment 8 Carlos Sosa 2013-03-14 02:52:15 UTC
I can reproduce it, and confirm the bug.

-gnusosa

Portage 2.1.11.55 (arch/mips/mipsel, gcc-4.7.2, unavailable, 3.5.0-gentoo x86_64)
=================================================================
System uname: Linux-3.5.0-gentoo-x86_64-Intel-R-_Core-TM-_i5-3320M_CPU_@_2.60GHz-with-gentoo-2.2
KiB Mem:    16165104 total,  12531188 free
KiB Swap:    4248040 total,   4248040 free
Timestamp of tree: Thu, 14 Mar 2013 02:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.6.8-r1, 2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.1, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.3-r2, 4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo x-portage x-overlays
ACCEPT_KEYWORDS="mips ~mips"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -pipe  -fomit-frame-pointer"
CHOST="mipsel-linux-uclibc"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-Os -pipe  -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS=""
MAKEOPTS="-j5"
PKGDIR="/usr/mipsel-linux-uclibc/packages/"
PORTAGE_CONFIGROOT="/usr/mipsel-linux-uclibc/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/usr/mipsel-linux-uclibc/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/overlays"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="bindist cracklib cxx make-symlinks minimal mips modules zlib" ALSA_CARDS="au1x00" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev impact newport" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 9 Arfrever Frehtes Taifersar Arahesis 2013-03-15 00:44:14 UTC
Somebody please test SQLite snapshot from:
http://sqlite.org/draft/download.html

If problem still occurs, then quickly report it to upstream.
Release of SQLite 3.7.16 is scheduled on 2013-03-18, so you do not have much time.
Comment 10 Arfrever Frehtes Taifersar Arahesis 2013-03-28 21:21:18 UTC
Please test dev-db/sqlite-3.7.16.
Comment 11 Carlos Sosa 2013-04-24 15:49:25 UTC
Bug still occurs, so it continues. 

[32;01m * [39;49;00mPackage:    dev-db/sqlite-3.7.16.2
[32;01m * [39;49;00mRepository: gentoo
[32;01m * [39;49;00mMaintainer: arfrever.fta@gmail.com proxy-maint@gentoo.org
[32;01m * [39;49;00mUSE:        elibc_glibc extensions kernel_linux mips readline userland_GNU
[32;01m * [39;49;00mFEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking sqlite-autoconf-3071602.tar.gz to /usr/mipsel-linux-uclibc/tmp/portage/dev-db/sqlite-3.7.16.2/work
>>> Source unpacked in /usr/mipsel-linux-uclibc/tmp/portage/dev-db/sqlite-3.7.16.2/work
>>> Preparing source in /usr/mipsel-linux-uclibc/tmp/portage/dev-db/sqlite-3.7.16.2/work/sqlite-autoconf-3071602 ...
 [32;01m*[0m Removing useless C++ checks ...
[A[169C [34;01m[ [32;01mok[34;01m ][0m
>>> Source prepared.
>>> Configuring source in /usr/mipsel-linux-uclibc/tmp/portage/dev-db/sqlite-3.7.16.2/work/sqlite-autoconf-3071602 ...
 * econf: updating sqlite-autoconf-3071602/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating sqlite-autoconf-3071602/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=mipsel-linux-uclibc --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --enable-threadsafe --enable-dynamic-extensions --enable-readline --disable-static
configure: loading site script /usr/share/config.site
configure: loading site script /usr/share/crossdev/include/site/linux
configure: loading site script /usr/share/crossdev/include/site/linux-uclibc
configure: loading site script /usr/share/crossdev/include/site/mipsel-linux-uclibc
configure: loading site script /usr/share/crossdev/include/site/mipsel-linux-uclibc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for mipsel-linux-uclibc-strip... mipsel-linux-uclibc-strip
checking for style of include used by make... GNU
checking for mipsel-linux-uclibc-gcc... mipsel-linux-uclibc-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mipsel-linux-uclibc-gcc accepts -g... yes
checking for mipsel-linux-uclibc-gcc option to accept ISO C89... none needed
checking dependency style of mipsel-linux-uclibc-gcc... none
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for mipsel-linux-uclibc-gcc... (cached) mipsel-linux-uclibc-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether mipsel-linux-uclibc-gcc accepts -g... (cached) yes
checking for mipsel-linux-uclibc-gcc option to accept ISO C89... (cached) none needed
checking dependency style of mipsel-linux-uclibc-gcc... (cached) none
checking for mipsel-linux-uclibc-ranlib... mipsel-linux-uclibc-ranlib
checking build system type... x86_64-pc-linux-gnu
checking host system type... mipsel-unknown-linux-uclibc
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by mipsel-linux-uclibc-gcc... /usr/libexec/gcc/mipsel-linux-uclibc/ld
checking if the linker (/usr/libexec/gcc/mipsel-linux-uclibc/ld) is GNU ld... yes
checking for /usr/libexec/gcc/mipsel-linux-uclibc/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/mipsel-linux-uclibc-nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... mipsel-linux-uclibc-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for mipsel-linux-uclibc-g++... mipsel-linux-uclibc-g++
checking whether we are using the GNU C++ compiler... yes
checking whether mipsel-linux-uclibc-g++ accepts -g... yes
checking dependency style of mipsel-linux-uclibc-g++... none
checking how to run the C++ preprocessor... mipsel-linux-uclibc-g++ -E
checking for mipsel-linux-uclibc-g77... no
checking for mipsel-linux-uclibc-xlf... no
checking for mipsel-linux-uclibc-f77... no
checking for mipsel-linux-uclibc-frt... no
checking for mipsel-linux-uclibc-pgf77... no
checking for mipsel-linux-uclibc-cf77... no
checking for mipsel-linux-uclibc-fort77... no
checking for mipsel-linux-uclibc-fl32... no
checking for mipsel-linux-uclibc-af77... no
checking for mipsel-linux-uclibc-xlf90... no
checking for mipsel-linux-uclibc-f90... no
checking for mipsel-linux-uclibc-pgf90... no
checking for mipsel-linux-uclibc-pghpf... no
checking for mipsel-linux-uclibc-epcf90... no
checking for mipsel-linux-uclibc-gfortran... mipsel-linux-uclibc-gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether mipsel-linux-uclibc-gfortran accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/mipsel-linux-uclibc-nm -B output from mipsel-linux-uclibc-gcc object... ok
checking for objdir... .libs
checking for mipsel-linux-uclibc-ar... mipsel-linux-uclibc-ar
checking for mipsel-linux-uclibc-ranlib... (cached) mipsel-linux-uclibc-ranlib
checking for mipsel-linux-uclibc-strip... (cached) mipsel-linux-uclibc-strip
checking if mipsel-linux-uclibc-gcc supports -fno-rtti -fno-exceptions... no
checking for mipsel-linux-uclibc-gcc option to produce PIC... -fPIC
checking if mipsel-linux-uclibc-gcc PIC flag -fPIC works... yes
checking if mipsel-linux-uclibc-gcc static flag -static works... yes
checking if mipsel-linux-uclibc-gcc supports -c -o file.o... yes
checking whether the mipsel-linux-uclibc-gcc linker (/usr/libexec/gcc/mipsel-linux-uclibc/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by mipsel-linux-uclibc-g++... /usr/libexec/gcc/mipsel-linux-uclibc/ld
checking if the linker (/usr/libexec/gcc/mipsel-linux-uclibc/ld) is GNU ld... yes
checking whether the mipsel-linux-uclibc-g++ linker (/usr/libexec/gcc/mipsel-linux-uclibc/ld) supports shared libraries... yes
checking for mipsel-linux-uclibc-g++ option to produce PIC... -fPIC
checking if mipsel-linux-uclibc-g++ PIC flag -fPIC works... yes
checking if mipsel-linux-uclibc-g++ static flag -static works... yes
checking if mipsel-linux-uclibc-g++ supports -c -o file.o... yes
checking whether the mipsel-linux-uclibc-g++ linker (/usr/libexec/gcc/mipsel-linux-uclibc/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for mipsel-linux-uclibc-gfortran option to produce PIC... -fPIC
checking if mipsel-linux-uclibc-gfortran PIC flag -fPIC works... yes
checking if mipsel-linux-uclibc-gfortran static flag -static works... yes
checking if mipsel-linux-uclibc-gfortran supports -c -o file.o... yes
checking whether the mipsel-linux-uclibc-gfortran linker (/usr/libexec/gcc/mipsel-linux-uclibc/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for fdatasync... yes
checking for usleep... yes
checking for fullfsync... no
checking for localtime_r... yes
checking for gmtime_r... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... no
checking for library containing tgetent... -lcurses
checking for library containing readline... -lreadline
checking for readline... yes
checking for library containing pthread_create... -lpthread
checking for library containing dlopen... -ldl
checking for whether to support dynamic extensions... yes
checking for posix_fallocate... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating sqlite3.pc
config.status: executing depfiles commands
>>> Source configured.
>>> Compiling source in /usr/mipsel-linux-uclibc/tmp/portage/dev-db/sqlite-3.7.16.2/work/sqlite-autoconf-3071602 ...
make -j5 TCLLIBDIR=/usr/lib/sqlite-3.7.16.2 
/bin/sh ./libtool --tag=CC --mode=compile mipsel-linux-uclibc-gcc -DPACKAGE_NAME=\"sqlite\" -DPACKAGE_TARNAME=\"sqlite\" -DPACKAGE_VERSION=\"3.7.16.2\" -DPACKAGE_STRING=\"sqlite\ 3.7.16.2\" -DPACKAGE_BUGREPORT=\"http://www.sqlite.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"sqlite\" -DVERSION=\"3.7.16.2\" -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_FDATASYNC=1 -DHAVE_USLEEP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DHAVE_READLINE=1 -I. -I.   -DNDEBUG -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS4_UNICODE61 -DSQLITE_ENABLE_RTREE -DSQLITE_SOUNDEX -DSQLITE_ENABLE_UNLOCK_NOTIFY -D_REENTRANT=1 -DSQLITE_THREADSAFE=1  -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -Os -pipe  -fomit-frame-pointer -c -o sqlite3.lo sqlite3.c
mipsel-linux-uclibc-gcc -DPACKAGE_NAME=\"sqlite\" -DPACKAGE_TARNAME=\"sqlite\" -DPACKAGE_VERSION=\"3.7.16.2\" -DPACKAGE_STRING=\"sqlite\ 3.7.16.2\" -DPACKAGE_BUGREPORT=\"http://www.sqlite.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"sqlite\" -DVERSION=\"3.7.16.2\" -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_FDATASYNC=1 -DHAVE_USLEEP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DHAVE_READLINE=1 -I. -I.   -DNDEBUG -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS4_UNICODE61 -DSQLITE_ENABLE_RTREE -DSQLITE_SOUNDEX -DSQLITE_ENABLE_UNLOCK_NOTIFY -D_REENTRANT=1 -DSQLITE_THREADSAFE=1  -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -Os -pipe  -fomit-frame-pointer -c shell.c
mkdir .libs
 mipsel-linux-uclibc-gcc -DPACKAGE_NAME=\"sqlite\" -DPACKAGE_TARNAME=\"sqlite\" -DPACKAGE_VERSION=\"3.7.16.2\" "-DPACKAGE_STRING=\"sqlite 3.7.16.2\"" -DPACKAGE_BUGREPORT=\"http://www.sqlite.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"sqlite\" -DVERSION=\"3.7.16.2\" -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_FDATASYNC=1 -DHAVE_USLEEP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DHAVE_DECL_STRERROR_R=1 -DHAVE_STRERROR_R=1 -DHAVE_READLINE=1 -I. -I. -DNDEBUG -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS4_UNICODE61 -DSQLITE_ENABLE_RTREE -DSQLITE_SOUNDEX -DSQLITE_ENABLE_UNLOCK_NOTIFY -D_REENTRANT=1 -DSQLITE_THREADSAFE=1 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -Os -pipe -fomit-frame-pointer -c sqlite3.c  -fPIC -DPIC -o .libs/sqlite3.o
sqlite3.c:23349:42: error: 'posix_fallocate' undeclared here (not in a function)
make: *** [sqlite3.lo] Error 1
make: *** Waiting for unfinished jobs....
 [31;01m*[0m ERROR: dev-db/sqlite-3.7.16.2 failed (compile phase):
 [31;01m*[0m   emake failed
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=dev-db/sqlite-3.7.16.2'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-db/sqlite-3.7.16.2'`.
 [31;01m*[0m The complete build log is located at '/usr/mipsel-linux-uclibc/tmp/portage/dev-db/sqlite-3.7.16.2/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/usr/mipsel-linux-uclibc/tmp/portage/dev-db/sqlite-3.7.16.2/temp/environment'.
 [31;01m*[0m Working directory: '/usr/mipsel-linux-uclibc/tmp/portage/dev-db/sqlite-3.7.16.2/work/sqlite-autoconf-3071602'
 [31;01m*[0m S: '/usr/mipsel-linux-uclibc/tmp/portage/dev-db/sqlite-3.7.16.2/work/sqlite-autoconf-3071602'
Comment 12 Arfrever Frehtes Taifersar Arahesis 2013-04-24 16:25:25 UTC
Bug will still occur until an uclibc user reports problem to upstream.
Comment 13 Anthony Basile gentoo-dev 2013-05-10 13:34:34 UTC
(In reply to comment #12)
> Bug will still occur until an uclibc user reports problem to upstream.

It is upstream but not in the latest release. See

http://git.uclibc.org/uClibc/commit/?id=5643900913f64c00f1c2958914586708efa5a473

I have asked on the list that Bernhard push out a new release, but nothing yet.  A few days ago I added epatch_user to uclibc-0.9.33.2-r3 (latest stable) and -9999.  So, in the mean time, just drop that commit into /etc/portage/patches/sys-libs/uclibc, recompile and you should be good --- I'm doing it now for all the next set of stage3's uclibc under /experimental on the mirrors.
Comment 14 pmn 2013-05-10 14:22:20 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > Bug will still occur until an uclibc user reports problem to upstream.
> 
> It is upstream but not in the latest release. See
> 
> http://git.uclibc.org/uClibc/commit/
> ?id=5643900913f64c00f1c2958914586708efa5a473
> 
> I have asked on the list that Bernhard push out a new release, but nothing
> yet.  A few days ago I added epatch_user to uclibc-0.9.33.2-r3 (latest
> stable) and -9999.  So, in the mean time, just drop that commit into
> /etc/portage/patches/sys-libs/uclibc, recompile and you should be good ---
> I'm doing it now for all the next set of stage3's uclibc under /experimental
> on the mirrors.

is uclibc already patched in the new stage3's or do we still need to have the user patch in place?

it seems to me that this and #465792[1] are related. they both need a committe upstream uclibc.

[1]: couldn't add URL so here it is:
https://bugs.gentoo.org/show_bug.cgi?id=465792