clang: error: unable to execute command: Illegal instruction: 4 - objective-c

clang: error: unable to execute command: Illegal instruction: 4
clang: error: linker command failed due to signal (use -v to see invocation)
xcode:5.0 os:10.8.5
Why is there this error, about OS version?
How to modify?
Thank you~~

Related

LTO compilation question when linking X86/marshal file

Envs: Ubuntu 18.04, Miniconda3, python=3.7(GCC=7.3.0), GCC -v (7.4.0)
The error occurs when I run the following command:
scons build/X86/gem5.opt -j8
The error is as follow:
[ LINK] -> X86/marshal
lto1: internal compiler error: in lto_tag_to_tree_code, at lto-streamer.h:1005
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
lto-wrapper: fatal error: g++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
scons: *** [build/X86/marshal] Error 1
scons: building terminated because of errors.
And I am wondering how to fix it.

Error when building TensorFlow 1.7 from Sources on Mac

I'm trying to build TensorFlow 1.7 on Mac from sources and it's throwing me this error:
ERROR: /private/var/tmp/_bazel_MattLem/bfcff3d12fe85b0d0756749577ef2f1f/external/protobuf_archive/BUILD:259:1: Linking of rule ‘#protobuf_archive//:js_embed’ failed (Exit 1)
ld: unknown option: -no-as-needed
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 69.677s, Critical Path: 4.50s
INFO: 5 processes: 5 local.
FAILED: Build did NOT complete successfully
How can I fix this error?
IT's a Bazel bug: https://github.com/bazelbuild/bazel/issues/5468. Downgrading might work.

How to solve linker command failed with exit code 1 (use -v to see invocation) error in xcode 6.2 /objective c

My app having one error "ld: file not found: /Users/Fine-Mac/Library/Developer/Xcode/DerivedData/NeonatalApp-bvbdhtlpdjrirqfkvwpjfynxzwfm/Build/Products/Debug-iphoneos/NeonatalApp.app/NeonatalApp
clang: error: linker command failed with exit code 1 (use -v to see invocation)"
In my app having following framework:
1)libsqlite3.dylib
2)libsqlite3.0.dylib
3)QuartzCore.framework
4)CoreGraphics.framework
But i don't understand which file is not found.

library not found for -lPods when i am using ECSliding Controller

I am facing the this kind of issue in ECSlidingContrtoller
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)

clang does not compile a simple c file

I've just installed clang in to cygwin:
clang version 3.1 (trunk 151024)
TargetL i386-pc-cygwin
Thread model: posix
However when trying to compile a simple c file (only main), the error occured:
clang version 3.1 (trunk 151024)
Target: i386-pc-cygwin
Thread model: posix
"/usr/local/bin/clang" -cc1 -triple i386-pc-cygwin -S -disable-free -main-file-name t.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -momit-leaf-frame-pointer -v -resource-dir /usr/local/bin/../lib/clang/3.1 -fmodule-cache-path /var/tmp/clang-module-cache -fno-dwarf-directory-asm -fdebug-compilation-dir /toolchain4 -ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-use-cxa-atexit -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option -o /cygdrive/c/Users/Br0ther/AppData/Local/Temp/t-zyOz8h.s -x c t.c
clang: error: unable to execute command: Program could not be executed
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information.
clang: error: unable to execute command: Program could not be executed
clang: note: diagnostic msg: Error generating preprocessed source(s).
Any body out there knows what causes the problem? I have no idea what is the meaning of the message:
clang: error: unable to execute command: Program could not be executed
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Your help is greatly appreciated
NK
If these two lines are worrying you:
clang: error: unable to execute command: Program could not be executed
clang: error: clang frontend command failed due to signal
(use -v to see invocation)
then might I suggest you (as suggested in the error message) change your command to see the invocation line it uses:
"/usr/local/bin/clang" -v -cc1 -triple i386-pc-cygwin ...
Then you will know the name of the program and you can investigate why it's not on your path (for example).
Thank you for all suggestions.
However, the issue is fixed by increasing the heap size of cygwin.
Thanks