linux kernel 4.4 build error: garbage following instruction - gcc

I am trying to build a custom linux kernel 4.4 running for AT91 with mostly default configuration that I set up from menuconfig. The build fails with the following error. The gcc version is 4.6.3 and the binutils version is 2.22. There is nothing obvious in main.c which is where the compilation is at the time of failure. Dont understand what to look for as I have run out of ideas.
arm-none-linux-gnueabi-gcc -Wp,-MD,init/.main.o.d -nostdinc -isystem /opt/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/include -I./arch/arm/include -Iarch/arm/include/generated/uapi -Iarch/arm/include/generated -Iinclude -I./arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=apcs-gnu -mno-thumb-interwork -marm -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -fno-delete-null-pointer-checks -O2 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -gdwarf-2 -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -Werror=implicit-int -Werror=strict-prototypes -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(main)" -D"KBUILD_MODNAME=KBUILD_STR(main)" -c -o init/.tmp_main.o init/main.c
/tmp/ccbj4Zgm.s: Assembler messages:
/tmp/ccbj4Zgm.s:852: Error: garbage following instruction -- `dmb ishst'
/tmp/ccbj4Zgm.s:874: Error: garbage following instruction -- `dmb ishst'
/tmp/ccbj4Zgm.s:909: Error: garbage following instruction -- `dmb ish'
/tmp/ccbj4Zgm.s:921: Error: garbage following instruction -- `dsb ishst'
make[2]: *** [init/main.o] Error 1
make[1]: *** [init] Error 2

Related

F2py errors with a MAC M2

I'm trying to use f2py on a MAC M2. My programs all run successfully on an Intel MAC. The first part of the process to produce C code from my Fortran source which seems to work but I get the following error when the C compilation attempts and fails
clang-14clang-14: : error: error: the clang compiler does not support '-march=core2'the clang compiler does not support '-march=core2'
Followed by this long string
error: Command "x86_64-apple-darwin13.4.0-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/condaTest/include -arch arm64 -fPIC -O2 -isystem /opt/homebrew/Caskroom/miniforge/base/envs/condaTest/include -arch arm64 -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /opt/homebrew/Caskroom/miniforge/base/include -D_FORTIFY_SOURCE=2 -isystem /opt/homebrew/Caskroom/miniforge/base/include -ftrapping-math -DNPY_DISABLE_OPTIMIZATION=1 -I/var/folders/np/393cjs953159dbj23mgqmlqr0000gn/T/tmpf0_vcv2d/src.macosx-11.0-arm64-3.9 -I/opt/homebrew/Caskroom/miniforge/base/envs/condaTest/lib/python3.9/site-packages/numpy/core/include -I/opt/homebrew/Caskroom/miniforge/base/envs/condaTest/include/python3.9 -c /var/folders/np/393cjs953159dbj23mgqmlqr0000gn/T/tmpf0_vcv2d/src.macosx-11.0-arm64-3.9/fib3module.c -o /var/folders/np/393cjs953159dbj23mgqmlqr0000gn/T/tmpf0_vcv2d/var/folders/np/393cjs953159dbj23mgqmlqr0000gn/T/tmpf0_vcv2d/src.macosx-11.0-arm64-3.9/fib3module.o -MMD -MF /var/folders/np/393cjs953159dbj23mgqmlqr0000gn/T/tmpf0_vcv2d/var/folders/np/393cjs953159dbj23mgqmlqr0000gn/T/tmpf0_vcv2d/src.macosx-11.0-arm64-3.9/fib3module.o.d" failed with exit status 1
I would be very grateful for any help with this.

Installing Cloudera Hue on mac os x mountain lion

So I've installed all the dependencies and when I do make install, the following error comes:
--- Installing core source structure...
--- Installing Desktop core...
INSTALL_DIR=/usr/local/hue make -C desktop install
INSTALL_DIR=/usr/local/hue/desktop/core \
INSTALL_CONF_DIR=/usr/local/hue/desktop/conf \
make -C core install-bdist
--- Building egg for Twisted
running bdist_egg
running egg_info
writing requirements to Twisted.egg-info/requires.txt
writing Twisted.egg-info/PKG-INFO
writing top-level names to Twisted.egg-info/top_level.txt
writing dependency_links to Twisted.egg-info/dependency_links.txt
reading manifest file 'Twisted.egg-info/SOURCES.txt'
writing manifest file 'Twisted.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.8-intel/egg
running install_lib
running build_py
running build_ext
clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c conftest.c -o conftest.o
clang: warning: argument unused during compilation: '-mno-fused-madd'
clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c conftest.c -o conftest.o
clang: warning: argument unused during compilation: '-mno-fused-madd'
conftest.c:1:10: fatal error: 'sys/epoll.h' file not found
#include <sys/epoll.h>
^
1 error generated.
building 'twisted.internet.cfsupport' extension
clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c twisted/internet/cfsupport/cfsupport.c -o build/temp.macosx-10.8-intel-2.7/twisted/internet/cfsupport/cfsupport.o -w
twisted/internet/cfsupport/cfsupport.c:128:4: error: assignment to cast is illegal, lvalue casts are not supported
((PyObject*)__pyx_v_socket) = Py_None; Py_INCREF(((PyObject*)__pyx_v_socket));
~^~~~~~~~~~~~~~~~~~~~~~~~~~ ~
twisted/internet/cfsupport/cfsupport.c:134:4: error: assignment to cast is illegal, lvalue casts are not supported
((PyObject *)__pyx_v_socket) = __pyx_1;
~^~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
twisted/internet/cfsupport/cfsupport.c:829:4: error: assignment to cast is illegal, lvalue casts are not supported
((PyObject*)__pyx_v_obj) = Py_None; Py_INCREF(((PyObject*)__pyx_v_obj));
~^~~~~~~~~~~~~~~~~~~~~~~ ~
twisted/internet/cfsupport/cfsupport.c:835:4: error: assignment to cast is illegal, lvalue casts are not supported
((PyObject *)__pyx_v_obj) = __pyx_1;
~^~~~~~~~~~~~~~~~~~~~~~~~ ~
4 errors generated.
error: command 'clang' failed with exit status 1
make[2]: *** [/Users/rajat.khandelwal/Downloads/hue-2.4.0/desktop/core/build/Twisted/egg.stamp] Error 1
make[1]: *** [.recursive-install-bdist/core] Error 2
make: *** [install-desktop] Error 2
Also submitted the issue on github: https://github.com/cloudera/hue/issues/31
You need to delete
desktop/core/ext-py/Twisted and retry.
Also Hue 2.5 release (which contains this fix) is around the corner (this Monday/Tuesday).

Apple LLVM compiler 4.2 (Clang failed with code 1)

I have question regarding xcode project,
I am very new in xcoding .I am trying to import and run this project in my xcode to test how its work https://github.com/pkyeck/socket.IO-objc, but as soon as i run the project i go the following error
I am using IOS SDK 6.1 and Apple LLVM compiler 4.2.
error
ProcessPCH /Users/nikunjpatel/Library/Developer/Xcode/DerivedData/SocketTesterARC-hbuecoaldjcdawhaiejruwwnvccu/Build/Intermediates/PrecompiledHeaders/SocketTesterARC-Prefix-eaouggsjdwbakedoogkslkipaiwy/SocketTesterARC-Prefix.pch.pth SocketTesterARC/SocketTesterARC-Prefix.pch normal i386 c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/nikunjpatel/Desktop/socket.IO-objc-master
setenv LANG en_US.US-ASCII
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c-header -arch i386 -fmessage-length=0 -std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -mios-simulator-version-min=4.0 -iquote /Users/nikunjpatel/Library/Developer/Xcode/DerivedData/SocketTesterARC-hbuecoaldjcdawhaiejruwwnvccu/Build/Intermediates/SocketTesterARC.build/Debug-iphonesimulator/SocketTesterARC.build/SocketTesterARC-generated-files.hmap -I/Users/nikunjpatel/Library/Developer/Xcode/DerivedData/SocketTesterARC-hbuecoaldjcdawhaiejruwwnvccu/Build/Intermediates/SocketTesterARC.build/Debug-iphonesimulator/SocketTesterARC.build/SocketTesterARC-own-target-headers.hmap -I/Users/nikunjpatel/Library/Developer/Xcode/DerivedData/SocketTesterARC-hbuecoaldjcdawhaiejruwwnvccu/Build/Intermediates/SocketTesterARC.build/Debug-iphonesimulator/SocketTesterARC.build/SocketTesterARC-all-target-headers.hmap -iquote /Users/nikunjpatel/Library/Developer/Xcode/DerivedData/SocketTesterARC-hbuecoaldjcdawhaiejruwwnvccu/Build/Intermediates/SocketTesterARC.build/Debug-iphonesimulator/SocketTesterARC.build/SocketTesterARC-project-headers.hmap -I/Users/nikunjpatel/Library/Developer/Xcode/DerivedData/SocketTesterARC-hbuecoaldjcdawhaiejruwwnvccu/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/nikunjpatel/Library/Developer/Xcode/DerivedData/SocketTesterARC-hbuecoaldjcdawhaiejruwwnvccu/Build/Intermediates/SocketTesterARC.build/Debug-iphonesimulator/SocketTesterARC.build/DerivedSources/i386 -I/Users/nikunjpatel/Library/Developer/Xcode/DerivedData/SocketTesterARC-hbuecoaldjcdawhaiejruwwnvccu/Build/Intermediates/SocketTesterARC.build/Debug-iphonesimulator/SocketTesterARC.build/DerivedSources -F/Users/nikunjpatel/Library/Developer/Xcode/DerivedData/SocketTesterARC-hbuecoaldjcdawhaiejruwwnvccu/Build/Products/Debug-iphonesimulator --serialize-diagnostics /Users/nikunjpatel/Library/Developer/Xcode/DerivedData/SocketTesterARC-hbuecoaldjcdawhaiejruwwnvccu/Build/Intermediates/PrecompiledHeaders/SocketTesterARC-Prefix-eaouggsjdwbakedoogkslkipaiwy/SocketTesterARC-Prefix.pch.dia -c /Users/nikunjpatel/Desktop/socket.IO-objc-master/SocketTesterARC/SocketTesterARC-Prefix.pch -o /Users/nikunjpatel/Library/Developer/Xcode/DerivedData/SocketTesterARC-hbuecoaldjcdawhaiejruwwnvccu/Build/Intermediates/PrecompiledHeaders/SocketTesterARC-Prefix-eaouggsjdwbakedoogkslkipaiwy/SocketTesterARC-Prefix.pch.pth -MMD -MT dependencies -MF /Users/nikunjpatel/Library/Developer/Xcode/DerivedData/SocketTesterARC-hbuecoaldjcdawhaiejruwwnvccu/Build/Intermediates/PrecompiledHeaders/SocketTesterARC-Prefix-eaouggsjdwbakedoogkslkipaiwy/SocketTesterARC-Prefix.pch.d
clang: error: no such file or directory: '/Users/nikunjpatel/Desktop/socket.IO-objc-master/SocketTesterARC/SocketTesterARC-Prefix.pch'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
please help me

Xcode 4.3 : Clang LLVM 1.0 Error

I would like to use SDL in a project, so I create a Cocoa Project and I add all Framework needed, but XCode tells me this :
ProcessPCH /Users/aurelien/Library/Developer/Xcode/DerivedData/projetCS2-gdnozsjskcozmxcvmlmmpsmmkcvk/Build/Intermediates/PrecompiledHeaders/projetCS2-Prefix-auneaovyjutgotajcmkllwxdblci/projetCS2-Prefix.pch.pth projetCS2/projetCS2-Prefix.pch normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/aurelien/Documents/Programmation/projetC-S2/projetCS2
setenv LANG en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c-header -arch i386 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -fasm-blocks -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.7 -g -Wno-conversion -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -I/Users/aurelien/Library/Developer/Xcode/DerivedData/projetCS2-gdnozsjskcozmxcvmlmmpsmmkcvk/Build/Intermediates/projetCS2.build/Debug/projetCS2.build/projetCS2.hmap -I/Users/aurelien/Library/Developer/Xcode/DerivedData/projetCS2-gdnozsjskcozmxcvmlmmpsmmkcvk/Build/Products/Debug/include -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/SDL_image.framework/Headers -I/Library/Frameworks/SDL_ttf.framework/Headers -I/Users/aurelien/Library/Developer/Xcode/DerivedData/projetCS2-gdnozsjskcozmxcvmlmmpsmmkcvk/Build/Intermediates/projetCS2.build/Debug/projetCS2.build/DerivedSources/i386 -I/Users/aurelien/Library/Developer/Xcode/DerivedData/projetCS2-gdnozsjskcozmxcvmlmmpsmmkcvk/Build/Intermediates/projetCS2.build/Debug/projetCS2.build/DerivedSources -F/Users/aurelien/Library/Developer/Xcode/DerivedData/projetCS2-gdnozsjskcozmxcvmlmmpsmmkcvk/Build/Products/Debug -F/Library/Frameworks --serialize-diagnostics /Users/aurelien/Library/Developer/Xcode/DerivedData/projetCS2-gdnozsjskcozmxcvmlmmpsmmkcvk/Build/Intermediates/PrecompiledHeaders/projetCS2-Prefix-auneaovyjutgotajcmkllwxdblci/projetCS2-Prefix.pch.dia -c /Users/aurelien/Documents/Programmation/projetC-S2/projetCS2/projetCS2/projetCS2-Prefix.pch -o /Users/aurelien/Library/Developer/Xcode/DerivedData/projetCS2-gdnozsjskcozmxcvmlmmpsmmkcvk/Build/Intermediates/PrecompiledHeaders/projetCS2-Prefix-auneaovyjutgotajcmkllwxdblci/projetCS2-Prefix.pch.pth -MMD -MT dependencies -MF /Users/aurelien/Library/Developer/Xcode/DerivedData/projetCS2-gdnozsjskcozmxcvmlmmpsmmkcvk/Build/Intermediates/PrecompiledHeaders/projetCS2-Prefix-auneaovyjutgotajcmkllwxdblci/projetCS2-Prefix.pch.d
error: -fobjc-arc is not supported with fragile abi
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
The error says you are using ARC (automatic reference counting) on your project, and that it's not supported using the fragile ABI (simulator).
You are surely building your app for 32-bits.
ARC is 64-bits only.
Try to update your projects settings, and build for 64-bits instead of 32 or universal.

"internal compiler error" from yajl-ruby build on OpenSUSE 12.1

As a requirement for chef-client, I am trying to install yajl-ruby on OpenSUSE 12.1. So far, it is returning the following message:
linux:~ # gem install yajl-ruby
Building native extensions. This could take a while...
ERROR: Error installing yajl-ruby:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
creating Makefile
make
gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux -I. -fPIC -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -g -fno-strict-aliasing -fPIC -Wall -funroll-loops -c yajl.c
gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux -I. -fPIC -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -g -fno-strict-aliasing -fPIC -Wall -funroll-loops -c yajl_alloc.c
gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux -I. -fPIC -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -g -fno-strict-aliasing -fPIC -Wall -funroll-loops -c yajl_buf.c
gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux -I. -fPIC -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -g -fno-strict-aliasing -fPIC -Wall -funroll-loops -c yajl_encode.c
yajl_encode.c: In function ‘hexToDigit’:
yajl_encode.c:201:1: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.opensuse.org/> for instructions.
make: *** [yajl_encode.o] Error 1
Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/yajl-ruby-1.1.0 for inspection.
Results logged to /usr/lib64/ruby/gems/1.8/gems/yajl-ruby-1.1.0/ext/yajl/gem_make.out
The appropriate packages are installed:
zypper install ruby ruby-devel ruby-ri ruby-rdoc ruby-shadow gcc gcc-c++ automake autoconf make curl dmidecode
It may be an issue with the compiler or there may be an issue specific on OpenSUSE. So far, I am not sure which path to take.
gcc clearly recommends you to send bug report to OpenSuse with full preprocessed source (-E option instead of "-c" and add a redirect to file). This may be because opensuse gcc might have some modifications. You should check instructions on bugs.opensuse.org and send a bug report to OpenSuse. If the bug is in basic gcc too, opensuse bugzilla people will forward it upstream or will ask you to do this
To avoid an "internal compiler error" without sending bugs you can try to change build options. Usually "internal compiler error" means that something goes wrong in complex process of optimizations, so you can just change this process (order of optimization stages and which are enabled). Easiest is to change level of optimization (e.g. replace -O2 with -O1 or -O0) or add something like -Osize.

Resources