New issue by pullmoll on void-packages repository https://github.com/void-linux/void-packages/issues/26811 Description: Based on @ericonr 's branch [musl-1.20.0](https://github.com/ericonr/void-packages/tree/musl-1.2.0), which now really is for musl-1.20.1, I found a patch to get `cross-armv7l-linux-musleabihf` built: `srcpkgs/cross-armv7l-linux-musleabihf/patches/fix-_stat-sed,patch` ``` --- gcc-9.3.0/libgo/mksysinfo.sh 2020-11-29 23:07:46.793838127 +0100 +++ gcc-9.3.0/libgo/mksysinfo.sh 2020-11-29 23:27:18.520794067 +0100 @@ -506,9 +506,9 @@ -e 's/st_size/Size/' \ -e 's/st_blksize/Blksize/' \ -e 's/st_blocks/Blocks/' \ - -e 's/st_atim/Atim/' \ - -e 's/st_mtim/Mtim/' \ - -e 's/st_ctim/Ctim/' \ + -e 's/st_atim/Atim/g' \ + -e 's/st_mtim/Mtim/g' \ + -e 's/st_ctim/Ctim/g' \ -e 's/\([^a-zA-Z0-9_]\)_timeval\([^a-zA-Z0-9_]\)/\1Timeval\2/g' \ -e 's/\([^a-zA-Z0-9_]\)_timespec_t\([^a-zA-Z0-9_]\)/\1Timespec\2/g' \ -e 's/\([^a-zA-Z0-9_]\)_st_timespec_t\([^a-zA-Z0-9_]\)/\1StTimespec\2/g' \ ``` So basically the replacement needs to take place on the entire line. This is because before the `st_atim` etc. there is a `__st_atim32` which is replaced and the `sed` is done without modifying the interesting `st_atim` which follows. Perhaps you @ericonr can update the branch to upstream master once more? And we should integrate this patch with `gcc` and use the `cross-*-musl/files/something.patch` symbolic links to the `gcc/patches/something.patch` style for it. I think I could now build all packages for `armv7l-musl` which will take about 2 days.