Created attachment 740628 [details] emerge build.log I'm trying install git to change my `emerge --sync` method from rsync to git, when I emerge git and compiling dependencies perl, I got compilation error: 'undef' undeclared here (not a function) in file config.h at position 3822:25
Created attachment 740631 [details] emerge --info output
1. Please try with -O2 instead of -O3. 2. Please run perl-cleaner --all and depclean: > * This version of perl may partially support modules previously > * installed in any of the following paths: > * /usr/lib64/perl5/vendor_perl/5.32/ > * /usr/lib64/perl5/5.32/ > * This is a temporary measure and you should aim to cleanup these paths > * via world updates and perl-cleaner 3. What on earth is going on here!? >gconvert NOT found. >gcvt() found. >Configure: line 10426: 2019 Illegal instruction $run ./try >sprintf() found. >Configure: line 10426: 2026 Illegal instruction $run ./try >*** WHOA THERE!!! *** >None of ( gconvert gcvt sprintf) seemed to work properly. I'll use sprintf. There's a bunch more of these. Have you changed CPUs or systems recently with the same install? Is your CPU definitely znver2-compatible?
(In reply to Sam James from comment #2) > 1. Please try with -O2 instead of -O3. > I'll try it later > 2. Please run perl-cleaner --all and depclean: > > > * This version of perl may partially support modules previously > > * installed in any of the following paths: > > * /usr/lib64/perl5/vendor_perl/5.32/ > > * /usr/lib64/perl5/5.32/ > > * This is a temporary measure and you should aim to cleanup these paths > > * via world updates and perl-cleaner > > 3. What on earth is going on here!? > > >gconvert NOT found. > >gcvt() found. > >Configure: line 10426: 2019 Illegal instruction $run ./try > >sprintf() found. > >Configure: line 10426: 2026 Illegal instruction $run ./try > >*** WHOA THERE!!! *** > >None of ( gconvert gcvt sprintf) seemed to work properly. I'll use sprintf. > > There's a bunch more of these. > > Have you changed CPUs or systems recently with the same install? Is your CPU > definitely znver2-compatible? Not, (In reply to Sam James from comment #2) > 1. Please try with -O2 instead of -O3. > > 2. Please run perl-cleaner --all and depclean: > > > * This version of perl may partially support modules previously > > * installed in any of the following paths: > > * /usr/lib64/perl5/vendor_perl/5.32/ > > * /usr/lib64/perl5/5.32/ > > * This is a temporary measure and you should aim to cleanup these paths > > * via world updates and perl-cleaner > I'll try it later > 3. What on earth is going on here!? > > >gconvert NOT found. > >gcvt() found. > >Configure: line 10426: 2019 Illegal instruction $run ./try > >sprintf() found. > >Configure: line 10426: 2026 Illegal instruction $run ./try > >*** WHOA THERE!!! *** > >None of ( gconvert gcvt sprintf) seemed to work properly. I'll use sprintf. > > There's a bunch more of these. > > Have you changed CPUs or systems recently with the same install? Is your CPU > definitely znver2-compatible? Not, But I definitely sure my CPU is znver2-compatible
I just modified my COMMON_FLAGS -march to native, and optimize-level to 2, everything is back to normal, thanks your help, sam
(In reply to mChaotix from comment #4) > I just modified my COMMON_FLAGS -march to native, and optimize-level to 2, > everything is back to normal, thanks your help, sam No problem! Glad you're sorted :)
(In reply to Sam James from comment #5) > (In reply to mChaotix from comment #4) > > I just modified my COMMON_FLAGS -march to native, and optimize-level to 2, > > everything is back to normal, thanks your help, sam > > No problem! Glad you're sorted :) Oh, you might want to rebuild everything on your system: emerge -aev @world, given other programs could be broken which you don't know about yet.
(In reply to Sam James from comment #6) > (In reply to Sam James from comment #5) > > (In reply to mChaotix from comment #4) > > > I just modified my COMMON_FLAGS -march to native, and optimize-level to 2, > > > everything is back to normal, thanks your help, sam > > > > No problem! Glad you're sorted :) > > Oh, you might want to rebuild everything on your system: emerge -aev @world, > given other programs could be broken which you don't know about yet. OK, I'll do that, thanks for your help again. :)