Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585110 - Crossdev - target compilation fails (mipsel-unknown-linux-gnu-g++ missed)
Summary: Crossdev - target compilation fails (mipsel-unknown-linux-gnu-g++ missed)
Status: RESOLVED DUPLICATE of bug 583914
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-05 13:55 UTC by Oleksii
Modified: 2016-06-06 00:28 UTC (History)
2 users (show)

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 Oleksii 2016-06-05 13:55:40 UTC
Hello there!

I want to prepare mipsel-unknown-linux-gnu cross-mini-system.

Later I have found that all target applications with enabled C++ support (USE flag cxx) unable to compile under portage (mipsel-unknown-linux-gnu-emerge) with new toolchain.

I tried to compile base target applications manually by CLFS book with ./configure string from portage
It was pretty good without any errors.

I start investigation and found, that after stage4 for crossdev in /usr/bin symlink for mipsel-unknown-linux-gnu-g++ missed.

Only mipsel-unknown-linux-gnu-g++-5.3.0 available

I have switched to new gcc - no effect.
Then I created symlink manually as mipsel-unknown-linux-gnu-g++-5.3.0 --> mipsel-unknown-linux-gnu-g++ 

And issue was resolved.

Please investigate and provide patch for cross-dev.

Thank You!

Crossdev toolchain was prepared with next parameters:

GLIBC_CPU="MIPS_ISA_MIPS32" \
PORTDIR_OVERLAY="/usr/local/portage-crossdev" \
EXTRA_ECONF="--with-mips-plt --with-arch=mips32 --with-tune=mips32 --with-llsc --enable-languages=c,c++  --disable-libcilkrts" \
CFLAGS_FOR_BUILD="-march=native -O2 -mglibc" \
CXXFLAGS_FOR_BUILD="-march=native -O2 -mglibc" \
CFLAGS_FOR_TARGET="-march=mips32 -O2 -mglibc -mllsc -mfp32  -mgp32 -mllsc -mlong32" \
CXXFLAGS_FOR_TARGET="-march=mips32 -O2 -mglibc -mllsc -mfp32  -mgp32 -mllsc -mlong32" \
USE="-cilk nopie nossp" crossdev -t mipsel -v --without-headers --abis o32
Comment 1 SpanKY gentoo-dev 2016-06-06 00:28:11 UTC

*** This bug has been marked as a duplicate of bug 583914 ***