Solved [FreeBSD 12.2/llvm10]: link a pe32+ executable

Hi
cc --target=x86_64-pc-mingw32 -std=gnu11 -fgnuc-version=8 -pipe -std=gnu99 -D_CRTBLD -D_WIN32_WINNT=0x0f00 -D__MSVCRT_VERSION__=0x700 -Wall -Wextra -Wformat -Wstrict-aliasing -Wshadow -Wpacked -Winline -Wimplicit-function-declaration -Wmissing-noreturn -Wmissing-prototypes -I/usr/local/include --target=x86_64-pc-mingw32 -o testcases/tstmainc testcases/tstmainc.o -Llib64 -m64
ld: error: unknown emulation: i386pep

I don't know why I can cross-compile for Windows while i386pep emulation is not supported by lld.

What am I supposed to do ?

Thanks a lot if you can help me.

Cheers
 
Solved.
cc is the system compiler. It is based on llvm10 but limited. No i386pep target emulation is embedded.

Installing and use of devel/llvm10 solves the trouble.
 
Last edited:
Top