Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618628 - sys-devel/crossdev fail to generate aarch64-unknown-linux-gnu toolchain
Summary: sys-devel/crossdev fail to generate aarch64-unknown-linux-gnu toolchain
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Crossdev team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: crossdev-bugs
  Show dependency tree
 
Reported: 2017-05-16 08:37 UTC by Yixun Lan
Modified: 2017-11-21 20:21 UTC (History)
3 users (show)

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


Attachments
cross-aarch64-unknown-linux-gnu-gcc-stage1.log.xz (cross-aarch64-unknown-linux-gnu-gcc-stage1.log.xz,35.73 KB, application/x-xz)
2017-05-16 08:37 UTC, Yixun Lan
Details
gcc-config.logs.tar.xz (gcc-config.logs.tar.xz,44.43 KB, application/x-xz)
2017-05-16 08:37 UTC, Yixun Lan
Details
cross-aarch64-unknown-linux-gnu-info.log (cross-aarch64-unknown-linux-gnu-info.log,20.30 KB, text/x-log)
2017-05-16 08:37 UTC, Yixun Lan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yixun Lan archtester gentoo-dev 2017-05-16 08:37:04 UTC
Created attachment 472750 [details]
cross-aarch64-unknown-linux-gnu-gcc-stage1.log.xz

ofmlt ~ # crossdev -t  cross-aarch64-unknown-linux-gnu
------------------------------------------------------------------------------------------------
 * crossdev version:      8b1b79e02cc36bc6f2b5583db6aeea333fb8d59b
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   arm64
 * Target System:         aarch64-unknown-linux-gnu
 * Stage:                 4 (C/C++ compiler)
 * ABIs:                  arm64

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * headers:               linux-headers-[latest]
 * libc:                  glibc-[latest]

 * CROSSDEV_OVERLAY:      /var/lib/layman/local
 * PORT_LOGDIR:           /var/log/portage/build
 * PORTAGE_CONFIGROOT:    
 * Portage flags:         
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -
 * leaving sys-devel/binutils in /var/lib/layman/local
 * leaving sys-devel/gcc in /var/lib/layman/local
 * leaving sys-kernel/linux-headers in /var/lib/layman/local
 * leaving sys-libs/glibc in /var/lib/layman/local
 * leaving sys-devel/gdb in /var/lib/layman/local
 * enabling thin-manifests due to /var/lib/layman/kde
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -
 * Log: /var/log/portage/build/cross-aarch64-unknown-linux-gnu-binutils.log
 * Emerging cross-binutils ...                                                            [ ok ]
 * Log: /var/log/portage/build/cross-aarch64-unknown-linux-gnu-linux-headers-quick.log
 * Emerging cross-linux-headers-quick ...                                                 [ ok ]
 * Log: /var/log/portage/build/cross-aarch64-unknown-linux-gnu-glibc-headers.log
 * Emerging cross-glibc-headers ...                                                       [ ok ]
 * Log: /var/log/portage/build/cross-aarch64-unknown-linux-gnu-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...

 * error: gcc failed :(
 * 
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/build/cross-aarch64-unknown-linux-gnu-info.log
 * /var/log/portage/build/cross-aarch64-unknown-linux-gnu-gcc-stage1.log.xz
 * /var/tmp/portage/cross-aarch64-unknown-linux-gnu/gcc*/temp/gcc-config.logs.tar.xz
Comment 1 Yixun Lan archtester gentoo-dev 2017-05-16 08:37:33 UTC
Created attachment 472752 [details]
gcc-config.logs.tar.xz
Comment 2 Yixun Lan archtester gentoo-dev 2017-05-16 08:37:57 UTC
Created attachment 472754 [details]
cross-aarch64-unknown-linux-gnu-info.log
Comment 3 Steve Arnold archtester gentoo-dev 2017-06-25 18:51:53 UTC
Essentially the same command just worked for me a couple weeks ago:

crossdev -v -t aarch64-unknown-linux-gnu --ex-gdb --ov-output /usr/local/armv8

The one thing I always do is disable any local overlays for crossdev builds and point it to its own overlay dir (also I always use crossdev-99999999).  It's actually armv7a that fails now on glibc if gcc version is greater than or equal to 6.x
Comment 4 Steve Arnold archtester gentoo-dev 2017-06-25 18:53:05 UTC
Oh, and try it again without the cross- in the target name.
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2017-11-21 20:21:16 UTC
Yes, it should be 'crossdev -t aarch64-unknown-linux-gnu' without 'cross-' prefix.