Matthias Klose <d...@debian.org> 于2018年12月2日周日 下午4:51写道: > > On 02.12.18 09:31, Aron Xu wrote: > > Running with Valgrind shows some errors: > > that might point to the gcc-search-prefixed-as-ld patch.
It seem not due to this patch, With some debug, this problem is triggered in gcc/gcc.c static int execute (void) { …. pex_free (pex); and in fact it even didn't call /usr/bin/mips64el-linux-gnuabi64-as, as /usr/bin is not in its search path. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 5386baf8a915fe0439c22ebd1f83286a COLLECT_GCC_OPTIONS='-mabi=32' '-c' '-v' '-march=mips32r2' '-mfpxx' '-mllsc' '-mno-madd4' '-mips32r2' '-EL' /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/../../../../mips64el-linux-gnuabi64/bin/as -v -EL -mips32r2 -O1 -mabi=32 -march=mips32r2 -mfpxx -KPIC -o xx.o /tmp/ccQdPNal.s GNU assembler version 2.31.1 (mips64el-linux-gnuabi64) using BFD version (GNU Binutils for Debian) 2.31.1 munmap_chunk(): invalid pointer Aborted