Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835635 - dev-perl/Text-Iconv-1.700.0-r3 : Use wrong gcc in cross compile
Summary: dev-perl/Text-Iconv-1.700.0-r3 : Use wrong gcc in cross compile
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Cross compilation support
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-19 19:25 UTC by groche97
Modified: 2022-03-20 20:16 UTC (History)
2 users (show)

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


Attachments
Build log (build.log,5.14 KB, text/x-log)
2022-03-19 19:25 UTC, groche97
Details
Makefile generated by MakeMaker (Makefile,34.95 KB, text/plain)
2022-03-19 19:26 UTC, groche97
Details
emerge --info host (emerge-host-info,5.81 KB, text/plain)
2022-03-19 19:27 UTC, groche97
Details
emerge --info crossdev (emerge-cross-info,5.57 KB, text/plain)
2022-03-19 19:27 UTC, groche97
Details

Note You need to log in before you can comment on or make changes to this bug.
Description groche97 2022-03-19 19:25:13 UTC
Created attachment 767387 [details]
Build log

Apparently the makefile generated by MakeMaker use the host's gcc instead of crossdev's gcc:

make -j40 'OTHERLDFLAGS=-Wl,-O1 -Wl,--as-needed' 'OPTIMIZE=-O3 -march=armv8-a+crypto+crc -mtune=cortex-a53 -pipe -fomit-frame-pointer' 
"/usr/bin/perl" "/usr/lib64/perl5/5.34/ExtUtils/xsubpp"  -typemap '/usr/lib64/perl5/5.34/ExtUtils/typemap' -typemap '/usr/aarch64-unknown-linux-gnu/tmp/portage/dev-perl/Text-Iconv-1.700.0-r3/work/Text-Iconv-1.7/typemap'  Iconv.xs > Iconv.xsc
Running Mkbootstrap for Iconv ()
chmod 644 "Iconv.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Iconv.bs blib/arch/auto/Text/Iconv/Iconv.bs 644
cp Iconv.pm blib/lib/Text/Iconv.pm
AutoSplitting blib/lib/Text/Iconv.pm (blib/lib/auto/Text/Iconv)
mv Iconv.xsc Iconv.c
x86_64-pc-linux-gnu-gcc -c   -O2 -pipe -fwrapv -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -march=armv8-a+crypto+crc -mtune=cortex-a53 -pipe -fomit-frame-pointer   -DVERSION=\"1.7\" -DXS_VERSION=\"1.7\" -fPIC "-I/usr/lib64/perl5/5.34/x86_64-linux/CORE"   Iconv.c
cc1: error: bad value (‘armv8-a+crypto+crc’) for ‘-march=’ switch
cc1: note: valid arguments to ‘-march=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client rocketlake icelake-server cascadelake tigerlake cooperlake sapphirerapids alderlake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm x86-64 x86-64-v2 x86-64-v3 x86-64-v4 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 znver3 btver1 btver2 native
cc1: error: bad value (‘cortex-a53’) for ‘-mtune=’ switch
cc1: note: valid arguments to ‘-mtune=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client rocketlake icelake-server cascadelake tigerlake cooperlake sapphirerapids alderlake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm intel x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 znver3 btver1 btver2 generic native
make: *** [Makefile:337: Iconv.o] Error 1
Comment 1 groche97 2022-03-19 19:26:28 UTC
Created attachment 767388 [details]
Makefile generated by MakeMaker
Comment 2 groche97 2022-03-19 19:27:01 UTC
Created attachment 767389 [details]
emerge --info host
Comment 3 groche97 2022-03-19 19:27:35 UTC
Created attachment 767390 [details]
emerge --info crossdev