Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cross-avr/gcc fails to emerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Khumarahn
Apprentice
Apprentice


Joined: 17 Apr 2009
Posts: 199

PostPosted: Tue Oct 28, 2014 12:06 pm    Post subject: cross-avr/gcc fails to emerge Reply with quote

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
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8708
Location: ~Brussels - Belgique

PostPosted: Tue Oct 28, 2014 12:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Khumarahn
Apprentice
Apprentice


Joined: 17 Apr 2009
Posts: 199

PostPosted: Tue Oct 28, 2014 12:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8708
Location: ~Brussels - Belgique

PostPosted: Tue Oct 28, 2014 12:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Khumarahn
Apprentice
Apprentice


Joined: 17 Apr 2009
Posts: 199

PostPosted: Tue Oct 28, 2014 12:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Yuriy Skvortsov
n00b
n00b


Joined: 30 Dec 2012
Posts: 33
Location: Odessa, Ukraine

PostPosted: Sun Dec 21, 2014 2:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Sat Dec 27, 2014 4:26 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Portage & Programming.
Back to top
View user's profile Send private message
Oniryczny
Guru
Guru


Joined: 01 Dec 2011
Posts: 419
Location: Poland

PostPosted: Wed Dec 31, 2014 9:13 am    Post subject: Reply with quote

thanks guys
that helped me to update my avr-gcc with -sanitize :)
_________________
cogito ergo sum
Back to top
View user's profile Send private message
billium
Apprentice
Apprentice


Joined: 22 Mar 2003
Posts: 185

PostPosted: Sat Feb 28, 2015 1:09 pm    Post subject: Reply with quote

Yuriy Skvortsov thanks for the --resume hint :)
Back to top
View user's profile Send private message
Zebbeman
n00b
n00b


Joined: 14 Jun 2003
Posts: 69

PostPosted: Tue Mar 03, 2015 10:40 am    Post subject: Reply with quote

Thanks xaviermiller
+1 -sanitize
Back to top
View user's profile Send private message
WorBlux
n00b
n00b


Joined: 07 May 2011
Posts: 39

PostPosted: Thu Mar 12, 2015 4:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Khumarahn
Apprentice
Apprentice


Joined: 17 Apr 2009
Posts: 199

PostPosted: Thu Mar 12, 2015 7:47 am    Post subject: Reply with quote

Interesting; I didn't expect to get an answer here after such long silence.

Thank you :-)
Back to top
View user's profile Send private message
gemi
n00b
n00b


Joined: 10 Oct 2012
Posts: 31

PostPosted: Fri May 08, 2015 1:59 am    Post subject: Reply with quote

can anyone comment on this issue https://forums.gentoo.org/viewtopic-p-7744398.html#7744398
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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