Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get it full compiled on msys2 with mingw32 #146

Open
DiegoJArg opened this issue Nov 29, 2022 · 1 comment
Open

get it full compiled on msys2 with mingw32 #146

DiegoJArg opened this issue Nov 29, 2022 · 1 comment

Comments

@DiegoJArg
Copy link

Hi.
So far I enabled CONFIG_WIN32=y in Makefile, installed libdl contained in dlfcn with pacman -S mingw-w64-i686-dlfcn after getting errors about -ldl, disabled CROSS_PREFIX=x86_64-w64-mingw32- setting to empty value CROSS_PREFIX=
and now compiles up to first examples/hello.exe which is just a console.log("Hello World"); getting it 1.9Mb.

With this steps I got to compile qjs.exe, qjsc.exe, run-test262.exe, and hello.exe

Now it stops here, and I am out of clues:

lto-wrapper.exe: note: see the '-flto' option documentation for more information
./qjsc.exe -fno-string-normalize -fno-map -fno-promise -fno-typedarray -fno-typedarray -fno-regexp -
fno-json -fno-eval -fno-proxy -fno-date -m -o examples/hello_module examples/hello_module.js
Executable output is not supported for this target
make: *** [Makefile:343: examples/hello_module] Error 1
@bellard
Copy link
Owner

bellard commented Dec 13, 2023

You can try to disable Link Time Optimisation by commenting "CONFIG_LTO=y" in the Makefile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants