在 2023/5/16 00:16, 徐持恒 Xu Chiheng 写道:
Hi, dear friends,When compiling GNU cross toolchain on MSYS2/MinGW-w64. I encounter the following problem: E:\Note\Tool\gcc-x86_64-elf-release-install\x86_64-elf\bin\ar.exe: libgcov.a: error reading _gcov_merge_add.o: file truncated
Would you please more details about this error? Did you build toolchains yourself? AFAICT MSYS2 doesn't have cross toolchains for x86_64-*-elf at the moment.
At last I figured out that this is because MinGW-w64 's global commit flag is not set to "commit". The solution is to write new binmode.c and commode.c, and use
binmode seems unimplemented; I don't see any symbols in binmode.o. Maybe it's a bug. commode is not implemented at all. I can take a look later.
-- Best regards, LIU Hao
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
