question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

compile realmjs 1.13.0 with error

See original GitHub issue
$ clang -v
clang version 4.0.1 (tags/RELEASE_401/final)
Target: x86_64-apple-darwin17.3.0
Thread model: posix
InstalledDir: /usr/local/bin

i am creating a react-native application with realmjs 1.13.0,and encountered the following error while starting up the app, how could i solve it? any hint would be appreciated.

CompileC /Users/crazybit/go/src/github.com/BitAssetManagement/ios/build/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/GCDWebServers.build/Objects-normal/x86_64/GCDWebServerRequest.o /Users/crazybit/go/src/github.com/BitAssetManagement/node_modules/realm/vendor/GCDWebServer/GCDWebServer/Core/GCDWebServerRequest.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/crazybit/go/src/github.com/BitAssetManagement/node_modules/realm/src export LANG=en_US.US-ASCII export PATH=“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Wireshark.app/Contents/MacOS:/Users/crazybit/Library/Android/sdk/tools:/Users/crazybit/Library/Android/sdk/platform-tools” /Users/crazybit/go/src/github.com/BitAssetManagement/node_modules/realm/src/…/scripts/ccache-clang.sh -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/crazybit/go/src/github.com/BitAssetManagement/ios/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/crazybit/go/src/github.com/BitAssetManagement/ios/build/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DREALM_DEBUG -DREALM_HAVE_CONFIG -D__ASSERTMACROS__ -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=7.0 -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/crazybit/go/src/github.com/BitAssetManagement/ios/build/Index/DataStore -iquote /Users/crazybit/go/src/github.com/BitAssetManagement/ios/build/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/GCDWebServers.build/GCDWebServers-generated-files.hmap -I/Users/crazybit/go/src/github.com/BitAssetManagement/ios/build/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/GCDWebServers.build/GCDWebServers-own-target-headers.hmap -I/Users/crazybit/go/src/github.com/BitAssetManagement/ios/build/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/GCDWebServers.build/GCDWebServers-all-target-headers.hmap -iquote /Users/crazybit/go/src/github.com/BitAssetManagement/ios/build/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/GCDWebServers.build/GCDWebServers-project-headers.hmap -I/Users/crazybit/go/src/github.com/BitAssetManagement/ios/build/Build/Products/Debug-iphonesimulator/include -I/Users/crazybit/go/src/github.com/BitAssetManagement/node_modules/realm/src/object-store/src -I/Users/crazybit/go/src/github.com/BitAssetManagement/node_modules/realm/src/…/vendor -I/Users/crazybit/go/src/github.com/BitAssetManagement/node_modules/realm/src/…/vendor/core/include -I/Users/crazybit/go/src/github.com/BitAssetManagement/ios/build/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/GCDWebServers.build/DerivedSources/x86_64 -I/Users/crazybit/go/src/github.com/BitAssetManagement/ios/build/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/GCDWebServers.build/DerivedSources -F/Users/crazybit/go/src/github.com/BitAssetManagement/ios/build/Build/Products/Debug-iphonesimulator -MMD -MT dependencies -MF /Users/crazybit/go/src/github.com/BitAssetManagement/ios/build/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/GCDWebServers.build/Objects-normal/x86_64/GCDWebServerRequest.d --serialize-diagnostics /Users/crazybit/go/src/github.com/BitAssetManagement/ios/build/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/GCDWebServers.build/Objects-normal/x86_64/GCDWebServerRequest.dia -c /Users/crazybit/go/src/github.com/BitAssetManagement/node_modules/realm/vendor/GCDWebServer/GCDWebServer/Core/GCDWebServerRequest.m -o /Users/crazybit/go/src/github.com/BitAssetManagement/ios/build/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/GCDWebServers.build/Objects-normal/x86_64/GCDWebServerRequest.o

clang-4.0: error: cannot specify -o when generating multiple output files

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
crazybitscommented, Jan 15, 2018

@kneth, millions thanks, it is really due to the clang version, case closed.

1reaction
knethcommented, Apr 8, 2019

@joshuapinter Thanks for sharing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to install Realm on my ReactNative app ; with: npm ...
npm WARN @typescript-eslint/parser@1.13.0 requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.
Read more >
Problems trying to compile MongoCxx - Drivers & ODMs
Hi, I'm currently trying to compile mongocxx-driver under Ubuntu, ... (requested version 1.13.0) with any of the following names:
Read more >
realm | Yarn - Package Manager
Building Realm JS. For instructions on building Realm JS ... Fixed build error (call to implicitly-deleted copy constructor of ... 1.13.0 (2017-10-5).
Read more >
FAQ — Emscripten 3.1.26-git (dev) documentation
Without optimizations, emscripten enables many assertions at compile and runtime, which may catch a problem and display an error message with a suggestion ......
Read more >
wordpress/scripts adding custom js files throws error
[This thread is closed.] I'm using @wordpress/scripts in my theme to compile and compress javascript and scss. And everything works fine if…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found