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 building #30

Open
ghost opened this issue Sep 5, 2021 · 2 comments
Open

Error while building #30

ghost opened this issue Sep 5, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 5, 2021

I followed the steps and on execution of step 6 I receive the following error:

make[1]: *** [CMakeFiles/micro-service.dir/all] Error 2
make: *** [all] Error 2

I am using mc os with M1 processor (ARM).

@newTypeGeek
Copy link

I am using Mac Intel, but also have the same issue.

If you execute make directly under build/ directory without -j 8 flag. You will see the following error

Consolidate compiler generated dependencies of target micro-service
make[2]: *** No rule to make target `/usr/local/Cellar/openssl/1.0.2s/lib/libssl.1.0.0.dylib', needed by `micro-service'.  Stop.
make[1]: *** [CMakeFiles/micro-service.dir/all] Error 2
make: *** [all] Error 2

Try to do a global search on openssl in micro-service repository, you will find that under micro-service/CMakeLists.txt, there are some hard-coded paths & versions on openssl and zlib. But your local versions on Mac does not match those in micro-service/CMakeLists.txt. That's why we failed to build.

For my local mac openssl and zlib verions they are

/usr/local/Cellar/openssl@3/3.0.5/lib/libssl.3.dylib
/usr/local/Cellar/openssl@3/3.0.5/lib/libcryptio.3.dylib
/usr/local/Cellar/zlib/1.2.12_1/lib/libz1.2.12.dylib

Change all those related path in micro-service/CMakeLists.txt, and I can re-build successfully

@ronytigo
Copy link

ronytigo commented Jan 6, 2023

I get undefined reference to inflateReset' when I run make -j 8.

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