homebrew-fb icon indicating copy to clipboard operation
homebrew-fb copied to clipboard

brew install idb-companion failed on x86_64

Open tw2079 opened this issue 3 years ago • 20 comments

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!

tw2079 avatar Jan 17 '22 00:01 tw2079

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

toioski avatar Jan 18 '22 17:01 toioski

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.

TinaLiu916 avatar Jan 19 '22 04:01 TinaLiu916

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

bill20509 avatar Jan 19 '22 06:01 bill20509

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)

fatih18 avatar Jan 19 '22 12:01 fatih18

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)

stdavis avatar Jan 19 '22 18:01 stdavis

Same issue - macOS 11.6.2, Xcode 13.2.1.

MBP 2019 Intel

sjransom avatar Jan 20 '22 14:01 sjransom

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

stdavis avatar Jan 20 '22 16:01 stdavis

Same issue here, currently running Monterey (macOS 12.1)

amy-r avatar Jan 25 '22 23:01 amy-r

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

HSerg avatar Jan 27 '22 04:01 HSerg

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

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

tw2079 avatar Jan 27 '22 21:01 tw2079

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)

JaakkoKammonen24center avatar Jan 28 '22 09:01 JaakkoKammonen24center

Not working for me :(

Same thing happens with or without these solutions

vzenzo avatar Feb 10 '22 16:02 vzenzo

same

qalangtao avatar Feb 15 '22 02:02 qalangtao

@HSerg worked for me thanks!

activebiz avatar Feb 15 '22 12:02 activebiz

`** 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?

thhmoc67 avatar Feb 16 '22 16:02 thhmoc67

m1 still failed

vortechron avatar Feb 17 '22 03:02 vortechron

==> 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

alexchandel avatar Feb 18 '22 21:02 alexchandel

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

chrismcleod avatar Feb 21 '22 23:02 chrismcleod

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

On macOS Monterey with an M1 processor

iAmHarmon avatar Feb 27 '22 18:02 iAmHarmon

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!

vxm5091 avatar Jul 25 '22 22:07 vxm5091