I was trying to cross-compile vim for ARM, and fail at configure message: checking size of wchar_t is 2 bytes... configure: error: failed to compile test program Reproducible: Always Steps to Reproduce: Portage 2.1.8.3 (default/linux/arm/10.0, gcc-4.4.3, glibc-2.10.1-r1, 2.6.31-20-generic i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.31-20-generic-i686-Intel-R-_Core-TM-2_Duo_CPU_E8200_@_2.66GHz-with-gentoo-1.12.13 Timestamp of tree: Wed, 07 Jul 2010 12:30:21 +0000 app-shells/bash: 4.0_p37 dev-lang/python: 2.6.5-r2, 3.1.2-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.65 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="arm" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp" CHOST="armv7a-softfloat-linux-gnueabi" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/sandbox.d /etc/terminfo" CPPFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp" CTARGET="armv7a-softfloat-linux-gnueabi" CXXFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests buildpkg distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="ru_UA.utf8" LDFLAGS="-Wl,-O1" PKGDIR="/usr/armv7a-softfloat-linux-gnueabi/packages" PORTAGE_CONFIGROOT="/usr/armv7a-softfloat-linux-gnueabi/" 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" PORTDIR_OVERLAY="/usr/local/crossdev /usr/local/portage /var/lib/layman/embedded-cross" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X arm bash-completion berkdb bzip2 cli cracklib crypt cups curl cxx fortran gdbm gpm iconv modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python qt4 readline reflection session spl sqlite ssl sysfs tcpd unicode vim-syntax xorg zlib zsh-completion" 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="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage sis tdfx trident voodoo" 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: EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 237883 [details] build log
Closing as obsolete since I'm pretty sure this isn't an issue anymore with current versions since I've cross-compiled a few versions for arm semi-recently.
(In reply to Tim Harder from comment #2) > Closing as obsolete since I'm pretty sure this isn't an issue anymore with > current versions since I've cross-compiled a few versions for arm > semi-recently. Unfortunately this is still an issue here. Trying to cross-compile vim-7.4.273 for my armv7 box fails with : > configure: error: failed to compile test program I can't attach my build log, the submit form does not respond (maybe because bug is closed ?) Which version do you cross-compile for arm please ?
(In reply to Fab from comment #3) > (In reply to Tim Harder from comment #2) > > Closing as obsolete since I'm pretty sure this isn't an issue anymore with > > current versions since I've cross-compiled a few versions for arm > > semi-recently. > > Unfortunately this is still an issue here. > Trying to cross-compile vim-7.4.273 for my armv7 box fails with : > > configure: error: failed to compile test program > > I can't attach my build log, the submit form does not respond (maybe because > bug is closed ?) Open a new bug.
Created attachment 846764 [details] build.log for aarch64-unknown-linux-gnu
Created attachment 846766 [details] aarch64-unknown-linux-gnu-emerge --info
(In reply to tgyt from comment #5) > Created attachment 846764 [details] > build.log for aarch64-unknown-linux-gnu Please open a new bug. It's unlikely your issue is the same one as from 13 years ago.
(In reply to Sam James from comment #7) > (In reply to tgyt from comment #5) > > Created attachment 846764 [details] > > build.log for aarch64-unknown-linux-gnu > > Please open a new bug. It's unlikely your issue is the same one as from 13 > years ago. I searched for "checking size of wchar_t is 2 bytes... configure: error: failed to compile test program" because it was exacly what I'm getting. So description of this bug is same as one I ran into. I also got exacly same error message. But vim compiles for armv7a-unknown-linux-gnueabihf just fine, so maybe yes, new bug.