ROCKNIX / distribution

Other
349 stars 63 forks source link

[BUG] docker build: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found #269

Closed hansfbaier closed 4 months ago

hansfbaier commented 4 months ago

Describe the bug

This error comes up in a docker build. I tried it both in Ubuntu and Arch.

How to reproduce

$ make docker-image-pull (tried docker-image-build in Ubuntu)

$ make docker-RK3566
BUILD_DIR=/MiSTeX/rocknix docker run  -it --init --env-file .env --rm --user 1000:1000   -v /MiSTeX/rocknix:/MiSTeX/rocknix -w /MiSTeX/rocknix  "rocknix/rocknix-build:latest" make RK3566
make[1]: Entering directory '/MiSTeX/rocknix'
unset DEVICE_ROOT
DEVICE_ROOT=RK3566 PROJECT=Rockchip DEVICE=RK3566 ARCH=arm ./scripts/build_distro
sed: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by sed)
make[1]: *** [Makefile:56: RK3566] Error 1
make[1]: Leaving directory '/MiSTeX/rocknix'
make: *** [Makefile:144: docker-RK3566] Error 2

Information

Log file

Output see above

Context

Git revision was: c30767194eafd6b02a8955b57030766b55cee910

spycat88 commented 4 months ago

What CPU do you have?

hansfbaier commented 4 months ago

@spycat88


$ lscpu
Architecture:             x86_64
  CPU op-mode(s):         32-bit, 64-bit
  Address sizes:          43 bits physical, 48 bits virtual
  Byte Order:             Little Endian
CPU(s):                   24
  On-line CPU(s) list:    0-23
Vendor ID:                AuthenticAMD
  Model name:             AMD Ryzen 9 3900X 12-Core Processor
    CPU family:           23
    Model:                113
    Thread(s) per core:   2
    Core(s) per socket:   12
    Socket(s):            1
    Stepping:             0
    Frequency boost:      enabled
    CPU(s) scaling MHz:   51%
    CPU max MHz:          4672.0698
    CPU min MHz:          2200.0000
    BogoMIPS:             7602.56
    Flags:                fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht sy
                          scall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid extd_
                          apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave
                           avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs
                           skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ss
                          bd mba ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni
                           xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdp
                          ru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter
                           pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip rdpid overflow_recov succor smca sev sev_es
Virtualization features:  
  Virtualization:         AMD-V
Caches (sum of all):      
  L1d:                    384 KiB (12 instances)
  L1i:                    384 KiB (12 instances)
  L2:                     6 MiB (12 instances)
  L3:                     64 MiB (4 instances)
NUMA:                     
  NUMA node(s):           1
  NUMA node0 CPU(s):      0-23
Vulnerabilities:          
  Gather data sampling:   Not affected
  Itlb multihit:          Not affected
  L1tf:                   Not affected
  Mds:                    Not affected
  Meltdown:               Not affected
  Mmio stale data:        Not affected
  Reg file data sampling: Not affected
  Retbleed:               Mitigation; untrained return thunk; SMT enabled with STIBP protection
  Spec rstack overflow:   Mitigation; Safe RET
  Spec store bypass:      Mitigation; Speculative Store Bypass disabled via prctl
  Spectre v1:             Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:             Mitigation; Retpolines; IBPB conditional; STIBP always-on; RSB filling; PBRSB-eIBRS Not affected; BHI N
                          ot affected
  Srbds:                  Not affected
  Tsx async abort:        Not affected
` ` `
spycat88 commented 4 months ago

Try a clean build with THREADCOUNT=8 make docker-RK3566.

hansfbaier commented 4 months ago

@spycat88 That seems to work. I did not think to make clean. How dumb. I manually removed the build-... directory though, which was obviously not enough.