Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585220 - sys-devel/crossdev - avr needs USE="-openmp -hardened -sanitize -vtv"
Summary: sys-devel/crossdev - avr needs USE="-openmp -hardened -sanitize -vtv"
Status: RESOLVED DUPLICATE of bug 582298
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
: 582684 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-06-06 20:43 UTC by Lars
Modified: 2016-08-11 10:23 UTC (History)
4 users (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 Lars 2016-06-06 20:43:11 UTC
crossdev will fail for target avr if those USE flags are not set.

These USE flags should be documented (e.g. in Gentoo Wiki) or set as the default for --target avr.

This is how I build a working avr toolchain (after cleaning previous attempts with 'crossdev -C avr':

  USE="-openmp -hardened -sanitize -vtv" crossdev -s4 -S --target avr

And the symlinks to workaround Bug 147155 are still necessary:

  ln -s /usr/x86_64-pc-linux-gnu/avr/lib/ldscripts /usr/avr/lib/ldscripts

Everything else I read on http://gentoo-en.vfose.ru/wiki/Crossdev#AVR_Architecture (i.e. patching, USE="-cxx", first building without headers) seems not to be needed anymore.
Comment 1 Michael 'veremitz' Everitt 2016-06-07 04:33:45 UTC
Fixed on wiki page: https://wiki.gentoo.org/wiki/Arduino#Install_the_toolchain_using_crossdev

Will ping @vapier to see whether these can be incorporated in crossdev avr defaults.
Comment 2 Michael 'veremitz' Everitt 2016-06-07 04:42:35 UTC
Looks like fixed in commit https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=be2e2afe53400c7339cc2d105fdfb114c55da74d . 
Thanks @vapier.

I think the '-hardened' option may be unnecessary for those running 'vanilla' gentoo.
Comment 3 SpanKY gentoo-dev 2016-06-07 04:50:56 UTC

*** This bug has been marked as a duplicate of bug 582298 ***
Comment 4 SpanKY gentoo-dev 2016-08-11 10:23:05 UTC
*** Bug 582684 has been marked as a duplicate of this bug. ***