Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633830 - sys-devel/gdb-8.0.1 fails when using crossdev
Summary: sys-devel/gdb-8.0.1 fails when using crossdev
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-09 09:37 UTC by m-kress
Modified: 2019-02-14 23:00 UTC (History)
1 user (show)

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


Attachments
emerge --info '=cross-armv7a-hardfloat-linux-gnueabi/gdb-8.0.1::x-portage' (fail_gdb_8.0.1.txt,4.83 KB, text/plain)
2017-10-09 09:37 UTC, m-kress
Details

Note You need to log in before you can comment on or make changes to this bug.
Description m-kress 2017-10-09 09:37:30 UTC
Created attachment 498194 [details]
emerge --info '=cross-armv7a-hardfloat-linux-gnueabi/gdb-8.0.1::x-portage'

The packages compiles pretty fine with crossdev. 
make install fails, because it wants to remove "usr/share/locale", which doesn't exist when cross compiling.

Fix:
In the ebuild script "sys-devel/gdb/gdb-8.0.1.ebuild"

rm -r "${ED}"/usr/share/{doc,info,locale} || die

add a "force" to the remove: "rm -rf ...."
Comment 1 m-kress 2017-10-09 09:43:32 UTC
This was the orignal error:

 * ERROR: cross-armv7a-hardfloat-linux-gnueabi/gdb-8.0.1::x-portage failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 115:  Called src_install
 *   environment, line 3367:  Called die
 * The specific snippet of code:
 *           rm -r "${ED}"/usr/share/{doc,info,locale} || die;
 * 
 * If you need support, post the output of `emerge --info '=cross-armv7a-hardfloat-linux-gnueabi/gdb-8.0.1
 * the complete build log and the output of `emerge -pqv '=cross-armv7a-hardfloat-linux-gnueabi/gdb-8.0.1:
 * The complete build log is located at '/var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gdb-8.0.1/t
 * The ebuild environment file is located at '/var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gdb-8.
 * Working directory: '/var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gdb-8.0.1/work/gdb-8.0.1'
 * S: '/var/tmp/portage/cross-armv7a-hardfloat-linux-gnueabi/gdb-8.0.1/work/gdb-8.0.1'
Comment 2 Jonas Stein gentoo-dev 2017-10-14 18:40:37 UTC
Thank you for the report. Please *attach* the logfiles,
https://wiki.gentoo.org/wiki/Bugzilla/Bug_report_guide#Report_a_build-time_bug_.28emerge_failed.29
and reopen this ticket (Status:unconfirmed).
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2019-02-14 23:00:30 UTC
Apologies for long response. Was fixed a while ago as:
    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=559cf5f4b15f024e21eab5f2458effe7806da8ad

Thanks for the report!