sgerrand / alpine-pkg-glibc

A glibc compatibility layer package for Alpine Linux
2.04k stars 280 forks source link

/usr/lib/libstdc++.so.6: no version information available #193

Open hydazz opened 1 year ago

hydazz commented 1 year ago

I have ESPHome installed on alpine, with this glibc package so that compiling works. compiling for the ESP8266 works but when I try compiling for the ESP32 I get the below error.

I have scoured the issues here and have found similar issues, however, none of them seems to work in fixing this.

xtensa-esp32-elf-g++: /usr/lib/libstdc++.so.6: no version information available (required by xtensa-esp32-elf-g++)
xtensa-esp32-elf-g++: Relink `/usr/lib/libgcc_s.so.1' with `/usr/glibc-compat/lib/libc.so.6' for IFUNC symbol `memset'
sgerrand commented 1 year ago

@hydazz: Would you please provide a minimal example Dockerfile which demonstrates the problem you're experiencing it. Without that I am unable to investigate this matter further.

b01 commented 3 months ago

I believe I have found the reason for this, which has to do with the g++ compiler. In order to have this fixed, you'd have to compile the g++ in a way to ensure that it adds the version information correctly before using it to build glibc.