Jump to content
Read the Funtoo Newsletter: Summer 2023 ×

Unknown CPU given in --with-arch=skylake


Ryo

Recommended Posts

Hi guys ,

I'm stuck with gcc-7.3.1-r5 refusing to build :

checking whether fprintf_unlocked is declared... no
checking whether fputc_unlocked is declared... yes
checking whether fputs_unlocked is declared... yes
checking whether fread_unlocked is declared... yes
checking whether fwrite_unlocked is declared... yes
checking whether getchar_unlocked is declared... yes
checking whether getc_unlocked is declared... yes
checking whether putchar_unlocked is declared... yes
checking whether putc_unlocked is declared... yes
checking whether getrlimit is declared... yes
checking whether setrlimit is declared... yes
checking whether getrusage is declared... yes
checking whether ldgetname is declared... no
checking whether times is declared... yes
checking whether sigaltstack is declared... yes
checking for struct tms... yes
checking for clock_t... yes
checking for F_SETLKW... yes
checking if mkdir takes one argument... no
Unknown CPU given in --with-arch=skylake.
make[2]: *** [Makefile:4282: configure-stage1-gcc] Error 1
make[2] : on quitte le répertoire « /dev/shm/portage/sys-devel/gcc-7.3.1-r5/work/objdir »
make[1]: *** [Makefile:24058: stage1-bubble] Error 2
make[1] : on quitte le répertoire « /dev/shm/portage/sys-devel/gcc-7.3.1-r5/work/objdir »
make: *** [Makefile:939: all] Error 2
 * ERROR: sys-devel/gcc-7.3.1-r5::core-kit failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-7.3.1-r5::core-kit'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-7.3.1-r5::core-kit'`.
 * The complete build log is located at '/dev/shm/portage/sys-devel/gcc-7.3.1-r5/temp/build.log'.
 * The ebuild environment file is located at '/dev/shm/portage/sys-devel/gcc-7.3.1-r5/temp/environment'.
 * Working directory: '/dev/shm/portage/sys-devel/gcc-7.3.1-r5/work/objdir'
 * S: '/dev/shm/portage/sys-devel/gcc-7.3.1-r5/work/gcc-7.3.1'

I found this bug report

but it is supposed to be fixed.

Any hints ?

thank you :)

ego profile list

=== arch: ===

    arm-32bit, arm-64bit, pure64, x86-32bit, (x86-64bit*)

=== build: ===

    (current*)

=== subarch: ===

    amd64-bulldozer, amd64-excavator, amd64-jaguar, amd64-k10
    amd64-k8, amd64-k8+sse3, amd64-piledriver, amd64-steamroller
    amd64-zen, atom_64, btver1_64, core-avx-i, core2_64, corei7
    generic_64, intel64-broadwell, intel64-haswell, intel64-ivybridge
    intel64-nehalem, intel64-sandybridge, intel64-silvermont, intel64-skylake*
    intel64-skylake-avx512, intel64-westmere, native_64, nocona
    opteron_64, xen-pentium4+sse3_64

=== flavor: ===

    core*, desktop, hardened, minimal, server, workstation

=== mix-ins: ===

    X*, amazon-ec2, audio, cinnamon, console-extras, dvd, gfxcard-intel-glamor
    gnome, gnome-3.16-fixups, hardened, kde, kde-plasma-5, lxde
    lxqt, mate, media, media-pro, mediadevice-audio-consumer, mediadevice-audio-pro
    mediadevice-base, mediadevice-video-consumer, mediadevice-video-pro
    mediaformat-audio-common, mediaformat-audio-extra, mediaformat-gfx-common
    mediaformat-gfx-extra, mediaformat-video-common, mediaformat-video-extra
    no-emul-linux-x86, no-systemd, openvz-host, print, python3-only
    selinux, stage1, vmware-guest, xfce

ego kit
/var/git/meta-repo (updated 1 hours 28 minutes ago):

  kit                  active branch        default              stability
  core-kit             1.2-prime            (same)               prime
  core-hw-kit          master               (same)               current
  security-kit         1.2-prime            (same)               prime
  xorg-kit             1.19-prime           (same)               prime
  gnome-kit            3.26-prime           (same)               prime
  kde-kit              5.12-prime           (same)               prime
  media-kit            1.2-prime            (same)               prime
  perl-kit             5.24-prime           (same)               prime
  python-modules-kit   master               (same)               current
  python-kit           3.6-prime            (same)               prime
  php-kit              master               (same)               current
  java-kit             1.2-prime            (same)               prime
  ruby-kit             1.2-prime            (same)               prime
  haskell-kit          1.2-prime            (same)               prime
  ml-lang-kit          1.2-prime            (same)               prime
  lisp-scheme-kit      1.2-prime            (same)               prime
  lang-kit             1.2-prime            (same)               prime
  llvm-kit             1.2-prime            (same)               prime
  dev-kit              1.2-prime            (same)               prime
  xfce-kit             4.12-prime           (same)               prime
  desktop-kit          1.2-prime            (same)               prime
  editors-kit          master               (same)               current
  net-kit              master               (same)               current
  text-kit             master               (same)               current
  science-kit          master               (same)               current
  games-kit            master               (same)               current
  nokit                master               (same)               current

  NOTE: This information comes from /etc/ego.conf and meta-repo metadata. After making changes to ego.conf, be sure to run ego sync in so 
  that the individual kit repositories on disk are synchronized with the kit branches shown above.

gcc-config -l
 [1] x86_64-pc-linux-gnu-5.4.0
 [2] x86_64-pc-linux-gnu-7.3.1 *

  Arch: X86-64
  Vendor: "GenuineIntel"
  Model: 6.158.10 "Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz"
  Features: fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,ht,tm,pbe,syscall,nx,pdpe1gb,rdtscp,lm,constant_tsc,art,arch_perfmon,pebs,bts,rep_good,nopl,xtopology,nonstop_tsc,cpuid,aperfmperf,tsc_known_freq,pni,pclmulqdq,dtes64,monitor,ds_cpl,vmx,smx,est,tm2,ssse3,sdbg,fma,cx16,xtpr,pdcm,pcid,sse4_1,sse4_2,x2apic,movbe,popcnt,tsc_deadline_timer,aes,xsave,avx,f16c,rdrand,lahf_lm,abm,3dnowprefetch,cpuid_fault,invpcid_single,ssbd,ibrs,ibpb,stibp,tpr_shadow,vnmi,flexpriority,ept,vpid,fsgsbase,tsc_adjust,bmi1,hle,avx2,smep,bmi2,erms,invpcid,rtm,mpx,rdseed,adx,smap,clflushopt,intel_pt,xsaveopt,xsavec,xgetbv1,xsaves,dtherm,ida,arat,pln,pts,hwp,hwp_notify,hwp_act_window,hwp_epp

 

Link to comment
Share on other sites

Skylake subarch does not call -march=skylake

Verify you have no CFLAGS =" -march=skylake" manual override setting in /etc/make.conf or anywhere else.

Subarch

intel64-skylake

calls

CFLAGS="-march=broadwell -O2 -pipe"

https://github.com/funtoo/core-kit/blob/1.2-prime/profiles/funtoo/1.0/linux-gnu/arch/x86-64bit/subarch/intel64-skylake/make.defaults

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...