Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87465 - crossdev: amd64 -> x86: binutils failed
Summary: crossdev: amd64 -> x86: binutils failed
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-31 13:43 UTC by Ioannis Aslanidis (RETIRED)
Modified: 2005-04-02 00:20 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ioannis Aslanidis (RETIRED) gentoo-dev 2005-03-31 13:43:52 UTC
I'm trying to set up a cross compiler so I can us distcc, but unfortunately, neither using crossdev nor doing it vapier's way will work. Output follows:

bluehat ~ # CFLAGS="-O2 -pipe" crossdev --target i686-pc-linux-gnu
--------------------------------------------------------------------------------
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   x86
 * Target System:         i686-pc-linux-gnu
 * Stage:                 3 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * headers:               linux-headers-[latest]
 * libc:                  glibc-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/i686-pc-linux-gnu
 * PORTAGE_TMPDIR:        /var/tmp/cross/i686-pc-linux-gnu
  _  -  
Comment 1 Ioannis Aslanidis (RETIRED) gentoo-dev 2005-03-31 13:43:52 UTC
I'm trying to set up a cross compiler so I can us distcc, but unfortunately, neither using crossdev nor doing it vapier's way will work. Output follows:

bluehat ~ # CFLAGS="-O2 -pipe" crossdev --target i686-pc-linux-gnu
--------------------------------------------------------------------------------
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   x86
 * Target System:         i686-pc-linux-gnu
 * Stage:                 3 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * headers:               linux-headers-[latest]
 * libc:                  glibc-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/i686-pc-linux-gnu
 * PORTAGE_TMPDIR:        /var/tmp/cross/i686-pc-linux-gnu
  _  -  ·  -  _  -  ·  -  _  -  ·  -  _  -  ·  -  _  -  ·  -  _  -  ·  -  _  -  
 * Emerging cross-binutils ...

 * binutils failed :(

 * /var/log/portage/cross-i686-pc-linux-gnu-info.log

Gentoo Base System version 1.6.10
Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3000+
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Mar 29 2005, 15:58:35)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O3 -pipe -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distcc distlocks sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.caliu.info/pub/gentoo/ http://linuv.uv.es/mirror/gentoo/ http://mirror.switch.ch/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages/cross/i686-pc-linux-gnu"
PORTAGE_TMPDIR="/var/tmp/cross/i686-pc-linux-gnu"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X aalib acpi alsa arts audiofile avi bash-completion berkdb bitmap-fonts bzlib ccache cdparanoia cdr crypt ctype cups curl directfb divx4linux dvd dvdr dvdread encode esd ethereal fam fastcgi fbcon flac flash font-server foomaticdb fortran ftp gdbm ggi gif gnome gpm gstreamer gtk gtk2 icq imagemagick imlib ipv6 java jp2 jpeg junit kde lcms ldap lzw lzw-tiff mad mime motif mozilla mp3 mpeg msn ncurses nls nptl offensive oggvorbis openal opengl oss pam pdflib perl png portaudio posix ppds python qt quicktime readline recode ruby samba scanner sdl sndfile spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales wmf xine xml xml2 xmlrpc xmms xpm xrandr xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS

 * /var/log/portage/cross-i686-pc-linux-gnu-binutils.log

checking for i686-pc-linux-gnu-ar... no
checking for i686-pc-linux-gnu-as... no
checking for i686-pc-linux-gnu-dlltool... no
checking for i686-pc-linux-gnu-ld... no
checking for i686-pc-linux-gnu-nm... no
checking for i686-pc-linux-gnu-ranlib... no
checking for i686-pc-linux-gnu-windres... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
sed: file conftest.s2 line 46: unterminated `s' command
sed: couldn't write 37 items to stdout: Broken pipe
sed: couldn't write 14 items to stdout: Broken pipe
make: *** No rule to make target `configure-bfd'.  Stop.

!!! ERROR: cross-i686-pc-linux-gnu/binutils-2.15.92.0.2-r7 failed.
!!! Function toolchain-binutils_src_compile, Line 113, Exitcode 2
!!! make configure-bfd failed
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1. CFLAGS="-O2 -pipe" crossdev --target i686-pc-linux-gnu

- or -

1. export CFLAGS="-O2 -pipe"
2. crossdev --target i686-pc-linux-gnu
Comment 2 Ioannis Aslanidis (RETIRED) gentoo-dev 2005-04-01 12:11:08 UTC
Looks like # emerge --sync && emerge -uD world solved the problem... no idea why

Does that have anything to do with the fact that packages ask me to add -fPIC in order to compile?

Marking as WORKSFORME... though I do not know what exactly happened here...
Comment 3 Ioannis Aslanidis (RETIRED) gentoo-dev 2005-04-01 12:35:05 UTC
OK, it looks like it was a distcc problem, but still I am unable to get on with it:

 * Emerging cross-linux-headers ...

 * linux-headers failed :(

scripts/kconfig/conf -d arch/i386/Kconfig
/var/tmp/cross/i686-pc-linux-gnu/portage/linux-headers-2.6.8.1-r4/work/linux-2.6.8.1/arch/i386/defconfig:175: trying to assign nonexistent symbol PCI_USE_VECTOR
/var/tmp/cross/i686-pc-linux-gnu/portage/linux-headers-2.6.8.1-r4/work/linux-2.6.8.1/arch/i386/defconfig:251: trying to assign nonexistent symbol BLK_DEV_CARMEL
/var/tmp/cross/i686-pc-linux-gnu/portage/linux-headers-2.6.8.1-r4/work/linux-2.6.8.1/arch/i386/defconfig:569: trying to assign nonexistent symbol NET_FASTROUTE
/var/tmp/cross/i686-pc-linux-gnu/portage/linux-headers-2.6.8.1-r4/work/linux-2.6.8.1/arch/i386/defconfig:1247: trying to assign nonexistent symbol X86_STD_RESOURCES
*
* Linux Kernel Configuration
*
*
* Code maturity level options
*
Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [Y/n/?] y
  Select only drivers expected to compile cleanly (CLEAN_COMPILE) [Y/n/?] y

........

Cryptographic API (CRYPTO) [N/y/?] n
*
* Library routines
*
CRC-CCITT functions (CRC_CCITT) [N/m/y/?] (NEW) n
CRC32 functions (CRC32) [Y/?] y
CRC32c (Castagnoli, et al) Cyclic Redundancy-Check (LIBCRC32C) [M/n/y/?] m
:0: sorry, unimplemented: 64-bit mode not compiled in
:0: sorry, unimplemented: 64-bit mode not compiled in
  SPLIT   include/linux/autoconf.h -> include/config/*
  CC      scripts/mod/empty.o
scripts/mod/empty.c:1: sorry, unimplemented: 64-bit mode not compiled in
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2

!!! ERROR: cross-i686-pc-linux-gnu/linux-headers-2.6.8.1-r4 failed.
!!! Function compile_headers, Line 243, Exitcode 2
!!! prepare failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 4 SpanKY gentoo-dev 2005-04-01 16:00:16 UTC
looks like the new multilib stuff is fucking everything up

if you `echo > /etc/make.profile/make.defaults`, it'll probably work
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2005-04-01 18:42:07 UTC
I built a cross-i686 toolchain on amd64 with no hitch...  I don't use crossdev, but that shouldn't be an issue.

BUT that's not even an issue... you don't need cross-i686-* on amd64 because it's part of the x86_64 toolchain, so I'm closing this as invalid.
Comment 6 SpanKY gentoo-dev 2005-04-01 18:56:21 UTC
yes, ive built for many things on amd64, but never with 2005.0
Comment 7 Ioannis Aslanidis (RETIRED) gentoo-dev 2005-04-02 00:20:12 UTC
Reply on comment #4: "you don't need cross-i686-* on amd64 because it's part of the x86_64 toolchain" could anyone explain that a bit further? distcc won't work with the current compiler.

BTW, I did what SpanKY said and I got 1 step further, but now I get:

* Emerging cross-linux-headers ...                                       [ ok ]
 * Emerging cross-glibc ...                                               [ ok ]
 * Emerging cross-gcc-stage2 ...

 * gcc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-i686-pc-linux-gnu-info.log
 * /var/log/portage/cross-i686-pc-linux-gnu-gcc-stage2.log


This is more problematic than I ever thought.