Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] GCC 4.9.3 Stage 1 fails to compile using crossdev
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
vanjo9800
Tux's lil' helper
Tux's lil' helper


Joined: 16 Mar 2015
Posts: 76

PostPosted: Fri Nov 20, 2015 9:15 pm    Post subject: [SOLVED] GCC 4.9.3 Stage 1 fails to compile using crossdev Reply with quote

Hello,

I want to start programming on Arduino. I followed this guide: https://forums.gentoo.org/viewtopic-t-907860.html. However, on 3rd step cross-gcc-stage1 fails to compile.

I run as root:
Code:
 crossdev -t avr
. For some time it compiles and the output is:
Code:
 gawk: cmd. line:8: (FILENAME=- FNR=1) warning: gensub: third argument `' treated as 1
gawk: cmd. line:8: (FILENAME=- FNR=5) warning: gensub: third argument `' treated as 1
gawk: cmd. line:8: (FILENAME=- FNR=14) warning: gensub: third argument `' treated as 1
gawk: cmd. line:8: (FILENAME=- FNR=20) warning: gensub: third argument `' treated as 1
gawk: cmd. line:8: (FILENAME=- FNR=26) warning: gensub: third argument `' treated as 1
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 * crossdev version:      20150716
 * 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
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -
gawk: cmd. line:8: (FILENAME=- FNR=1) warning: gensub: third argument `' treated as 1
gawk: cmd. line:8: (FILENAME=- FNR=5) warning: gensub: third argument `' treated as 1
gawk: cmd. line:8: (FILENAME=- FNR=14) warning: gensub: third argument `' treated as 1
gawk: cmd. line:8: (FILENAME=- FNR=20) warning: gensub: third argument `' treated as 1
gawk: cmd. line:8: (FILENAME=- FNR=26) warning: gensub: third argument `' treated as 1
 * 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 ...

 * 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-stage1.log.xz
 * /var/tmp/portage/cross-avr/gcc*/temp/gcc-config.logs.tar.xz


The file /var/log/portage/cross-avr-info.log ends in the following way:
Code:

checking for avr-gcc... /var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include   
checking for suffix of object files... configure: error: in `/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/avr/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Makefile:9789: recipe for target 'configure-target-libgcc' failed
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory '/var/tmp/portage/cross-avr/gcc-4.9.3/work/build'
Makefile:839: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: cross-avr/gcc-4.9.3::minivan failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=cross-avr/gcc-4.9.3::minivan'`,
 * the complete build log and the output of `emerge -pqv '=cross-avr/gcc-4.9.3::minivan'`.
 * The complete build log is located at '/var/tmp/portage/cross-avr/gcc-4.9.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/cross-avr/gcc-4.9.3/temp/environment'.
 * Working directory: '/var/tmp/portage/cross-avr/gcc-4.9.3/work/build'
 * S: '/var/tmp/portage/cross-avr/gcc-4.9.3/work/gcc-4.9.3'
 *
 * Please include /var/tmp/portage/cross-avr/gcc-4.9.3/work/gcc-build-logs.tar.bz2 in your bug report.
 *

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

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

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

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


The file /var/tmp/portage/cross-avr/gcc-4.9.3/work/build/avr/libgcc/config.log is the following:
Code:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GNU C Runtime Library configure 1.0, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  $ /var/tmp/portage/cross-avr/gcc-4.9.3/work/gcc-4.9.3/libgcc/configure --cache-file=./config.cache --with-cross-host=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/avr/gcc-bin/4.9.3 --includedir=/usr/lib/gcc/avr/4.9.3/include --datadir=/usr/share/gcc-data/avr/4.9.3 --mandir=/usr/share/gcc-data/avr/4.9.3/man --infodir=/usr/share/gcc-data/avr/4.9.3/info --with-gxx-include-dir=/usr/lib/gcc/avr/4.9.3/include/g++-v4 --with-python-dir=/share/gcc-data/avr/4.9.3/python --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion=Gentoo 4.9.3 p1.4, pie-0.6.4 --enable-poison-system-directories --enable-shared --disable-threads --disable-bootstrap --enable-multilib --disable-altivec --disable-fixed-point --disable-libgcj --disable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --disable-libquadmath --enable-lto --disable-libsanitizer --enable-languages=c,lto --program-transform-name=s&^&avr-& --disable-option-checking --with-target-subdir=avr --build=x86_64-pc-linux-gnu --host=avr --target=avr --srcdir=/var/tmp/portage/cross-avr/gcc-4.9.3/work/gcc-4.9.3/libgcc

## --------- ##
## Platform. ##
## --------- ##

hostname = ivan-laptop
uname -m = x86_64
uname -r = 4.3.0-gentoo
uname -s = Linux
uname -v = #1 SMP Fri Nov 20 21:20:16 EET 2015

/usr/bin/uname -p = Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/lib/portage/python2.7/ebuild-helpers/xattr
PATH: /usr/lib/portage/python2.7/ebuild-helpers
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /opt/bin
PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1980: creating cache ./config.cache
configure:2163: checking build system type
configure:2177: result: x86_64-pc-linux-gnu
configure:2197: checking host system type
configure:2210: result: avr-unknown-none
configure:2307: checking for --enable-version-specific-runtime-libs
configure:2320: result: no
configure:2368: checking for a BSD-compatible install
configure:2436: result: /usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c
configure:2452: checking for gawk
configure:2479: result: gawk
configure:2579: checking for avr-ar
configure:2606: result: /usr/libexec/gcc/avr/ar
configure:2671: checking for avr-lipo
configure:2698: result: avr-lipo
configure:2763: checking for avr-nm
configure:2790: result: /var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/nm
configure:2855: checking for avr-ranlib
configure:2882: result: /usr/libexec/gcc/avr/ranlib
configure:2947: checking for avr-strip
configure:2974: result: /usr/libexec/gcc/avr/strip
configure:3036: checking whether ln -s works
configure:3040: result: yes
configure:3057: checking for avr-gcc
configure:3084: result: /var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include   
configure:3353: checking for C compiler version
configure:3362: /var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include    --version >&5
xgcc (Gentoo 4.9.3 p1.4, pie-0.6.4) 4.9.3
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3373: $? = 0
configure:3362: /var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include    -v >&5
Reading specs from /var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/specs
COLLECT_GCC=/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/xgcc
COLLECT_LTO_WRAPPER=/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/lto-wrapper
Target: avr
Configured with: /var/tmp/portage/cross-avr/gcc-4.9.3/work/gcc-4.9.3/configure --host=x86_64-pc-linux-gnu --target=avr --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/avr/gcc-bin/4.9.3 --includedir=/usr/lib/gcc/avr/4.9.3/include --datadir=/usr/share/gcc-data/avr/4.9.3 --mandir=/usr/share/gcc-data/avr/4.9.3/man --infodir=/usr/share/gcc-data/avr/4.9.3/info --with-gxx-include-dir=/usr/lib/gcc/avr/4.9.3/include/g++-v4 --with-python-dir=/share/gcc-data/avr/4.9.3/python --enable-languages=c --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.9.3 p1.4, pie-0.6.4' --enable-poison-system-directories --enable-shared --disable-threads --disable-bootstrap --enable-multilib --disable-altivec --disable-fixed-point --disable-libgcj --disable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --disable-libquadmath --enable-lto --without-cloog --disable-libsanitizer
Thread model: single
gcc version 4.9.3 (Gentoo 4.9.3 p1.4, pie-0.6.4)
configure:3373: $? = 0
configure:3362: /var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include    -V >&5
xgcc: error: unrecognized command line option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3373: $? = 1
configure:3362: /var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include    -qversion >&5
xgcc: error: unrecognized command line option '-qversion'
xgcc: fatal error: no input files
compilation terminated.
configure:3373: $? = 1
configure:3389: /var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include    -o conftest -g -O2 -pipe   conftest.c  >&5
Assembler messages:
Fatal error: selected target format 'elf32-avr' unknown
configure:3392: $? = 2
configure:3580: checking for suffix of object files
configure:3602: /var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include    -c -g -O2 -pipe  conftest.c >&5
Assembler messages:
Fatal error: selected target format 'elf32-avr' unknown
configure:3606: $? = 2
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3620: error: in `/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/avr/libgcc':
configure:3623: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value='/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include   '
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -O2 -pipe'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=avr
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=avr
ac_cv_have_x='have_x=yes ac_x_includes= ac_x_libraries='
ac_cv_host=avr-unknown-none
ac_cv_prog_AR=/usr/libexec/gcc/avr/ar
ac_cv_prog_AWK=gawk
ac_cv_prog_CC='/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include   '
ac_cv_prog_LIPO=avr-lipo
ac_cv_prog_NM=/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/nm
ac_cv_prog_RANLIB=/usr/libexec/gcc/avr/ranlib
ac_cv_prog_STRIP=/usr/libexec/gcc/avr/strip
gcc_cv_prog_makeinfo_modern=no

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR='/usr/libexec/gcc/avr/ar'
AWK='gawk'
CC='/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include   '
CFLAGS='-g -O2 -pipe'
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA='/usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c -m 644'
INSTALL_PROGRAM='/usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c'
INSTALL_SCRIPT='/usr/lib/portage/python2.7/ebuild-helpers/xattr/install -c'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIPO='avr-lipo'
LN_S='ln -s'
LTLIBOBJS=''
MAINT='#'
NM='/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/nm'
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='GNU C Runtime Library'
PACKAGE_STRING='GNU C Runtime Library 1.0'
PACKAGE_TARNAME='libgcc'
PACKAGE_URL='http://www.gnu.org/software/libgcc/'
PACKAGE_VERSION='1.0'
PATH_SEPARATOR=':'
PICFLAG='-fPIC'
RANLIB='/usr/libexec/gcc/avr/ranlib'
SHELL='/bin/bash'
STRIP='/usr/libexec/gcc/avr/strip'
ac_ct_CC=''
asm_hidden_op=''
bindir='/usr/x86_64-pc-linux-gnu/avr/gcc-bin/4.9.3'
build='x86_64-pc-linux-gnu'
build_alias='x86_64-pc-linux-gnu'
build_cpu='x86_64'
build_libsubdir='build-x86_64-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-x86_64-pc-linux-gnu'
build_vendor='pc'
cpu_type=''
datadir='/usr/share/gcc-data/avr/4.9.3'
datarootdir='${prefix}/share'
decimal_float=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
double_type_size=''
dvidir='${docdir}'
enable_decimal_float=''
enable_shared='yes'
enable_vtable_verify='no'
exec_prefix='NONE'
extra_parts=''
fixed_point=''
host='avr-unknown-none'
host_alias='avr'
host_cpu='avr'
host_noncanonical='avr'
host_os='none'
host_subdir='.'
host_vendor='unknown'
htmldir='${docdir}'
includedir='/usr/lib/gcc/avr/4.9.3/include'
infodir='/usr/share/gcc-data/avr/4.9.3/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libgcc_topdir='/var/tmp/portage/cross-avr/gcc-4.9.3/work/gcc-4.9.3/libgcc/..'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
long_double_type_size=''
mandir='/usr/share/gcc-data/avr/4.9.3/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s&^&avr-&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
set_have_cc_tls=''
set_use_emutls=''
sfp_machine_header=''
sharedstatedir='${prefix}/com'
slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
sysconfdir='${prefix}/etc'
target_alias='avr'
target_noncanonical='avr'
target_subdir='avr'
thread_header=''
tm_defines=''
tm_file=''
tmake_file=''
toolexecdir='$(exec_prefix)/$(target_noncanonical)'
toolexeclibdir='$(toolexecdir)/lib'
vis_hide=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "GNU C Runtime Library"
#define PACKAGE_TARNAME "libgcc"
#define PACKAGE_VERSION "1.0"
#define PACKAGE_STRING "GNU C Runtime Library 1.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL "http://www.gnu.org/software/libgcc/"

configure: exit 1


I have GMP and MPFR installed.

What am I missing?

Thank you in advance!!!


Last edited by vanjo9800 on Sun Nov 22, 2015 2:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
Sakaki
Guru
Guru


Joined: 21 May 2014
Posts: 409

PostPosted: Fri Nov 20, 2015 10:17 pm    Post subject: Reply with quote

Hi - please see bug 562460; the patch in comment #10 fixed the problem for me.
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
vanjo9800
Tux's lil' helper
Tux's lil' helper


Joined: 16 Mar 2015
Posts: 76

PostPosted: Sun Nov 22, 2015 2:56 pm    Post subject: Reply with quote

Thank you!!! That solved the problem!
Back to top
View user's profile Send private message
Mika15
n00b
n00b


Joined: 09 Dec 2010
Posts: 64
Location: Barcelona, Spain

PostPosted: Sun Nov 22, 2015 6:12 pm    Post subject: Reply with quote

Hi,

I have the same problem and can't manage to solve it, someone can tell me how to apply the patch please ?

To apply this path I tried this method (https://wiki.gentoo.org/wiki//etc/portage/patches) creating /etc/portage/patches/sys-devel/binutils-config-5-r1/ and copying the patch into, but it doesn't work...

Thanks.
Back to top
View user's profile Send private message
Mika15
n00b
n00b


Joined: 09 Dec 2010
Posts: 64
Location: Barcelona, Spain

PostPosted: Mon Nov 23, 2015 8:30 am    Post subject: Reply with quote

Hi,

I applied the patch to the files "/usr/portage/sys-devel/binutils-config/files/binutils-config-5" without errors, I do the ebuild digest and I re-emerge binutils-config, everything orks fine.
But I launch "crossover -t avr" and I have the same error:
Code:
checking for avr-gcc... /var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/xgcc -B/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include
checking for suffix of object files... configure: error: in `/var/tmp/portage/cross-avr/gcc-4.9.3/work/build/avr/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Makefile:9789: recipe for target 'configure-target-libgcc' failed
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory '/var/tmp/portage/cross-avr/gcc-4.9.3/work/build'
Makefile:839: recipe for target 'all' failed


Someone can tell me what I'm doing wrong ?

Thanks for your help
Back to top
View user's profile Send private message
Sakaki
Guru
Guru


Joined: 21 May 2014
Posts: 409

PostPosted: Mon Nov 23, 2015 10:35 am    Post subject: Reply with quote

Hi Mika15, a proper fix for this has now been committed. Please see the tail of bug 562460.
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
Mika15
n00b
n00b


Joined: 09 Dec 2010
Posts: 64
Location: Barcelona, Spain

PostPosted: Mon Nov 23, 2015 10:56 pm    Post subject: Reply with quote

Hi Sakaki,

Thank you for your response, I managed to solve my problem with that and after fighting with the sanitize and fortran Use I'm able to talk with my Arduino!

Regards.
Back to top
View user's profile Send private message
necktwi
Apprentice
Apprentice


Joined: 24 Aug 2018
Posts: 168

PostPosted: Wed Feb 06, 2019 4:56 pm    Post subject: Reply with quote

I got the error with binutils-config-5-r4 and 5.1-r1

Code:
gcc version 8.2.0 (Gentoo 8.2.0-r6 p1.7)
configure:3458: $? = 0
configure:3447: /var/tmp/portage/cross-armv6j-unknown-linux-gnueabihf/gcc-8.2.0\
-r6/work/build/./gcc/xgcc -B/var/tmp/portage/cross-armv6j-unknown-linux-gnueabi\
hf/gcc-8.2.0-r6/work/build/./gcc/ -B/usr/armv6j-unknown-linux-gnueabihf/bin/ -B\
/usr/armv6j-unknown-linux-gnueabihf/lib/ -isystem /usr/armv6j-unknown-linux-gnu\
eabihf/include -isystem /usr/armv6j-unknown-linux-gnueabihf/sys-include    -V >\
&5
xgcc: error: unrecognized command line option '-V'
xgcc: fatal error: no input files
compilation terminated.


(GentooVM):~ Necktwi$ wgetpaste build/armv6j-unknown-linux-gnueabihf/libgcc/config.log
Your paste can be seen here: https://paste.pound-python.org/show/LYye43xJqYuYjHEQcIqb/
(GentooVM):~ Necktwi$ wgetpaste /var/log/portage/cross-armv6j-unknown-linux-gnueabihf-info.log
Your paste can be seen here: https://paste.pound-python.org/show/YYyLXcn7gXzYESrNuDa4/
(GentooVM):~ Necktwi$ wgetpaste /var/log/portage/cross-armv6j-unknown-linux-gnueabihf-gcc-stage1.log
Your paste can be seen here: https://paste.pound-python.org/show/7eVOlC4cVCOnL2up7htK/
Back to top
View user's profile Send private message
necktwi
Apprentice
Apprentice


Joined: 24 Aug 2018
Posts: 168

PostPosted: Fri Feb 08, 2019 4:44 pm    Post subject: Reply with quote

Got help to fix it! I think `binutils-config armv6j-unknown-linux-gnueabihf` fixed it.
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