Closed minikiller closed 2 years ago
It seems like libfaketime was compiled for an ARM architecture (such as Apple's M1 CPU), but you try to run it on an Intel x86_64 system or for a x86_64 application.
You can try setting
export FAKETIME_COMPILE_CFLAGS='-arch arm64 -arch x86_64'
and recompiling, and might want to check #334 for other options regarding multi-platform compilation. We don't have a final solution over there, except that when using Rosetta 2, I never was able to reproduce any of the problems no matter which platform I used for libfaketime in combination with whatever platform of the target application. :-/
Please re-open with additional info if the problem persists.
I build libfaketime from github source code , and also export environment variant as following:
but when I run my app , i get following error message:
I am also run testing under test directory. All works, I don't know why? Please help me to solve this problem. Thanks!