Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712304 - toolchain.eclass: "gcc-config: Could not locate profile # !" when removing last cross toolchain
Summary: toolchain.eclass: "gcc-config: Could not locate profile # !" when removing la...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-13 06:18 UTC by Alexander Tsoy
Modified: 2020-03-13 08:32 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Tsoy 2020-03-13 06:18:36 UTC
$ sudo crossdev -C armv7a-unknown-linux-gnueabihf
 * Uninstalling target 'armv7a-unknown-linux-gnueabihf' ...
<<< cross-armv7a-unknown-linux-gnueabihf/binutils-2.33.1-r1
<<< cross-armv7a-unknown-linux-gnueabihf/linux-headers-4.19
<<< cross-armv7a-unknown-linux-gnueabihf/glibc-2.29-r7
<<< cross-armv7a-unknown-linux-gnueabihf/gcc-9.2.0-r2
 * gcc-config: Could not locate profile # !
...
$

I think this is due to do_gcc_config() calls gcc-config with an empty argument as the code assume that it should always be at least one version of gcc installed. This is a wrong assumption for cross-gcc.

...
    else
...
        target=$(gcc-config -l 2>/dev/null | grep " ${CTARGET}-[0-9]" | tail -1 | awk '{print $2}')
    fi

    gcc-config "${target}"
...