@doko I tested with libgcc-9-dev on both AMD64 and ARM64 Ubuntu 20.04 but It doesn't fix the issue :(
$> sudo apt intall libgcc-9-dev $> dpkg -S libtsan_preinit.o 0.257 dpkg-query: no path found matching pattern *libtsan_preinit.o*
Dockerfile
``` from ubuntu:20.04
RUN apt update && apt install -y gcc libgcc-9-dev
RUN uname -m && gcc --version
RUN echo "int main(){}" | gcc -fsanitize=thread -x c - ```
$> docker --platform XXXX build .
#7 [3/4] RUN uname -m && gcc --version #7 0.153 x86_64 / aarch64 #7 0.175 gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
> [4/4] RUN echo "int main(){}" | gcc -fsanitize=thread -x c -: 0.205 /usr/bin/ld: cannot find libtsan_preinit.o: No such file or directory 0.205 collect2: error: ld returned 1 exit status
@doko I tested with libgcc-9-dev on both AMD64 and ARM64 Ubuntu 20.04 but It doesn't fix the issue :(
$> sudo apt intall libgcc-9-dev
$> dpkg -S libtsan_preinit.o
0.257 dpkg-query: no path found matching pattern *libtsan_preinit.o*
Dockerfile
```
from ubuntu:20.04
RUN apt update && apt install -y gcc libgcc-9-dev
RUN uname -m && gcc --version
RUN echo "int main(){}" | gcc -fsanitize=thread -x c -
```
$> docker --platform XXXX build .
#7 [3/4] RUN uname -m && gcc --version 20.04.2) 9.4.0
#7 0.153 x86_64 / aarch64
#7 0.175 gcc (Ubuntu 9.4.0-1ubuntu1~
> [4/4] RUN echo "int main(){}" | gcc -fsanitize=thread -x c -:
0.205 /usr/bin/ld: cannot find libtsan_preinit.o: No such file or directory
0.205 collect2: error: ld returned 1 exit status