Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686710 - sys-devel/crossdev-20190311 cross-avr/gcc-{9.1.0,8.3.0-r1}: configure: error: cannot compute suffix of object files: cannot compile
Summary: sys-devel/crossdev-20190311 cross-avr/gcc-{9.1.0,8.3.0-r1}: configure: error:...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Crossdev team
Depends on:
Blocks: crossdev-bugs
  Show dependency tree
Reported: 2019-05-25 00:03 UTC by Nick Wallingford
Modified: 2019-12-22 22:28 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

cross-avr-info.log (cross-avr-info.log,19.51 KB, text/x-log)
2019-05-25 00:04 UTC, Nick Wallingford
cross-avr-gcc-stage1.log.xz (cross-avr-gcc-stage1.log.xz,37.59 KB, application/x-xz)
2019-05-25 00:05 UTC, Nick Wallingford
gcc-config.logs.tar.xz (gcc-config.logs.tar.xz,47.07 KB, application/x-xz)
2019-05-25 00:06 UTC, Nick Wallingford

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Wallingford 2019-05-25 00:03:48 UTC
~ sudo crossdev -s4 --portage --verbose --target avr
 * crossdev version:      20190311
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   *
 * Target System:         avr
 * Stage:                 4 (C/C++ compiler)
 * USE=multilib:          yes
 * ABIs:                  default

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * libc:                  avr-libc-[latest]

 * CROSSDEV_OVERLAY:      /usr/local/portage
 * PORT_LOGDIR:           /var/tmp/portage/log
 * Portage flags:          --verbose
 * 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
 * Log: /var/tmp/portage/log/cross-avr-binutils.log
 * Emerging cross-binutils ...                                                                                                                                                       [ ok ]
 * Log: /var/tmp/portage/log/cross-avr-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...

 * error: gcc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/tmp/portage/log/cross-avr-info.log
 * /var/tmp/portage/log/cross-avr-gcc-stage1.log.xz
 * /var/tmp/portage/cross-avr/gcc*/temp/gcc-config.logs.tar.xz
Comment 1 Nick Wallingford 2019-05-25 00:04:40 UTC
Created attachment 577738 [details]
Comment 2 Nick Wallingford 2019-05-25 00:05:22 UTC
Created attachment 577740 [details]
Comment 3 Nick Wallingford 2019-05-25 00:06:13 UTC
Created attachment 577742 [details]
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2019-05-26 07:50:09 UTC
> /var/tmp/portage/cross-avr/gcc-9.1.0/work/build/./gcc/as: line 106: exec: -m: invalid option
> exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...]

Make sure you have cross-binutils selected and active. Simple test:

$ LANG=C avr-as --version
GNU assembler (Gentoo 2.32 p2) 2.32.0

$ binutils-config -l | fgrep avr
 [8] avr-2.32 *
Comment 5 Nick Wallingford 2019-05-26 16:13:13 UTC
`binutils-config avr-2.32` fixed that issue, and then avr-libc ran into a similar issue that was fixed with `gcc-config avr-9.1.0`, so immediate problem solved I guess. Should crossdev be running these commands automatically before it moves on to the next step? It seems odd that it isn't.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2019-05-26 19:09:41 UTC
Normally emerging new gcc target switches compiler on.

Probably we have some corner case like uninstall old version/install new version that leaves stale symlinks. Do you happen to remember what was the sequence if actions for you?

The following:
    $ qlop -lu | fgrep cross-avr
command might shed some light.
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2019-12-22 22:28:16 UTC
Let's close it as obsolete as there is no follow-up.