Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 425174 - sys-devel/autogen fails to cross-compile: checking whether strcspn matches prototype and works...: configure: error: cannot run test program while cross compiling
Summary: sys-devel/autogen fails to cross-compile: checking whether strcspn matches pr...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL: https://sourceforge.net/p/autogen/bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-07 16:54 UTC by Thomas Sachau
Modified: 2019-08-24 09:48 UTC (History)
0 users

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


Attachments
build.log (sys-devel:autogen-5.15:20120707-164956.log,28.53 KB, text/plain)
2012-07-07 16:55 UTC, Thomas Sachau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Sachau gentoo-dev 2012-07-07 16:54:44 UTC
emerge --info:


Portage 2.2.0_alpha114-r1 (hardened/linux/amd64, gcc-4.7.1, glibc-2.15-r2, 2.6.32-gentoo-r41 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r41-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Sa 3. Dez 16:06:39 CET 2011
app-shells/bash:          4.2_p29
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.5, 1.12.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.7, 4.5.3-r2, 4.6.3, 4.7.1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo enlightenment sunrise multilib gamerlay-stable Meins
Installed sets: @enlightenment, @fonts, @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/home/thomas/daten/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-multilib metadata-transfer news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="de_DE.UTF-8@euro"
LDFLAGS="-Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="de"
MAKEOPTS="-j5 --load-average=8"
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="/home/thomas/daten"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/enlightenment /usr/local/portage/layman/sunrise /usr/local/portage/layman/multilib-portage /usr/local/portage/layman/gamerlay /usr/local/portage"
SYNC="cvs://tommy@cvs.gentoo.org:/var/cvsroot"
USE="3dnow X alsa amd64 berkdb cli cracklib crypt cups custom-cflags custom-cxxflags custom-optimization cxx dri gpm hardened java5 java6 justify mmx modules mudflap ncurses nls nptl nsplugin ogg openmp pam pax_kernel pppd readline scanner session sse sse2 ssl tcpd unicode urandom v4l vorbis xorg zlib" ALSA_CARDS="hda-intel" 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 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" LINGUAS="de" MULTILIB_ABIS="amd64 x86" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" 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" multilib_abi="amd64 x86"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Thomas Sachau gentoo-dev 2012-07-07 16:55:06 UTC
Created attachment 317508 [details]
build.log
Comment 2 SpanKY gentoo-dev 2014-11-03 04:12:06 UTC
the configure script uses `guile-config`.  doesn't seem easy to disentangle, so filed a bug upstream for it.
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2019-08-24 08:55:12 UTC
http://git.savannah.gnu.org/cgit/guile.git/commit/meta/guile.m4?id=ccd0ae1fbb1c8c942a89bf84272377b341739e0f switched guile.m4 to use pkg-config instead.

Now autogen fails on other minor bits to start cross-compilation:

...
checking whether strcspn matches prototype and works... configure: error: in `/tmp/portage-tmpdir/portage/sys-devel/autogen-5.18.16-r1/work/autogen-5.18.16':
configure: error: cannot run test program while cross compiling
See `config.log' for more details

!!! Please attach the following file when seeking support:
!!! /tmp/portage-tmpdir/portage/sys-devel/autogen-5.18.16-r1/work/autogen-5.18.16/config.log
Comment 4 Larry the Git Cow gentoo-dev 2019-08-24 09:48:58 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc36ef1ffb1a0245ee2c26e057e4542a301eb3bc

commit cc36ef1ffb1a0245ee2c26e057e4542a301eb3bc
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-08-24 09:48:40 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-08-24 09:48:52 +0000

    sys-devel/autogen: override *_cv_* fro corss-case, bug #425174
    
    A few autogen configure tests require running the program on machine:
        export ag_cv_run_strcspn=no
        export libopts_cv_with_libregex=yes
    
    Pass these to get past ./configure. Autogen still reexecutes itself
    at build time. Will need more fixes if feasible at all.
    
    Reported-by: Thomas Sachau
    Bug: https://bugs.gentoo.org/425174
    Package-Manager: Portage-2.3.72, Repoman-2.3.17
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-devel/autogen/autogen-5.18.16-r1.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)