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

brew install idb-companion failed on x86_64 #75

Open
tw2079 opened this issue Jan 17, 2022 · 20 comments
Open

brew install idb-companion failed on x86_64 #75

tw2079 opened this issue Jan 17, 2022 · 20 comments

Comments

@tw2079
Copy link

tw2079 commented Jan 17, 2022

Hi. I'm trying to install idb_companion on my Intel Mac mini Appium server.
I did the

brew tap Facebook/fb
brew install idb-companion

But it failed and I get

** BUILD FAILED **

The following build commands failed:
CompileC /tmp/idb-companion-20220116-6910-1983klv/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/Objects-normal/x86_64/idb.pb.o /tmp/idb-companion-20220116-6910-1983klv/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.pb.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'idbGRPC' from project 'idb_companion')
(1 failure)

Here's my name -a
Darwin QE-Remote-5976.local 20.6.0 Darwin Kernel Version 20.6.0: Tue Oct 12 18:33:42 PDT 2021; root:xnu-7195.141.8~1/RELEASE_X86_64 x86_64

I did a search and I see many with similar issues but they are on M1 and I'm still on x86. Still, I tried to do the suggestions for M1 such as git clone of idb.git but the manual build failed for me too. I'm just hopeful that someone has suggestions for getting brew working for x86 and it's just a matter of a missing component that I forgot to install or some such. I'm still running Big Sur 11.6.1. Thanks!

@toioski
Copy link

toioski commented Jan 18, 2022

Same issue for me. I am running Big Sur 11.3.1 with Xcode 13.2.1.

@TinaLiu916
Copy link

TinaLiu916 commented Jan 19, 2022

Although the actual error mesages are not the same but they seem all because of some problems with idbGRPC, my build failed neither:

Last 15 lines from /Users/tianhui.liu/Library/Logs/Homebrew/idb-companion/02.idb_build.sh:
WriteAuxiliaryFile /tmp/idb-companion-20220119-7342-11m6zpt/idb-1.1.6/build/Build/Intermediates.noindex/Pods.build/Debug/gRPC-Core.build/Objects-normal/x86_64/gRPC-Core.LinkFileList (in target 'gRPC-Core' from project 'Pods')
cd /tmp/idb-companion-20220119-7342-11m6zpt/idb-1.1.6/Pods
write-file /tmp/idb-companion-20220119-7342-11m6zpt/idb-1.1.6/build/Build/Intermediates.noindex/Pods.build/Debug/gRPC-Core.build/Objects-normal/x86_64/gRPC-Core.LinkFileList

Libtool /tmp/idb-companion-20220119-7342-11m6zpt/idb-1.1.6/build/Build/Products/Debug/gRPC-Core/libgRPC-Core.a normal (in target 'gRPC-Core' from project 'Pods')
cd /tmp/idb-companion-20220119-7342-11m6zpt/idb-1.1.6/Pods
export MACOSX_DEPLOYMENT_TARGET=10.10
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -D -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk -L/tmp/idb-companion-20220119-7342-11m6zpt/idb-1.1.6/build/Build/Products/Debug/gRPC-Core -filelist /tmp/idb-companion-20220119-7342-11m6zpt/idb-1.1.6/build/Build/Intermediates.noindex/Pods.build/Debug/gRPC-Core.build/Objects-normal/x86_64/gRPC-Core.LinkFileList -dependency_info /tmp/idb-companion-20220119-7342-11m6zpt/idb-1.1.6/build/Build/Intermediates.noindex/Pods.build/Debug/gRPC-Core.build/Objects-normal/x86_64/gRPC-Core_libtool_dependency_info.dat -o /tmp/idb-companion-20220119-7342-11m6zpt/idb-1.1.6/build/Build/Products/Debug/gRPC-Core/libgRPC-Core.a

** BUILD FAILED **

The following build commands failed:
RuleScriptExecution /tmp/idb-companion-20220119-7342-11m6zpt/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.pb.h /tmp/idb-companion-20220119-7342-11m6zpt/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.pb.cc /tmp/idb-companion-20220119-7342-11m6zpt/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.grpc.pb.h /tmp/idb-companion-20220119-7342-11m6zpt/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.grpc.pb.cc /tmp/idb-companion-20220119-7342-11m6zpt/idb-1.1.6/proto/idb.proto normal x86_64 (in target 'idbGRPC' from project 'idb_companion')
(1 failure)
I am running Big Sur 11.6.1 with Xcode 13.1.

@bill20509
Copy link

Same issue on Big Sur 11.5.2, Intel Core i5 with Xcode 13.2.1.

@fatih18
Copy link

fatih18 commented Jan 19, 2022

I have same issue M1 mac pro

RuleScriptExecution /tmp/idb-companion-20220119-5137-bjkho/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.pb.h /tmp/idb-companion-20220119-5137-bjkho/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.pb.cc /tmp/idb-companion-20220119-5137-bjkho/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.grpc.pb.h /tmp/idb-companion-20220119-5137-bjkho/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.grpc.pb.cc /tmp/idb-companion-20220119-5137-bjkho/idb-1.1.6/proto/idb.proto normal arm64 (in target 'idbGRPC' from project 'idb_companion')
(1 failure)

@stdavis
Copy link

stdavis commented Jan 19, 2022

Similar issue on macOS 11.6.2, mac pro (not M1) with Xcode 13.2.1:

The following build commands failed:
        CompileC /tmp/idb-companion-20220119-25273-19s94r3/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/Objects-normal/x86_64/idb.pb.o /tmp/idb-companion-20220119-25273-19s94r3/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.pb.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'idbGRPC' from project 'idb_companion')
(1 failure)

@sjransom
Copy link

sjransom commented Jan 20, 2022

Same issue - macOS 11.6.2, Xcode 13.2.1.

MBP 2019 Intel

@stdavis
Copy link

stdavis commented Jan 20, 2022

Upgrading to Monterey (macOS 12.1) fixed the issue for me.

@amy-r
Copy link

amy-r commented Jan 25, 2022

Same issue here, currently running Monterey (macOS 12.1)

@HSerg
Copy link

HSerg commented Jan 27, 2022

idb-companion 1.1.6 (x86_64, not M1)

brew install protobuf
brew install grpc

mkdir /tmp/protoc
cd /tmp/protoc
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protoc-3.17.3-osx-x86_64.zip
unzip protoc-3.17.3-osx-x86_64.zip
chmod +x /tmp/protoc/bin/protoc
sudo ln -sf /tmp/protoc/bin/protoc /usr/local/bin/protoc

brew tap facebook/fb
brew install idb-companion

cd ~
sudo rm /usr/local/bin/protoc
rm -Rf /tmp/protoc

brew uninstall grpc
brew uninstall protobuf

@tw2079
Copy link
Author

tw2079 commented Jan 27, 2022

HSerg, that worked! Thanks so much for posting the solution!

Everyone else, try the above. It worked for me!

@JaakkoKammonen24center
Copy link

I have still problem even trying HSerg method

MacOS Monterey Version 12.1
MacBook Pro M1 16GB

The following build commands failed:
CompileC /tmp/idb-companion-20220128-62170-tni5hk/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/Objects-normal/arm64/idb.pb.o /tmp/idb-companion-20220128-62170-tni5hk/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.pb.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'idbGRPC' from project 'idb_companion')
(1 failure)

@vzenzo
Copy link

vzenzo commented Feb 10, 2022

Not working for me :(

Same thing happens with or without these solutions

@qalangtao
Copy link

same

@activebiz
Copy link

@HSerg worked for me thanks!

@thhmoc67
Copy link

`** BUILD FAILED **

The following build commands failed:
CompileC /tmp/idb-companion-20220216-1546-1wv3xgm/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/Objects-normal/arm64/idb.pb.o /tmp/idb-companion-20220216-1546-1wv3xgm/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.pb.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'idbGRPC' from project 'idb_companion')
(1 failure)`

Any update on this issue?

@vortechron
Copy link

m1 still failed

@alexchandel
Copy link

==> Downloading https://github.com/facebook/idb/archive/v1.1.6.tar.gz
Already downloaded: /Users/me/Library/Caches/Homebrew/downloads/21f51771171e5d76f8374e6a8f86f0f8e01ecd942a2b0e5d5dce39dad9b7d8c4--idb-1.1.6.tar.gz
==> Upgrading facebook/fb/idb-companion
  1.1.5 -> 1.1.6 

==> pod install
==> ./idb_build.sh idb_companion build /usr/local/Cellar/idb-companion/1.1.6
Last 15 lines from /Users/me/Library/Logs/Homebrew/idb-companion/02.idb_build.sh:

WriteAuxiliaryFile /tmp/idb-companion-20220218-30345-q9xb45/idb-1.1.6/build/Build/Intermediates.noindex/FBSimulatorControl.build/Debug/FBSimulatorControl.build/FBSimulatorControl-own-target-headers.hmap (in target 'FBSimulatorControl' from project 'FBSimulatorControl')
    cd /tmp/idb-companion-20220218-30345-q9xb45/idb-1.1.6
    write-file /tmp/idb-companion-20220218-30345-q9xb45/idb-1.1.6/build/Build/Intermediates.noindex/FBSimulatorControl.build/Debug/FBSimulatorControl.build/FBSimulatorControl-own-target-headers.hmap

WriteAuxiliaryFile /tmp/idb-companion-20220218-30345-q9xb45/idb-1.1.6/build/Build/Intermediates.noindex/FBSimulatorControl.build/Debug/FBDeviceControl.build/FBDeviceControl-own-target-headers.hmap (in target 'FBDeviceControl' from project 'FBSimulatorControl')
    cd /tmp/idb-companion-20220218-30345-q9xb45/idb-1.1.6
    write-file /tmp/idb-companion-20220218-30345-q9xb45/idb-1.1.6/build/Build/Intermediates.noindex/FBSimulatorControl.build/Debug/FBDeviceControl.build/FBDeviceControl-own-target-headers.hmap

** BUILD FAILED **


The following build commands failed:
	RuleScriptExecution /tmp/idb-companion-20220218-30345-q9xb45/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.pb.h /tmp/idb-companion-20220218-30345-q9xb45/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.pb.cc /tmp/idb-companion-20220218-30345-q9xb45/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.grpc.pb.h /tmp/idb-companion-20220218-30345-q9xb45/idb-1.1.6/build/Build/Intermediates.noindex/idb_companion.build/Debug/idbGRPC.build/DerivedSources/idb.grpc.pb.cc /tmp/idb-companion-20220218-30345-q9xb45/idb-1.1.6/proto/idb.proto normal x86_64 (in target 'idbGRPC' from project 'idb_companion')
(1 failure)

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/facebook/homebrew-fb/issues

These open issues may also help:
./idb_build.sh idb_companion build /** BUILD FAILED ** https://github.com/facebook/homebrew-fb/issues/73
brew install idb-companion failed on x86_64 https://github.com/facebook/homebrew-fb/issues/75

@chrismcleod
Copy link

HSerg method worked for me but I replaced /usr/local/bin/protoc with /opt/homebrew/bin/protoc

@iAmHarmon
Copy link

@HSerg worked for me as well but using the modification @chrismcleod used.

On macOS Monterey with an M1 processor

@vxm5091
Copy link

vxm5091 commented Jul 25, 2022

Still having this issue even with @HSerg and @chrismcleod solutions. I'm on a non-M1 2019 MBP, BigSur, XCode 13.2.1.

If anyone came across any other solutions that helped, that would be very much appreciated!

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