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

OSX Mojave install fails with dogpile.cache error building Keystone-engine #10

Closed
martialhax opened this issue Jan 16, 2019 · 7 comments

Comments

@martialhax
Copy link

Used Brew to install python3 with pip3 and when running "pip3 install -r requirements.txt" it fails on building wheel for keystone-engine with other ancillary errors...

Guidance appreciated. Thanks.

Screens attached.

screen shot 2019-01-16 at 4 03 47 pm

screen shot 2019-01-16 at 4 04 40 pm

@iGio90
Copy link
Owner

iGio90 commented Jan 16, 2019

Yep it's common! Fix this by remove keystone from reqs and install it separately. There are guides on Google can't link one atm!

@martialhax
Copy link
Author

Hey iGio90-
Remove both "keystone_engine>=0.9.1.post3" and "keystone>=14.0.1" entries from requirements.txt?

Thanks for help.

@martialhax
Copy link
Author

So just removed "keystone_engine>=0.9.1.post3" only and it finished but still get following error:
"oslo-cache 1.32.0 has requirement dogpile.cache<0.7.0,>=0.6.2, but you'll have dogpile-cache 0.7.1 which is incompatible."
Not sure what this will cause since the GUI still launches OK with "python3 dwarf.py".....
Just need to compile/install keystone engine from source now here (I think?) - http://www.keystone-engine.org/download/
I don't see any recent docs on compilation on Mojave sooo.....here's to crossing fingers :-)

@martialhax
Copy link
Author

keystone-engine compilation from source fails (on Mojave at least). Confirmed xcode installed correctly even. Curious if anyone successful...I hit a blocker unfortunately.

Output:

my-mac:build user$ ../make-share.sh
-- The C compiler identification is AppleClang 10.0.0.10001145
-- The CXX compiler identification is AppleClang 10.0.0.10001145
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- broken
CMake Error at /opt/local/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler
    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc"
  is not able to compile a simple test program.
  It fails with the following output:
    Change Dir: /Users/offsec/keystone-0.9.1/build/CMakeFiles/CMakeTmp
    Run Build Command:"/usr/bin/make" "cmTC_e0db6/fast"
    /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_e0db6.dir/build.make CMakeFiles/cmTC_e0db6.dir/build
    Building C object CMakeFiles/cmTC_e0db6.dir/testCCompiler.c.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc   -arch i386 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk   -o CMakeFiles/cmTC_e0db6.dir/testCCompiler.c.o   -c /Users/offsec/keystone-0.9.1/build/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_e0db6
    /opt/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e0db6.dir/link.txt --verbose=1
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc   -arch i386 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names   CMakeFiles/cmTC_e0db6.dir/testCCompiler.c.o  -o cmTC_e0db6 
    ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
    ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd
    ld: dynamic main executables must link with libSystem.dylib for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[1]: *** [cmTC_e0db6] Error 1
    make: *** [cmTC_e0db6/fast] Error 2
    
  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:7 (project)

-- Configuring incomplete, errors occurred!
See also "/Users/offsec/keystone-0.9.1/build/CMakeFiles/CMakeOutput.log".
See also "/Users/offsec/keystone-0.9.1/build/CMakeFiles/CMakeError.log".
ola-7f6g8wp-mac:build offsec$ sudo ../make-share.sh
-- The C compiler identification is AppleClang 10.0.0.10001145
-- The CXX compiler identification is AppleClang 10.0.0.10001145
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- broken
CMake Error at /opt/local/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler
    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc"
  is not able to compile a simple test program.

  It fails with the following output:
    Change Dir: /Users/offsec/keystone-0.9.1/build/CMakeFiles/CMakeTmp
    
    Run Build Command:"/usr/bin/make" "cmTC_fb48e/fast"
    /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_fb48e.dir/build.make CMakeFiles/cmTC_fb48e.dir/build
    Building C object CMakeFiles/cmTC_fb48e.dir/testCCompiler.c.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc   -arch i386 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk   -o CMakeFiles/cmTC_fb48e.dir/testCCompiler.c.o   -c /Users/offsec/keystone-0.9.1/build/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_fb48e
    /opt/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_fb48e.dir/link.txt --verbose=1
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc   -arch i386 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names   CMakeFiles/cmTC_fb48e.dir/testCCompiler.c.o  -o cmTC_fb48e 
    ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
    ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd
    ld: dynamic main executables must link with libSystem.dylib for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[1]: *** [cmTC_fb48e] Error 1
    make: *** [cmTC_fb48e/fast] Error 2
  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:7 (project)
-- Configuring incomplete, errors occurred!

@PinkiePieStyle
Copy link
Collaborator

PinkiePieStyle commented Feb 13, 2019

Your compiler has no x86 support
"ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)"

from https://github.com/keystone-engine/keystone/blob/master/make-share.sh
syntax: make-share.sh [debug] [macos-universal|macos-no-universal] [lib32] [lib_only]

try make-share.sh lib64
or remove the x86 stuff

edit: keystone-engine/keystone#388

@martialhax
Copy link
Author

martialhax commented Feb 14, 2019

Thanks PinkiePieStyle ...I'm on a High Sierra build now with many pentest tools preconfigured so I'll be treading lightly when I try this again soon. However, sounds like Mojave was the issue from your reference.

@martialhax
Copy link
Author

So....Install went smooth on High Sierra. Connected a JB 11.4 iPhone (using unc0ver) and it rebooted the phone and un-JB it. Twice. Happened shortly after launching the GUI successfully both times. Easy to re-JB by running the unc0ver app. Just curious If I'm doing something wrong?
Thanks again.

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

3 participants