View previous topic :: View next topic |
Author |
Message |
Khumarahn Apprentice
Joined: 17 Apr 2009 Posts: 199
|
Posted: Tue Oct 28, 2014 12:06 pm Post subject: cross-avr/gcc fails to emerge |
|
|
Hi. I am stuck trying to rebuild the avr toolchain after the system update, the same thing on several machines.
Code: | # crossdev --target avr
WARNING: 'portageq envvar PORTDIR_OVERLAY' is deprecated. Use 'portageq repositories_configuration' instead.
WARNING: 'portageq envvar PORTDIR' is deprecated. Use 'portageq repositories_configuration' instead.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
* crossdev version: 20140118
* Host Portage ARCH: amd64
* Target Portage ARCH: *
* Target System: avr
* Stage: 4 (C/C++ compiler)
* ABIs: default
* binutils: binutils-[latest]
* gcc: gcc-[latest]
* libc: avr-libc-[latest]
* CROSSDEV_OVERLAY: /usr/local/portage
* PORT_LOGDIR: /var/log/portage
* PORTAGE_CONFIGROOT:
* Portage flags:
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~
* leaving sys-devel/binutils in /usr/local/portage
* leaving sys-devel/gcc in /usr/local/portage
* leaving dev-embedded/avr-libc in /usr/local/portage
* leaving sys-devel/gdb in /usr/local/portage
* leaving metadata/layout.conf alone in /usr/local/portage
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~
WARNING: 'portageq envvar PORTDIR' is deprecated. Use 'portageq repositories_configuration' instead.
WARNING: 'portageq envvar PORTDIR_OVERLAY' is deprecated. Use 'portageq repositories_configuration' instead.
* 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
* /var/tmp/portage/cross-avr/gcc*/temp/gcc-config.logs.tar.xz
|
looks like the problem is related to libsanitizer
Code: | checking for avr-gcc... /var/tmp/portage/cross-avr/gcc-4.8.3/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-4.8.3/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include -mmcu=avrxmega4
checking for C compiler default output file name...
configure: error: in `/var/tmp/portage/cross-avr/gcc-4.8.3/work/build/avr/avrxmega4/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 '/var/tmp/portage/cross-avr/gcc-4.8.3/work/build'
Makefile:836: recipe for target 'all' failed
make: *** [all] Error 2
|
Does anybody have the same issue? |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Tue Oct 28, 2014 12:14 pm Post subject: |
|
|
add Code: | cross-avr/gcc -sanitize | to /etc/portage/package.use/cros-avr
It's a known problem525910 _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
Khumarahn Apprentice
Joined: 17 Apr 2009 Posts: 199
|
Posted: Tue Oct 28, 2014 12:22 pm Post subject: |
|
|
ok, thanks a lot. But crossdev overwrites
/etc/portage/package.use/cross-avr
on installation. Does
/etc/portage/package.use/cros-avr
have priority? |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Tue Oct 28, 2014 12:26 pm Post subject: |
|
|
Once you called crossdev, you don't need to call it again, so the file will not be overwritten soon.
Meanwhile, the bug will be fixed, and even if the file is overwritten, it will not be a problem anymore. _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
Khumarahn Apprentice
Joined: 17 Apr 2009 Posts: 199
|
Posted: Tue Oct 28, 2014 12:29 pm Post subject: |
|
|
thanks again
But just out of curiosity, if you have two files
/etc/portage/package.use/cross-avr
/etc/portage/package.use/cros-avr
with contradicting settings, which one would have priority? I tried to google that up, but couldn't. |
|
Back to top |
|
|
Yuriy Skvortsov n00b
Joined: 30 Dec 2012 Posts: 33 Location: Odessa, Ukraine
|
Posted: Sun Dec 21, 2014 2:12 pm Post subject: |
|
|
I guess, the "cros-avr" was just a typo. For those confused as I was, after editing the package.use/cross-avr you can run emerge --resume or emerge avr gcc explicitly. |
|
Back to top |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Sat Dec 27, 2014 4:26 pm Post subject: |
|
|
Moved from Installing Gentoo to Portage & Programming. |
|
Back to top |
|
|
Oniryczny Guru
Joined: 01 Dec 2011 Posts: 419 Location: Poland
|
Posted: Wed Dec 31, 2014 9:13 am Post subject: |
|
|
thanks guys
that helped me to update my avr-gcc with -sanitize _________________ cogito ergo sum |
|
Back to top |
|
|
billium Apprentice
Joined: 22 Mar 2003 Posts: 185
|
Posted: Sat Feb 28, 2015 1:09 pm Post subject: |
|
|
Yuriy Skvortsov thanks for the --resume hint |
|
Back to top |
|
|
Zebbeman n00b
Joined: 14 Jun 2003 Posts: 69
|
Posted: Tue Mar 03, 2015 10:40 am Post subject: |
|
|
Thanks xaviermiller
+1 -sanitize |
|
Back to top |
|
|
WorBlux n00b
Joined: 07 May 2011 Posts: 39
|
Posted: Thu Mar 12, 2015 4:44 am Post subject: |
|
|
Khumarahn wrote: | thanks again :-)
But just out of curiosity, if you have two files
/etc/portage/package.use/cross-avr
/etc/portage/package.use/cros-avr
with contradicting settings, which one would have priority? I tried to google that up, but couldn't. |
http://www.gentoo-wiki.info/TIP_New_/etc/portage_layout
Apperently they are parsed in alphanumeric oder so cros-avr should be processed second and override any conflicting flags in cross-avr |
|
Back to top |
|
|
Khumarahn Apprentice
Joined: 17 Apr 2009 Posts: 199
|
Posted: Thu Mar 12, 2015 7:47 am Post subject: |
|
|
Interesting; I didn't expect to get an answer here after such long silence.
Thank you |
|
Back to top |
|
|
gemi n00b
Joined: 10 Oct 2012 Posts: 31
|
|
Back to top |
|
|
|