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

yaracpp build fails with "configure: error: cannot run C compiled programs" #433

Closed
iinus opened this issue Nov 28, 2018 · 5 comments
Closed

Comments

@iinus
Copy link

iinus commented Nov 28, 2018

Hello, I'm having trouble with installing recdec. I have been following the prerequisites and looked at #291, but none of it work. Here is my error output:

[ 71%] Building CXX object src/loader/CMakeFiles/retdec-loader.dir/loader/segment.cpp.o
CMake Error at /Users/iinusen/Documents/retdec/external/src/yaracpp-project-stamp/yaracpp-project-build-Release.cmake:16 (message):
Command failed: 2

'/Library/Developer/CommandLineTools/usr/bin/make'

See also

/Users/iinusen/Documents/retdec/external/src/yaracpp-project-stamp/yaracpp-project-build-*.log

make[2]: *** [external/src/yaracpp-project-stamp/yaracpp-project-build] Error 1
make[1]: *** [deps/yaracpp/CMakeFiles/yaracpp-project.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 71%] Building CXX object src/loader/CMakeFiles/retdec-loader.dir/loader/intel_hex/intel_hex_image.cpp.o
[ 71%] Building CXX object src/loader/CMakeFiles/retdec-loader.dir/loader/macho/macho_image.cpp.o
[ 71%] Building CXX object src/loader/CMakeFiles/retdec-loader.dir/loader/raw_data/raw_data_image.cpp.o
[ 72%] Linking CXX executable retdec-llvmir2hll
[ 72%] Building CXX object src/loader/CMakeFiles/retdec-loader.dir/loader/elf/elf_image.cpp.o
[ 72%] Built target retdec-llvmir2hlltool
[ 72%] Linking CXX static library libretdec-loader.a
[ 72%] Built target retdec-loader
make: *** [all] Error 2
log.txt

I also attached the full log file.

@s3rvac
Copy link
Member

s3rvac commented Nov 28, 2018

Hi. Could you please attach the following two log files?

/Users/iinusen/Documents/retdec/external/src/yaracpp-project-stamp/yaracpp-project-build-err.log
/Users/iinusen/Documents/retdec/external/src/yaracpp-project-stamp/yaracpp-project-build-out.log

They contain the reason why the yaracpp build failed.

@iinus
Copy link
Author

iinus commented Nov 28, 2018

@s3rvac
Copy link
Member

s3rvac commented Nov 28, 2018

Thank you. From yaracpp-project-build-err.log, it seems to be the same error as in #425. Could you please try this approach to see whether it fixes the problem for you?

@s3rvac s3rvac changed the title Mac build failed yaracpp build fails with "configure: error: cannot run C compiled programs" Nov 29, 2018
@iinus
Copy link
Author

iinus commented Nov 29, 2018

Thank you, it worked!

@s3rvac
Copy link
Member

s3rvac commented Nov 29, 2018

Great 👍

@s3rvac s3rvac closed this as completed Nov 29, 2018
s3rvac added a commit that referenced this issue Nov 29, 2018
Otherwise, the build of YARA inside yaracpp fails with the following error:

    configure: error: cannot run C compiled programs.

We already had two bug reports because of this (#425, #433).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants