I'm trying to build a cross-compiler for the ARM architecture bot it always fails with "* newlib failed :(" the command I used is: crossdev -t arm-elf -S --without-headers Reproducible: Always Steps to Reproduce: 1. run "crossdev -t arm-elf -S --without-headers" as root Actual Results: Build of newlib fails Expected Results: newlib compiles and crossdev succeeds
Created attachment 208458 [details] crosscompile info
Created attachment 208459 [details] newlib build log invalid
I added the relevant log files
emerge --info Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r3-ragas i686) ================================================================= System uname: Linux-2.6.31-gentoo-r3-ragas-i686-Genuine_Intel-R-_CPU_T2080_@_1.73GHz-with-gentoo-2.0.1 Timestamp of tree: Tue, 27 Oct 2009 10:00:01 +0000 app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.6.2-r1 dev-util/cmake: 2.6.4 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r4 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" ADA_INCLUDE_PATH="/usr/lib/gnat-gcc/i686-pc-linux-gnu/4.2/adainclude" ADA_OBJECTS_PATH="/usr/lib/gnat-gcc/i686-pc-linux-gnu/4.2/adalib" 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" ANT_HOME="/usr/share/ant" 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" ARCH="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS=" -march=prescott -O2 -pipe -fomit-frame-pointer -fno-ident" CHOST="i686-pc-linux-gnu" CLEAN_DELAY="5" COLLISION_IGNORE="/lib/modules" 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/splash /etc/terminfo /etc/udev/rules.d" CVS_RSH="ssh" CXXFLAGS=" -march=prescott -O2 -pipe -fomit-frame-pointer -fno-ident" DISPLAY=":0.0" DISTDIR="/usr/portage/distfiles" EDITOR="/bin/nano" ELIBC="glibc" EMERGE_DEFAULT_OPTS="--verbose --ask" EMERGE_WARNING_DELAY="10" FEATURES="candy collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}"" GDK_USE_XFT="1" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" GNOME_KEYRING_SOCKET="/tmp/keyring-QIT1Ir/socket" HOME="/root" INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.4/info:/usr/share/info/emacs-23:/usr/share/gnat-gcc-data/i686-pc-linux-gnu/4.2/info" INPUT_DEVICES="synaptics evdev" INTEL_BATCH="1" JAVAC="/etc/java-config-2/current-system-vm/bin/javac" JAVA_HOME="/etc/java-config-2/current-system-vm" JDK_HOME="/etc/java-config-2/current-system-vm" KERNEL="linux" LANG="de_DE@euro" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LC_ALL="de_DE@euro" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" LESS="-R -M --shift 5" LESSOPEN="|lesspipe.sh %s" LIBXCB_ALLOW_SLOPPY_LOCK="1" LINGUAS="de" LOGNAME="root" LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:" MAKEOPTS="-j3" MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.4/man:/etc/java-config/system-vm/man/:/usr/kde/3.5/share/man:/usr/qt/3/doc/man:/usr/share/gnat-gcc-data/i686-pc-linux-gnu/4.2/man" NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OPENGL_PROFILE="xorg-x11" PAGER="/usr/bin/less" PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.3.4:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/i686-pc-linux-gnu/gnat-gcc-bin/4.2:/usr/libexec/gnat-gcc/i686-pc-linux-gnu/4.2" PKGDIR="/usr/portage/packages" PKG_CONFIG_PATH="/usr/qt/3/lib/pkgconfig" PORTAGE_ARCHLIST="ppc x86-openbsd ppc-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 x86-macos x64-openbsd ia64-hpux hppa x86-netbsd amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd" PORTAGE_BINHOST_CHUNKSIZE="3000" PORTAGE_BIN_PATH="/usr/lib/portage/bin" PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png" PORTAGE_CONFIGROOT="/" PORTAGE_DEBUG="0" PORTAGE_DEPCACHEDIR="/var/cache/edb/dep" PORTAGE_ELOG_CLASSES="log warn error" PORTAGE_ELOG_MAILFROM="portage@localhost" PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}" PORTAGE_ELOG_MAILURI="root" PORTAGE_ELOG_SYSTEM="save_summary echo" PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5" PORTAGE_FETCH_RESUME_MIN_SIZE="350K" PORTAGE_GID="250" PORTAGE_INST_GID="0" PORTAGE_INST_UID="0" PORTAGE_PYM_PATH="/usr/lib/portage/pym" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_RSYNC_RETRIES="3" PORTAGE_TMPDIR="/var/tmp" PORTAGE_VERBOSE="1" PORTAGE_WORKDIR_MODE="0700" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/x11 /usr/local/portage/layman/rbu /usr/local/portage/layman/sunrise /usr/local/portage/layman/desktop-effects" PRELINK_PATH_MASK="/usr/lib/klibc" PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND" PWD="/root" QMAKESPEC="linux-g++" QTDIR="/usr/qt/3" RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}"" ROOT="/" ROOTPATH="/opt/bin:/usr/i686-pc-linux-gnu/arm-elf/gcc-bin/4.3.2:/usr/i686-pc-linux-gnu/gcc-bin/4.3.4:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/i686-pc-linux-gnu/gnat-gcc-bin/4.2:/usr/libexec/gnat-gcc/i686-pc-linux-gnu/4.2" RPMDIR="/usr/portage/rpm" SBCL_HOME="/usr/lib/sbcl" SBCL_SOURCE_ROOT="/usr/lib/sbcl/src" SHELL="/bin/bash" SHLVL="2" SYNC="rsync://rsync.gentoo.org/gentoo-portage" TERM="xterm" USE="X a52 aac aalib acl acpi ads alsa async automount bash-completion berkdb bidi bzip2 cairo cdda cdio cdr cifs cli consolekit cracklib crypt cups curl custom-cflags custom-optimization dbus dell dga directfb dri dts dvd dvdr dvdread eds emerald encode fam fbcon fbcondecor ffmpeg firefox flac fortran galago gd gdbm ggi gif glibc-omitfp gnome gnome-keyring gnutls gpm gstreamer gtk hal httpd iconv id3tag ipv6 java java5 java6 javascript jpeg kerberos laptop ldap libnotify libproxy live lm_sensors mad matroska mikmod mjpeg mmx modules mono mp3 mp4 mpeg mudflap ncurses networkmanager nfs nls nptl nptlonly nsplugin odbc ogg opengl openmp pam pcntl pcre pdf perl pmu png ppds pppd python qt3support quicktime readline reflection reiserfs samba sdl service_cache session smb smp spell spl sse sse2 sse3 ssl startup-notification stream svg svga swat sysfs tcpd theora threads threadsafe thunar truetype unicode unsupported usb vcd vlm vorbis win32codecs winbind wxwindows x264 x86 xcb xcomposite xfs xml xorg xulrunner xv xvid xvmc 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 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="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="intel" USER="root" USERLAND="GNU" USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS" USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND" USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d" VIDEO_CARDS="intel" VISUAL="/bin/nano" XAUTHORITY="/root/.xauthQEdzod" XDG_CONFIG_DIRS="/etc/xdg" XDG_DATA_DIRS="/usr/local/share:/usr/kde/3.5/share:/usr/share:/usr/share/gdm" XSESSION="Gnome" _="/usr/bin/emerge"
I tried it on a different computer and got the same problem
Created attachment 208492 [details] newlib build log
I'm sorry I uploaded the wrong build log. But something got scrambled up and I just noticed it today. the actual failing error message is: /var/tmp/cross/arm-elf/portage/cross-arm-elf/newlib-1.16.0/work/newlib-1.16.0/libgloss/arm/linux-syscalls0.S:146: Error: missing expression -- `swi'
I got the same error. One of the replies to this thread: http://thread.gmane.org/gmane.comp.lib.newlib/5612 provides a patch. I was not able to test it.
Ok I added the patch to my ebuild. It compiles without Problems now. Tomorrow I will test if any other problems come up with this. I'll append my updated Ebuild and patch. The patch is a bit poorly set up by me, with adding the explicit path to newlib-1.16 but at least it does work for now.
Created attachment 208588 [details] updated newlib ebuild includes patch for libgloss
Created attachment 208590 [details] libgloss Patch fixes syscall problem
(In reply to comment #11) > Created an attachment (id=208590) [edit] > libgloss Patch > > fixes syscall problem > The patch needs to be placed in the files folder.
The patch works for me, too.
Since the patch seems working. How and where do I get this upstream?
Comment on attachment 208590 [details] libgloss Patch no chance of this patch being added to the tree
(In reply to comment #15) > (From update of attachment 208590 [details]) > no chance of this patch being added to the tree > This patch is in upstream's cvs : http://sourceware.org/cgi-bin/cvsweb.cgi/src/libgloss/arm/linux-syscalls0.S?cvsroot=src http://sourceware.org/cgi-bin/cvsweb.cgi/src/libgloss/arm/linux-syscalls0.S.diff?r1=1.5&r2=1.6&cvsroot=src
I was able to build an arm-elf cross compiler for amd64 with this patch. Thanks very much. Why is there no chance of this patch being added to the tree if it's good enough for the upstream tree?
newlib 0.18.0 has been released. I hope, it includes linux-syscalls0.S.patch. Anyway: can somebody please do something? At least, this bug isn't dead like 296726.
(In reply to comment #15) > (From update of attachment 208590 [details]) > no chance of this patch being added to the tree Can you please provide some information, why you cannot or why you don't want to? I know this patch. Its the one upstream used to solve this issue. Please either apply a patch or do a bump to 0.18.0.
This bug can be closed. 0.18 has hit the tree.