=net-misc/curl-7.19.4 doesn't cross compiles for me, if USE="ssl or gnutls" enabled. looks like curl has wrong -Ipath hard coded Reproducible: Always Steps to Reproduce: 1. emerge-armv4tl-softfloat-linux-gnueabi curl Actual Results: compilation fails --- libtool: compile: armv4tl-softfloat-linux-gnueabi-gcc -DHAVE_CONFIG_H -I../include -I../include -I../lib -I../lib -I/usr/include -I/usr/include -Os -pipe -march=armv4t -mtune=arm920t -g0 -Wno-system-headers -MT http.lo -MD -MP -MF .deps/http.Tpo -c http.c -o http.o >/dev/null 2>&1 ftp.c: In function ‘ftp_state_use_port’: ftp.c:1200: error: invalid 'asm': invalid operand for code 'w' {standard input}: Assembler messages: {standard input}:1380: Error: bad instruction `rorw $8,' make[2]: *** [ftp.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... libtool: compile: armv4tl-softfloat-linux-gnueabi-gcc -DHAVE_CONFIG_H -I../include -I../include -I../lib -I../lib -I/usr/include -I/usr/include -Os -pipe -march=armv4t -mtune=arm920t -g0 -Wno-system-headers -MT url.lo -MD -MP -MF .deps/url.Tpo -c url.c -o url.o >/dev/null 2>&1 make[2]: Leaving directory `/mnt/floppy/data/gentoo/tmp/portage/net-misc/curl-7.19.4/work/curl-7.19.4/lib' make[1]: *** [all] Error 2 make[1]: Leaving directory `/mnt/floppy/data/gentoo/tmp/portage/net-misc/curl-7.19.4/work/curl-7.19.4/lib' make: *** [all-recursive] Error 1 Expected Results: compilation shouldn't fails max_posedon armv4tl-softfloat-linux-gnueabi # emerge-armv4tl-softfloat-linux-gnueabi --info Portage 2.1.6.8 (!/home/data/gentoo/openmoko-overlay/openmoko-target/profiles/openmoko, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-rc7-git1 i686) ================================================================= System uname: Linux-2.6.29-rc7-git1-i686-Genuine_Intel-R-_CPU_T2130_@_1.86GHz-with-glibc2.0 Timestamp of tree: Mon, 16 Mar 2009 21:00:02 +0000 app-shells/bash: 3.2_p48-r1 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.5.2-r8 dev-python/pycrypto: 2.0.1-r7 dev-util/cmake: 2.6.3 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.3-r1 sys-apps/sandbox: 1.5 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19.1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="arm ~arm" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -pipe -march=armv4t -mtune=arm920t -fomit-frame-pointer -I/usr/armv4tl-softfloat-linux-gnueabi/usr/include/ -I/usr/armv4tl-softfloat-linux-gnueabi/include/" CHOST="armv4tl-softfloat-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/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 /etc/udev/rules.d" CXXFLAGS="-Os -pipe -march=armv4t -mtune=arm920t -fomit-frame-pointer -I/usr/armv4tl-softfloat-linux-gnueabi/usr/include/ -I/usr/armv4tl-softfloat-linux-gnueabi/include/" DISTDIR="/home/data/gentoo/distfiles" FEATURES="distlocks fixpackages nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF-8" LDFLAGS="-L/usr/armv4tl-softfloat-linux-gnueabi/usr/lib -L/usr/armv4tl-softfloat-linux-gnueabi/lib" MAKEOPTS="-j3" PKGDIR="/usr/armv4tl-softfloat-linux-gnueabi/packages/" PORTAGE_CONFIGROOT="/usr/armv4tl-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="/home/data/gentoo/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/data/gentoo/openmoko-overlay/openmoko-target" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arm dbus dri gps hal iconv midi minimal multicall ncurses nls nptl opengl pam python readline sdl sqlite ssl unicode xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspalfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="tslib mouse keyboard evdev void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev glamo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 185216 [details] net-misc/curl-7.19.4 build log [ebuild N ] net-misc/curl-7.19.4 to /usr/armv4tl-softfloat-linux-gnueabi/ USE="ssl -ares -gnutls -idn -ipv6 -kerberos -ldap -libssh2 -nss -test" 0 kB
on the build log do you want this fixed: .. checking for "/dev/urandom"... configure: error: cannot check for file existence when cross compiling and the one in the comment? Any suggestions on the cross compile fault?
Created attachment 185309 [details] net-misc/curl-7.19.4 build log Sorry, previous log isn't what I want paste, this one is more correct.
posting logs isnt really helpful. you need to go into the build dir and look at where the /usr/include is coming from. the config.log and/or Makefile are generally pretty good at showing this. what is somewhat common is for configure scripts to hardcode some include search paths when trying to find openssl ...
oh, and as for the /dev/random error, we should just add this to the econf: $(tc-is-cross-compiler && echo --with-random=/dev/urandom)
looking in the configure.ac of curtl-7.19.7 I see: case "$OPT_SSL" in yes) dnl --with-ssl (without path) used if test x$cross_compiling != xyes; then dnl only do pkg-config magic when not cross-compiling PKGTEST="yes" fi USE=ssl is now USE=openssl gnutls seems to use cross-compile friendly pkg-config too. (I'll commit this within an hour. I hope it works for you)
(In reply to comment #6) > (I'll commit this within an hour. I hope it works for you) > Is this bug still valid for latest stable/testing curl?
please check this works now.