LINUX.ORG.RU

Не собирается cross-avr/gcc из оверлея asux

 , ,


0

1

Добрый день! Пытаюсь собрать себе всё необходимое для разработки под avr. Делаю `USE=«nopie nossp -hardened» crossdev -S -P -v -t avr`, получаю такой выхлоп:

configure: error: in `/var/tmp/portage/cross-avr/gcc-4.9.4/work/build/avr/avr25/libvtv':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [Makefile:9461: configure-target-libvtv] Error 1
make[1]: Leaving directory '/var/tmp/portage/cross-avr/gcc-4.9.4/work/build'
make: *** [Makefile:841: all] Error 2
 * ERROR: cross-avr/gcc-4.9.4::asux failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=cross-avr/gcc-4.9.4::asux'`,
 * the complete build log and the output of `emerge -pqv '=cross-avr/gcc-4.9.4::asux'`.
 * The complete build log is located at '/var/tmp/portage/cross-avr/gcc-4.9.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/cross-avr/gcc-4.9.4/temp/environment'.
 * Working directory: '/var/tmp/portage/cross-avr/gcc-4.9.4/work/build'
 * S: '/var/tmp/portage/cross-avr/gcc-4.9.4/work/gcc-4.9.4'
 * 
 * Please include /var/tmp/portage/cross-avr/gcc-4.9.4/work/gcc-build-logs.tar.bz2 in your bug report.
 * 

>>> Failed to emerge cross-avr/gcc-4.9.4, Log file:

>>>  '/var/tmp/portage/cross-avr/gcc-4.9.4/temp/build.log'

 * Messages for package cross-avr/gcc-4.9.4:

 * ERROR: cross-avr/gcc-4.9.4::asux failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=cross-avr/gcc-4.9.4::asux'`,
 * the complete build log and the output of `emerge -pqv '=cross-avr/gcc-4.9.4::asux'`.
 * The complete build log is located at '/var/tmp/portage/cross-avr/gcc-4.9.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/cross-avr/gcc-4.9.4/temp/environment'.
 * Working directory: '/var/tmp/portage/cross-avr/gcc-4.9.4/work/build'
 * S: '/var/tmp/portage/cross-avr/gcc-4.9.4/work/gcc-4.9.4'
 * 
 * Please include /var/tmp/portage/cross-avr/gcc-4.9.4/work/gcc-build-logs.tar.bz2 in your bug report.
 * 

 * error: 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

Забавно, что в репозитории оверлея asux на github я никакого cross-avr и в помине не нашёл.


Проверь USE-флаги. Мне помогло включения компилятора C++ и ещё какой-то мелочи (для cross-пакетов USE-флаги надо прописывать отдельно)

XMs ★★★★★
()
Ответ на: комментарий от XMs

Ну, включил cxx, а ещё какая-то мелоч - это что? Можешь показать, с какими флагами у тебя собран?

kosc
() автор топика
Ответ на: комментарий от kosc
xms@XMs-develop ~ $ equery u =cross-avr/gcc-4.9.4
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for cross-avr/gcc-4.9.4:
 U I
 - - awt             : Useful only when building GCJ, this enables Abstract Window Toolkit (AWT) peer support on top of GTK+
 - - cilk            : Support the Cilk Plus language (C/C++ based languages for parallel programming)
 + + cxx             : Build support for C++ (bindings, extra libraries, code generation, ...)
 - - debug           : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
 - - doc             : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
 - - fortran         : Add support for fortran
 - - gcj             : Enable building with gcj (The GNU Compiler for the Javatm Programming Language)
 - - go              : Build the GCC Go language frontend.
 + + graphite        : Add support for the framework for loop optimizations based on a polyhedral intermediate representation
 - - hardened        : Activate default security enhancements for toolchain (gcc, glibc, binutils)
 - - libssp          : Build SSP support into a dedicated library rather than use the code in the C library (DO NOT ENABLE THIS IF YOU DON'T KNOW WHAT IT DOES)
 + + multilib        : On 64bit systems, if you want to be able to compile 32bit and 64bit binaries
 + + nls             : Add Native Language Support (using gettext - GNU locale utilities)
 - - nopie           : Disable PIE support (NOT FOR GENERAL USE)
 - - nossp           : Disable SSP support (NOT FOR GENERAL USE)
 + + nptl            : Enable support for Native POSIX Threads Library, the new threading module (requires linux-2.6 or better usually)
 - - objc            : Build support for the Objective C code language
 - - objc++          : Build support for the Objective C++ language
 - - objc-gc         : Build support for the Objective C code language Garbage Collector
 + + openmp          : Build support for the OpenMP (support parallel computing), requires >=sys-devel/gcc-4.2 built with USE=«openmp»
 - - regression-test : Run the testsuite and install the results (requires FEATURES=test)
 - - sanitize        : Build support for various sanitizer functions (ASAN/TSAN/etc...)
 - - vanilla         : Do not add extra patches which change default behaviour; DO NOT USE THIS ON A GLOBAL SCALE as the severity of the meaning changes drastically
 - - vtv             : Build support for virtual table verification (a C++ hardening feature)
xms@XMs-develop ~ $
XMs ★★★★★
()
Последнее исправление: XMs (всего исправлений: 1)
29 января 2017 г.

была такая же ошибка, собралось так:

cross-avr/gcc -sanitize -openmp -hardened -vtv

cyberhoffman
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.