findutils-4.3.11 does not seem to build when i do "xmerge.sh -av gentoo-sources" with my crosscompiler. This seems to be found in other distro's as well (debian etc): http://www.nabble.com/build-error-findutils-td16334966.html I think this is a known issue in gentoo on other packages: http://forums.gentoo.org/viewtopic.php?t=692591 Not sure if it's related. Reproducible: Always Steps to Reproduce: I followed the followin steps: - Download stage3 and portage-stable - chroot into the unziped files - crossdev --target armv5te-softfloat-linux-gnueabi -- great success! gcc builds! v 4.2.4 - xmerge.sh -av gentoo-sources -- fails on find-utils dependency Actual Results: ... pruned for this bug: /usr/armv5te-softfloat-linux-gnueabi/usr/include/stdio.h:654: error: expected declaration specifiers or '...' before '(' token /usr/armv5te-softfloat-linux-gnueabi/usr/include/stdio.h:654: error: conflicting types for 'rpl_fseeko' ./stdio.h:275: error: previous declaration of 'rpl_fseeko' was here depbase=`echo file-set.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ armv5te-softfloat-linux-gnueabi-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../intl -Os -pipe -MT file-set.o -MD -MP -MF $depbase.Tpo -c -o file-set.o file-set.c &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./stdio.h:31, from hash.h:26, from file-set.h:5, from file-set.c:20: /usr/armv5te-softfloat-linux-gnueabi/usr/include/stdio.h:654: error: expected declaration specifiers or '...' before '(' token /usr/armv5te-softfloat-linux-gnueabi/usr/include/stdio.h:654: error: conflicting types for 'rpl_fseeko' ./stdio.h:275: error: previous declaration of 'rpl_fseeko' was here make[4]: *** [areadlink-with-size.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: *** [file-set.o] Error 1 make[4]: Leaving directory `/var/tmp/portage/sys-apps/findutils-4.3.11/work/findutils-4.3.11/gnulib/lib' make[3]: *** [all] Error 2 make[3]: Leaving directory `/var/tmp/portage/sys-apps/findutils-4.3.11/work/findutils-4.3.11/gnulib/lib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-apps/findutils-4.3.11/work/findutils-4.3.11/gnulib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-apps/findutils-4.3.11/work/findutils-4.3.11' make: *** [all] Error 2 * * ERROR: sys-apps/findutils-4.3.11 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2350: Called die * The specific snippet of code: * emake AR="$(tc-getAR)" || die "make failed" * The die message: * make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-apps/findutils-4.3.11/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/findutils-4.3.11/temp/environment'. * * Messages for package sys-apps/findutils-4.3.11 merged to /usr/armv5te-softfloat-linux-gnueabi/: * * ERROR: sys-apps/findutils-4.3.11 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2350: Called die * The specific snippet of code: * emake AR="$(tc-getAR)" || die "make failed" * The die message: * make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-apps/findutils-4.3.11/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/findutils-4.3.11/temp/environment'. * /usr/armv5te-softfloat-linux-gnueabi/usr/include/stdio.h:654: error: conflicting types for 'rpl_fseeko' ./stdio.h:275: error: previous declaration of 'rpl_fseeko' was here depbase=`echo file-set.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ armv5te-softfloat-linux-gnueabi-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../intl -Os -pipe -MT file-set.o -MD -MP -MF $depbase.Tpo -c -o file-set.o file-set.c &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./stdio.h:31, from hash.h:26, from file-set.h:5, from file-set.c:20: /usr/armv5te-softfloat-linux-gnueabi/usr/include/stdio.h:654: error: expected declaration specifiers or '...' before '(' token /usr/armv5te-softfloat-linux-gnueabi/usr/include/stdio.h:654: error: conflicting types for 'rpl_fseeko' ./stdio.h:275: error: previous declaration of 'rpl_fseeko' was here make[4]: *** [areadlink-with-size.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: *** [file-set.o] Error 1 make[4]: Leaving directory `/var/tmp/portage/sys-apps/findutils-4.3.11/work/findutils-4.3.11/gnulib/lib' make[3]: *** [all] Error 2 make[3]: Leaving directory `/var/tmp/portage/sys-apps/findutils-4.3.11/work/findutils-4.3.11/gnulib/lib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-apps/findutils-4.3.11/work/findutils-4.3.11/gnulib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-apps/findutils-4.3.11/work/findutils-4.3.11' make: *** [all] Error 2 * * ERROR: sys-apps/findutils-4.3.11 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2350: Called die * The specific snippet of code: * emake AR="$(tc-getAR)" || die "make failed" * The die message: * make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-apps/findutils-4.3.11/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/findutils-4.3.11/temp/environment'. * * Messages for package sys-apps/findutils-4.3.11 merged to /usr/armv5te-softfloat-linux-gnueabi/: * * ERROR: sys-apps/findutils-4.3.11 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2350: Called die * The specific snippet of code: * emake AR="$(tc-getAR)" || die "make failed" * The die message: * make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/sys-apps/findutils-4.3.11/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/findutils-4.3.11/temp/environment'. *
I should mention i am xmerging in : export SYSROOT="/usr/armv5te-softfloat-linux-gnueabi"
it's most likely an issue in gnulib, not findutils/coreutils/whatever post the full build log as an attachment and post the stdio.h header in question
Created attachment 155343 [details] build log
Created attachment 155345 [details] env
Created attachment 155347 [details] stdioh
I added the build log, environment, and stdio.h as attachments. If the fix is to rebuild my gcc with crossdev please let me know in the bug ... thanks so much for looking at this!
probably just need to add another variable to the default export list so as to force the autoconf test in a favorable way
*** Bug 225481 has been marked as a duplicate of this bug. ***
*** Bug 226039 has been marked as a duplicate of this bug. ***
I'm getting a somewhat similar error attempting to xmerge vanilla-sources for i486-pc-linux-uclibc. Any hint on what env variable I can set to get past this, or where I can look to find it? In file included from ./stdio.h:31, from areadlink-with-size.c:25: /usr/i486-pc-linux-uclibc/usr/include/stdio.h:644: error: syntax error before '(' token /usr/i486-pc-linux-uclibc/usr/include/stdio.h:644: error: `rpl_fseeko' declared as function returning a function /usr/i486-pc-linux-uclibc/usr/include/stdio.h:644: error: syntax error before "int" make[4]: *** [areadlink-with-size.o] Error 1 A workaround is using older versions of findutils and coreutils: echo ">=sys-apps/findutils-4.3" >> /usr/i486-pc-linux-uclibc/etc/portage/package.mask echo ">=sys-apps/coreutils-6.10" >> /usr/i486-pc-linux-uclibc/etc/portage/package.mask
solar: lets add these fseek vars to the site configs and call it a day
I need exact names. ac_foo_bar ? Actually there are quite a few sprintf snprintf vsprintf etc ones that nearly every configure checks for that always hold true for us in -uclibc* and -gnu* land. Also we have not pushed the new crossdev with site.conf support.
During cross compiling gl_cv_func_stdin is being set to no, thus forcing fseeko replacement. Setting gl_cv_func_stdin=yes in site/linux lets the cross compile continue. coreutils is also a candidate for the gl_cv_func_wcwidth_works work around...
I've got a me-too situation when emerging coreutils-6.10: depbase=`echo areadlink-with-size.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ arm-unkown-linux-gnueabi-gcc -std=gnu99 -I. -Os -pipe -MT areadlink-with-size.o -MD -MP -MF $depbase.Tpo -c -o areadlink-with-size.o areadlink-with-size.c &&\ mv -f $depbase.Tpo $depbase.Po depbase=`echo base64.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ arm-unkown-linux-gnueabi-gcc -std=gnu99 -I. -Os -pipe -MT base64.o -MD -MP -MF $depbase.Tpo -c -o base64.o base64.c &&\ mv -f $depbase.Tpo $depbase.Po In file included from ./stdio.h:33, from areadlink-with-size.c:25: /usr/arm-unkown-linux-gnueabi/usr/include/stdio.h:718: error: expected declaration specifiers or '...' before '(' token /usr/arm-unkown-linux-gnueabi/usr/include/stdio.h:718: error: conflicting types for 'rpl_fseeko' ./stdio.h:277: error: previous declaration of 'rpl_fseeko' was here make[2]: *** [areadlink-with-size.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/sys-apps/coreutils-6.10-r2/work/coreutils-6.10/lib' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-apps/coreutils-6.10-r2/work/coreutils-6.10/lib' make: *** [all-recursive] Error 1 The complete build.log environment, and emerge --info outputs are to follow.
Created attachment 169312 [details] coreutils-6.10 build.log
Created attachment 169314 [details] coreutils-6.10 environment
jacob-gdesktop Gentoo # xmerge --info Portage 2.1.4.5 (uclibc/ppc, gcc-4.2.4, unavailable, 2.6.25-gentoo-r7 i686) ================================================================= System uname: 2.6.25-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz Timestamp of tree: Mon, 13 Oct 2008 21:00:01 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 dev-util/cmake: 2.4.6-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="arm ppc" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -pipe" CHOST="arm-unkown-linux-gnueabi" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CTARGET="arm-unkown-linux-gnueabi" CXXFLAGS="-Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://prometheus.cs.wmich.edu/gentoo http://mirror.datapipe.net/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="minimal ppc" 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="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 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" ELIBC="uclibc" INPUT_DEVICES="keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l" Unset: CPPFLAGS, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
I can confirm the package.mask workaround works on my system. (I also adjusted the make.profile - I had it set to ppc when it should've been arm. I don't think this affected anything related to this bug though.)
this is being addressed with config.site files ... we arent going to patch every random package that may include gnulib
it isn't 'every random package'. it's coreutils and findutils (which both are included into 'system').
just because your small random sampling only turned up those two packages doesnt make it true we arent going to patch packages, end of story ... use the config.site work
just for record: adding gl_cv_func_wcwidth_works=yes to config.site allows it to build
*** Bug 288077 has been marked as a duplicate of this bug. ***
(In reply to comment #22) > just for record: adding gl_cv_func_wcwidth_works=yes to config.site allows it > to build > where can i add the gl_cv_func_wcwidth_works=yes?In which file?
(In reply to comment #24) > where can i add the gl_cv_func_wcwidth_works=yes?In which file? I can't remember off the top of my head, but it's in /usr/share somewhere. If you do a "locate" you should be able to find it.
(In reply to comment #25) > (In reply to comment #24) > > where can i add the gl_cv_func_wcwidth_works=yes?In which file? > > I can't remember off the top of my head, but it's in /usr/share somewhere. If > you do a "locate" you should be able to find it. > thank you for your answer. i can see two functions config_site_arch and config_site_names where to write?
i slapped it outside the functions and it helped on i686-gentoo-linux-uclibc: 5 TOPDIR=/usr/share/crossdev/include/site 6 gl_cv_func_wcwidth_works=yes
(In reply to comment #27) > (In reply to comment #25) > > (In reply to comment #24) > > > where can i add the gl_cv_func_wcwidth_works=yes?In which file? > > > > I can't remember off the top of my head, but it's in /usr/share somewhere. If > > you do a "locate" you should be able to find it. > > > > thank you for your answer. > i can see two functions config_site_arch and config_site_names where to write? > (In reply to comment #28) > i slapped it outside the functions and it helped on i686-gentoo-linux-uclibc: > > 5 TOPDIR=/usr/share/crossdev/include/site > 6 gl_cv_func_wcwidth_works=yes > I have already put the gl_cv_func_wcwidth_works=yes in /usr/share/config.site and i am still getting error. I am running xmerge gentoo-sources for (powerpc-linux-gnu)and the error i am getting: ERROR: sys-apps/findutils-4.4.2 failed: make failed Call stack: ebuild.sh, line 54: Called src_compile enviroment, line 2622: Called die
please need help argent. I am trying to xmerge gentoo-sources for target: powerpc-linux-gnu I have already put the gl_cv_func_wcwidth_works=yes in /usr/share/config.site and i am still getting error. ERROR: sys-apps/findutils-4.4.2 failed: make failed Call stack: ebuild.sh, line 54: Called src_compile enviroment, line 2622: Called die
I Solved by inserting :gl_cv_func_wcwidth_works=yes in /bin/xmerge.sh. Anyway i'm going deeper now. thank you.