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

Error while running the simulator on Ubuntu 20.04 #76

Open
hackbeere opened this issue Feb 19, 2025 · 1 comment
Open

Error while running the simulator on Ubuntu 20.04 #76

hackbeere opened this issue Feb 19, 2025 · 1 comment

Comments

@hackbeere
Copy link

Introduce the problem

Hello all,
I compiled luavgl and the simulator as described without any issue. But starting the simulator gives following error:

$ make run
[ 68%] Built target lvgl
[ 96%] Built target lvgl_demos
[ 96%] Built target luavgl
[100%] Built target simulator
==21056==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
make[3]: *** [simulator/CMakeFiles/run.dir/build.make:70: simulator/CMakeFiles/run] Fehler 1
make[2]: *** [CMakeFiles/Makefile2:302: simulator/CMakeFiles/run.dir/all] Fehler 2
make[1]: *** [CMakeFiles/Makefile2:309: simulator/CMakeFiles/run.dir/rule] Fehler 2
make: *** [Makefile:234: run] Fehler 2
$

Did I miss something?
Thanks,
-hackbeere

Proposal

No response

@XuNeo
Copy link
Owner

XuNeo commented Feb 20, 2025

It seems there's issue with your gcc version.

You can try to disable by removing below code from CMakeLists.txt

if (BUILD_SIMULATOR)
    add_compile_options(-g -O0)
    add_compile_options(-fsanitize=address)
    add_link_options(-fsanitize=address)
endif(BUILD_SIMULATOR)

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