Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550772 - crossdev cross-gcc-stage2 fails
Summary: crossdev cross-gcc-stage2 fails
Status: RESOLVED DUPLICATE of bug 525910
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-29 20:37 UTC by Johannes Buchner
Modified: 2015-05-30 02:24 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,5.74 KB, application/x-info)
2015-05-29 20:38 UTC, Johannes Buchner
Details
/var/log/portage/cross-avr-info.log (cross-avr-info.log,17.76 KB, text/plain)
2015-05-29 20:39 UTC, Johannes Buchner
Details
/var/log/portage/cross-avr-gcc-stage2.log.xz (cross-avr-gcc-stage2.log.xz,117.26 KB, application/x-xz)
2015-05-29 20:39 UTC, Johannes Buchner
Details
/mnt/data/tmp//portage/cross-avr/gcc-4.8.4/temp/gcc-config.logs.tar.xz (gcc-config.logs.tar.xz,50.45 KB, application/x-xz)
2015-05-29 20:40 UTC, Johannes Buchner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Buchner 2015-05-29 20:37:24 UTC
I run 
$ USE="-openmp" crossdev -t avr -s4 -S --without-headers
as per Arduino Gentoo manual 

And the output is:

--------------------------------------------------------------------------------------------------
 * crossdev version:      20141030
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   *
 * Target System:         avr
 * Stage:                 4 (C/C++ compiler)
 * ABIs:                  default

 * binutils:              binutils-[stable]
 * gcc:                   gcc-[stable]
 * libc:                  avr-libc-[stable]

 * CROSSDEV_OVERLAY:      /var/lib/layman/science
 * PORT_LOGDIR:           /var/log/portage
 * PORTAGE_CONFIGROOT:    
 * Portage flags:         
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  
 * leaving sys-devel/binutils in /var/lib/layman/science
 * leaving sys-devel/gcc in /var/lib/layman/science
 * leaving dev-embedded/avr-libc in /var/lib/layman/science
 * leaving sys-devel/gdb in /var/lib/layman/science
 * leaving metadata/layout.conf alone in /var/lib/layman/science
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  
 * Log: /var/log/portage/cross-avr-binutils.log
 * Emerging cross-binutils ...                                                              [ ok ]
 * Log: /var/log/portage/cross-avr-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...                                                            [ ok ]
 * Log: /var/log/portage/cross-avr-avr-libc.log
 * Emerging cross-avr-libc ...                                                              [ ok ]
 * Log: /var/log/portage/cross-avr-gcc-stage2.log
 * Emerging cross-gcc-stage2 ...

 * gcc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-avr-info.log
 * /var/log/portage/cross-avr-gcc-stage2.log.xz
 * /mnt/data/tmp//portage/cross-avr/gcc*/temp/gcc-config.logs.tar.xz

The problematic log file is /mnt/data/tmp/portage/cross-avr/gcc-4.8.4/temp/build.log

Running configure in multilib subdir avr25
pwd: /mnt/data/tmp/portage/cross-avr/gcc-4.8.4/work/build/avr
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... avr-unknown-none
checking target system type... avr-unknown-none
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for avr-strip... /usr/libexec/gcc/avr/strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for avr-gcc... /mnt/data/tmp/portage/cross-avr/gcc-4.8.4/work/build/./gcc/xgcc -B/mnt/data/tmp/portage/cross-avr/gcc-4.8.4/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include  -mmcu=avr25
checking for C compiler default output file name... 
configure: error: in `/mnt/data/tmp/portage/cross-avr/gcc-4.8.4/work/build/avr/avr25/libsanitizer':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Makefile:9339: recipe for target 'configure-target-libsanitizer' failed
make[1]: *** [configure-target-libsanitizer] Error 1
make[1]: Leaving directory '/mnt/data/tmp/portage/cross-avr/gcc-4.8.4/work/build'
Makefile:836: recipe for target 'all' failed
make: *** [all] Error 2

How can I fix this? Is it a problem with my compiler or a problem of the crossdev ebuild / tool?


Reproducible: Always
Comment 1 Johannes Buchner 2015-05-29 20:38:53 UTC
Created attachment 404298 [details]
emerge --info
Comment 2 Johannes Buchner 2015-05-29 20:39:38 UTC
Created attachment 404300 [details]
/var/log/portage/cross-avr-info.log
Comment 3 Johannes Buchner 2015-05-29 20:39:51 UTC
Created attachment 404302 [details]
/var/log/portage/cross-avr-gcc-stage2.log.xz
Comment 4 Johannes Buchner 2015-05-29 20:40:28 UTC
Created attachment 404304 [details]
/mnt/data/tmp//portage/cross-avr/gcc-4.8.4/temp/gcc-config.logs.tar.xz
Comment 5 SpanKY gentoo-dev 2015-05-30 02:24:50 UTC

*** This bug has been marked as a duplicate of bug 525910 ***