Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NSLU2/distcc: crossdev problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
eclice
n00b
n00b


Joined: 22 Aug 2003
Posts: 4
Location: Hanau, Germany

PostPosted: Thu Feb 01, 2007 12:33 am    Post subject: NSLU2/distcc: crossdev problem Reply with quote

Hi all!

I'm trying to follow the following "howto" to set up distcc in order to compile NSLU2 programs remotely on a much quicker computer:
http://www.nslu2-linux.org/wiki/GentooSlug/HowToGentooSlugDistccCrossCompile

The gentoo desktop (host) on which I'm trying to install the crossdev environment has the following properties:
Code:

# emerge --info
Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r6 i686)
=================================================================
System uname: 2.6.18-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System release 1.12.6
Last Sync: Wed, 24 Jan 2007 23:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo "
LINGUAS="fr"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol arts bash-completion berkdb bitmap-fonts bzip2 cairo cli cpudetection cracklib crypt cups dbus dlloader dmi dri dvd elibc_glibc encode fortran gdbm gif gnome gpm gs gstreamer gtk hal iconv ieee1394 imagemagick input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg jpeg2k kde kernel_linux kqemu lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text libg++ linguas_fr mp3 mpeg mplayer ncurses nls nptl nptlonly nsplugin ogg opengl pam pcre perl png ppds pppd python qt3 readline real reflection samba sdl server session spl sse2 ssl svg tcpd tga theora tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_fbdev video_cards_fglrx video_cards_radeon video_cards_vesa vorbis win32codecs wmf xine xml xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS


I've already done the following:

Code:

emerge -atv distcc
/etc/init.d/distccd start
rc-update add distccd default
emerge -atv crossdev


The problem occurs by calling crossdev:
(I have set up gcc version 3.4.6 as I read there were some problems with 4.1.1 : https://bugs.gentoo.org/show_bug.cgi?id=155970)

Code:

# USE="-nls -userlocales -iconv -ipv6" CTARGET="armeb-softfloat-linux-uclibc" crossdev --gcc 3.4.6 -s4 armeb-softfloat-linux-uclibc
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 * Host Portage ARCH:     x86
 * Target Portage ARCH:   arm
 * Target System:         armeb-softfloat-linux-uclibc
 * Stage:                 4 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-3.4.6
 * headers:               linux-headers-[latest]
 * libc:                  uclibc-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/armeb-softfloat-linux-uclibc
 * PORTAGE_TMPDIR:        /var/tmp/cross/armeb-softfloat-linux-uclibc
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~
 * Forcing the latest versions of binutils-config/gcc-config ...                                                                                                             [ ok ]
 * Log: /var/log/portage/cross-armeb-softfloat-linux-uclibc-binutils.log
 * Emerging cross-binutils ...                                                                                                                                               [ ok ]
 * Log: /var/log/portage/cross-armeb-softfloat-linux-uclibc-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...                                                                                                                                             [ ok ]
 * Log: /var/log/portage/cross-armeb-softfloat-linux-uclibc-linux-headers.log
 * Emerging cross-linux-headers ...                                                                                                                                          [ ok ]
 * Log: /var/log/portage/cross-armeb-softfloat-linux-uclibc-uclibc.log
 * Emerging cross-uclibc ...

 * uclibc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-armeb-softfloat-linux-uclibc-info.log
 * /var/log/portage/cross-armeb-softfloat-linux-uclibc-uclibc.log
#


I can include /var/log/portage/cross-armeb-softfloat-linux-uclibc-info.log if necessary, but I'm not sure it will help.
But a piece of /var/log/portage/cross-armeb-softfloat-linux-uclibc-uclibc.log is interesting:

Code:

armeb-softfloat-linux-uclibc-ld: /usr/lib/gcc/armeb-softfloat-linux-uclibc/3.4.6/libgcc.a(_clz.o): compiled for a big endian system and target is little endian
armeb-softfloat-linux-uclibc-ld: failed to merge target specific data of file /usr/lib/gcc/armeb-softfloat-linux-uclibc/3.4.6/libgcc.a(_clz.o)
armeb-softfloat-linux-uclibc-ld: BFD 2.17 assertion fail /var/tmp/cross/armeb-softfloat-linux-uclibc/portage/binutils-2.17/work/binutils-2.17/bfd/elf32-arm.c:3740
armeb-softfloat-linux-uclibc-ld: BFD 2.17 assertion fail /var/tmp/cross/armeb-softfloat-linux-uclibc/portage/binutils-2.17/work/binutils-2.17/bfd/elf32-arm.c:3740
make[1]: *** [shared] Error 1
make[1]: Leaving directory `/var/tmp/cross/armeb-softfloat-linux-uclibc/portage/uclibc-0.9.28-r2/work/uClibc-0.9.28/libc'
make: *** [shared] Error 2

!!! ERROR: cross-armeb-softfloat-linux-uclibc/uclibc-0.9.28-r2 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  uclibc-0.9.28-r2.ebuild, line 385:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'


Why such a problem, since the target is defined as "armeb-softfloat-linux-uclibc"?

I thank you for your help!
Back to top
View user's profile Send private message
bitwise
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 104
Location: seattle

PostPosted: Sat Feb 03, 2007 3:28 am    Post subject: Reply with quote

have you fixed this?

I noticed when I try to do it I get the same error, what's odd is that in the beginning of /var/log/portage/cross-armeb-softfloat-linux-uclibc-uclibc.log I get the following:
Code:
 * Runtime Prefix: /
 * Devel Prefix:   /usr
 * Kernel Prefix:  /usr/armeb-softfloat-linux-uclibc/usr
 * CBUILD:         i686-pc-linux-gnu
 * CHOST:          i686-pc-linux-gnu
 * CTARGET:        armeb-softfloat-linux-uclibc
 * CPU:            ARM_XSCALE
<stdin>:1:20: endian.h: No such file or directory
 * ENDIAN:         little
namely, the ENDIAN section is clearly wrong. is this then a bug?
Back to top
View user's profile Send private message
eclice
n00b
n00b


Joined: 22 Aug 2003
Posts: 4
Location: Hanau, Germany

PostPosted: Sun Feb 04, 2007 11:28 pm    Post subject: Reply with quote

bitwise wrote:
have you fixed this?

Not already: I do not know how to do it....
bitwise wrote:
Code:
* ENDIAN:         little
namely, the ENDIAN section is clearly wrong. is this then a bug?

Perhaps: For what package should I report it? crossdev?
Back to top
View user's profile Send private message
bitwise
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 104
Location: seattle

PostPosted: Mon Feb 05, 2007 1:48 am    Post subject: Reply with quote

hm, not sure on where. If you look in /usr/local/portage/cross-armeb-softfloat-linux-uclibc/uclibc/uclibc-0.9.28-r2.ebuild (or whichever ebuild is being used) in the uclibc_endian() function at line 68 it prints out a #include <endian.h> statement. From the log I posted, it appears this file doesn't exist.

I tried manually coding this to just return big, it did fix crossdev's output, it now reports ENDIAN as big, but compilation still failed :?

perhaps this should be continued in this bug?
Back to top
View user's profile Send private message
Crebain
n00b
n00b


Joined: 12 Sep 2006
Posts: 6
Location: Vilnius, Lithuania

PostPosted: Mon Feb 05, 2007 1:53 pm    Post subject: Reply with quote

bitwise wrote:
I tried manually coding this to just return big, it did fix crossdev's output, it now reports ENDIAN as big, but compilation still failed :?

I have made the same (changed contents of uclibc_endian() to 'echo big'), and everything is fine here. Make sure you have switched to armeb-softfloat-linux-uclibc gcc cross-compile profile before emerging uclibc.

Right now I have another problem - cross-emerging dropbear to new root fails because it does not find it's dependency zlib (zlib emerges successfully). Has anyone encountered anything similar? I have tried googling around, but with no helpful results.. The same goes for nano with ncurses dependency, so I don't think this is dropbear problem.

I have followed guide at http://www.gentoo.org/proj/en/base/embedded/cross-development.xml.

If anyone is interested, here is the output of xmerge --info:
Code:

fangorn ~ # /mnt/shared/slug/xmerge --info
Portage 2.1.1-r2 (uclibc/arm, gcc-3.4.6, uclibc-0.9.28-r0, 2.6.19-gentoo-r4 i686)
=================================================================
System uname: 2.6.19-gentoo-r4 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.6
Last Sync: Mon, 05 Feb 2007 03:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="arm"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=armv5t -mtune=xscale -Os"
CHOST="armeb-softfloat-linux-uclibc"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-march=armv5t -mtune=xscale -Os"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol arm bitmap-fonts cli cracklib dlloader dri elibc_uclibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text make-symlinks midi minimal ncurses pcre readline reflection session spl truetype-fonts type1-fonts uclibc userland_GNU video_cards_dummy video_cards_fbdev video_cards_v4l xorg"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


And this is the output of dropbear build:
Code:
fangorn ~ # /mnt/shared/slug/xmerge -avuDN dropbear

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-misc/dropbear-0.47-r1 to /mnt/shared/slug/ USE="minimal zlib* -multicall -pam -static" 0 kB

Total size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]

>>> Emerging (1 of 1) net-misc/dropbear-0.47-r1 to /mnt/shared/slug/
 * dropbear-0.47.tar.bz2 MD5 ;-) ...                                                                                                                                        [ ok ]
 * dropbear-0.47.tar.bz2 RMD160 ;-) ...                                                                                                                                     [ ok ]
 * dropbear-0.47.tar.bz2 SHA1 ;-) ...                                                                                                                                       [ ok ]
 * dropbear-0.47.tar.bz2 SHA256 ;-) ...                                                                                                                                     [ ok ]
 * dropbear-0.47.tar.bz2 size ;-) ...                                                                                                                                       [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                        [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                       [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                      [ ok ]
 * checking dropbear-0.47.tar.bz2 ;-) ...                                                                                                                                   [ ok ]
>>> Unpacking source...
>>> Unpacking dropbear-0.47.tar.bz2 to /var/tmp/portage/dropbear-0.47-r1/work
 * Applying dropbear-0.45-urandom.patch ...                                                                                                                                 [ ok ]
 * Applying dropbear-0.46-dbscp.patch ...                                                                                                                                   [ ok ]
 * Applying dropbear-0.47-CVE-2006-0225.patch ...                                                                                                                           [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dropbear-0.47-r1/work/dropbear-0.47 ...
 * econf: updating dropbear-0.47/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating dropbear-0.47/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=armeb-softfloat-linux-uclibc --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-lastlog --enable-zlib --disable-pam --build=i686-pc-linux-gnu
checking for armeb-softfloat-linux-uclibc-gcc... armeb-softfloat-linux-uclibc-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether armeb-softfloat-linux-uclibc-gcc accepts -g... yes
checking for armeb-softfloat-linux-uclibc-gcc option to accept ANSI C... none needed
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... armeb-softfloat-linux-uclibc
checking for armeb-softfloat-linux-uclibc-ar... armeb-softfloat-linux-uclibc-ar
checking for armeb-softfloat-linux-uclibc-ranlib... armeb-softfloat-linux-uclibc-ranlib
checking for armeb-softfloat-linux-uclibc-strip... armeb-softfloat-linux-uclibc-strip
checking for armeb-softfloat-linux-uclibc-install... no
checking for install... install
checking how to run the C preprocessor... armeb-softfloat-linux-uclibc-gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether __UCLIBC__ is declared... yes
Using uClibc - login() and logout() probably don't work
checking for crypt in -lcrypt... yes
checking for deflate in -lz... no
configure: error: *** zlib missing - install first or check config.log ***

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/dropbear-0.47-r1/work/dropbear-0.47/config.log

!!! ERROR: net-misc/dropbear-0.47-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  dropbear-0.47-r1.ebuild, line 48:   Called econf '--disable-lastlog' '--enable-zlib' '--disable-pam'
  ebuild.sh, line 540:   Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum