I cannot make link-parser gem working on my snow leopard.
When I tried to do 'sudo gem install linkparser' and I get:
Building native extensions. This could take a while...
ERROR: Error installing linkparser:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
checking for pkg-config... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
--with-link-grammar
--without-link-grammar
--with-pkg-config
--without-pkg-config
extconf.rb:18: Couldn't find your pkg-config binary (RuntimeError)
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/linkparser-1.1.0 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/linkparser-1.1.0/ext/gem_make.out
When I compiled link-grammar 4.3.5 from source (it went well) and then tried to do 'rake':
Task library 'rake/manual.rb' failed to load: NameError: uninitialized constant MANUALDIR. Some tasks may not be available.
No DarkFish: LoadError: no such file to load -- darkfish-rdoc
Task library 'rake/rdoc.rb' failed to load: NameError: uninitialized constant RDOCDIR. Some tasks may not be available.
Task library 'rake/testing.rb' failed to load: NameError: uninitialized constant Spec. Some tasks may not be available.
rm -r coverage
rake clean
(in /Users/alan/linkparser/ext)
rm -r dictionary.o
rm -r linkage.o
rm -r linkparser.o
rm -r parseoptions.o
rm -r sentence.o
rake
(in /Users/alan/linkparser/ext)
gcc -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -Wall -DDEBUG -DHAVE_LINK_GRAMMAR_LINK_INCLUDES_H -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/include -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I/Library/Ruby/Site/1.8 -I. -c dictionary.c
gcc -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -Wall -DDEBUG -DHAVE_LINK_GRAMMAR_LINK_INCLUDES_H -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/include -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I/Library/Ruby/Site/1.8 -I. -c linkage.c
gcc -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -Wall -DDEBUG -DHAVE_LINK_GRAMMAR_LINK_INCLUDES_H -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/include -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I/Library/Ruby/Site/1.8 -I. -c linkparser.c
gcc -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -Wall -DDEBUG -DHAVE_LINK_GRAMMAR_LINK_INCLUDES_H -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/include -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I/Library/Ruby/Site/1.8 -I. -c parseoptions.c
gcc -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -Wall -DDEBUG -DHAVE_LINK_GRAMMAR_LINK_INCLUDES_H -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/include -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I/Library/Ruby/Site/1.8 -I. -c sentence.c
cc -arch i386 -arch x86_64 -pipe -bundle -undefined dynamic_lookup -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -o linkparser_ext.bundle dictionary.o linkage.o linkparser.o parseoptions.o sentence.o -lpthread -ldl -llink-grammar -lruby
ld: warning: in /usr/local/lib/liblink-grammar.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
Specification tasks not defined: no such file to load -- spec/rake/spectask
rake aborted!
Don't know how to build task 'rdoc'
How to fix this? Is there any special compiling options I need to specify when I compile link-grammar?
It looks like you need to install pkg-config.
I'd recommend installing it by first installing XCode (if you haven't already), then Homebrew (a package manager for OS X), and then running brew install pkg-config in the terminal.
If you already have MacPorts or Fink installed I'm sure you can find the appropriate package in their repositories as well.
Related
I am trying to install qpsolvers on my mac
(https://pypi.org/project/qpsolvers/), but it seems that there is a problem with the compiler. I am running Mojave 10.14.5, with Xcode 11.1.
I use pip install qpsolvers
I have searched everywhere but can't find a solution. Here is the full output. It seems that I need to change the library from libstdc++ to libc++, as the former has been deprecated, but I don't know how. Thank you in advance.
Collecting quadprog (from qpsolvers)
Using cached https://files.pythonhosted.org/packages/5a/f0/d4c8866f5d14dfa1a441439f5ce0d2680844651772129c431e78caadfe10/quadprog-0.1.7.tar.gz
Requirement already satisfied: Cython in /anaconda3/lib/python3.7/site-packages (from quadprog->qpsolvers) (0.29.12)
Building wheels for collected packages: quadprog
Building wheel for quadprog (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: //anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-install-tmubn361/quadprog/setup.py'"'"'; __file__='"'"'/private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-install-tmubn361/quadprog/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-wheel-9l6gxhyh --python-tag cp37
cwd: /private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-install-tmubn361/quadprog/
Complete output (36 lines):
running bdist_wheel
running build
running build_ext
cythoning quadprog/quadprog.pyx to quadprog/quadprog.cpp
//anaconda3/lib/python3.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-install-tmubn361/quadprog/quadprog/quadprog.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'quadprog' extension
creating build
creating build/temp.macosx-10.7-x86_64-3.7
creating build/temp.macosx-10.7-x86_64-3.7/quadprog
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/quadprog.cpp -o build/temp.macosx-10.7-x86_64-3.7/quadprog/quadprog.o
warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
quadprog/quadprog.cpp:2507:28: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
__pyx_t_3 = ((__pyx_t_11 != __pyx_v_n1) != 0);
~~~~~~~~~~ ^ ~~~~~~~~~~
quadprog/quadprog.cpp:2620:28: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
__pyx_t_3 = ((__pyx_t_11 != __pyx_v_m1) != 0);
~~~~~~~~~~ ^ ~~~~~~~~~~
quadprog/quadprog.cpp:19494:26: warning: code will never be executed [-Wunreachable-code]
module = PyImport_ImportModuleLevelObject(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/aind.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/aind.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/solve.QP.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/solve.QP.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/util.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/util.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/dpofa.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/dpofa.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/daxpy.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/daxpy.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/ddot.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/ddot.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/dscal.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/dscal.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/f2c_lite.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/f2c_lite.o
creating build/lib.macosx-10.7-x86_64-3.7
g++ -bundle -undefined dynamic_lookup -L//anaconda3/lib -arch x86_64 -L//anaconda3/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.7/quadprog/quadprog.o build/temp.macosx-10.7-x86_64-3.7/quadprog/aind.o build/temp.macosx-10.7-x86_64-3.7/quadprog/solve.QP.o build/temp.macosx-10.7-x86_64-3.7/quadprog/util.o build/temp.macosx-10.7-x86_64-3.7/quadprog/dpofa.o build/temp.macosx-10.7-x86_64-3.7/quadprog/daxpy.o build/temp.macosx-10.7-x86_64-3.7/quadprog/ddot.o build/temp.macosx-10.7-x86_64-3.7/quadprog/dscal.o build/temp.macosx-10.7-x86_64-3.7/quadprog/f2c_lite.o -o build/lib.macosx-10.7-x86_64-3.7/quadprog.cpython-37m-darwin.so
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'g++' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for quadprog
Running setup.py clean for quadprog
Failed to build quadprog
Installing collected packages: quadprog, qpsolvers
Running setup.py install for quadprog ... error
ERROR: Command errored out with exit status 1:
command: //anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-install-tmubn361/quadprog/setup.py'"'"'; __file__='"'"'/private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-install-tmubn361/quadprog/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-record-f4urqd3x/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-install-tmubn361/quadprog/
Complete output (34 lines):
running install
running build
running build_ext
skipping 'quadprog/quadprog.cpp' Cython extension (up-to-date)
building 'quadprog' extension
creating build
creating build/temp.macosx-10.7-x86_64-3.7
creating build/temp.macosx-10.7-x86_64-3.7/quadprog
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/quadprog.cpp -o build/temp.macosx-10.7-x86_64-3.7/quadprog/quadprog.o
warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
quadprog/quadprog.cpp:2507:28: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
__pyx_t_3 = ((__pyx_t_11 != __pyx_v_n1) != 0);
~~~~~~~~~~ ^ ~~~~~~~~~~
quadprog/quadprog.cpp:2620:28: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
__pyx_t_3 = ((__pyx_t_11 != __pyx_v_m1) != 0);
~~~~~~~~~~ ^ ~~~~~~~~~~
quadprog/quadprog.cpp:19494:26: warning: code will never be executed [-Wunreachable-code]
module = PyImport_ImportModuleLevelObject(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/aind.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/aind.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/solve.QP.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/solve.QP.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/util.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/util.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/dpofa.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/dpofa.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/daxpy.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/daxpy.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/ddot.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/ddot.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/dscal.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/dscal.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -Iquadprog -I//anaconda3/include/python3.7m -c quadprog/f2c_lite.c -o build/temp.macosx-10.7-x86_64-3.7/quadprog/f2c_lite.o
creating build/lib.macosx-10.7-x86_64-3.7
g++ -bundle -undefined dynamic_lookup -L//anaconda3/lib -arch x86_64 -L//anaconda3/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.7/quadprog/quadprog.o build/temp.macosx-10.7-x86_64-3.7/quadprog/aind.o build/temp.macosx-10.7-x86_64-3.7/quadprog/solve.QP.o build/temp.macosx-10.7-x86_64-3.7/quadprog/util.o build/temp.macosx-10.7-x86_64-3.7/quadprog/dpofa.o build/temp.macosx-10.7-x86_64-3.7/quadprog/daxpy.o build/temp.macosx-10.7-x86_64-3.7/quadprog/ddot.o build/temp.macosx-10.7-x86_64-3.7/quadprog/dscal.o build/temp.macosx-10.7-x86_64-3.7/quadprog/f2c_lite.o -o build/lib.macosx-10.7-x86_64-3.7/quadprog.cpython-37m-darwin.so
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'g++' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: //anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-install-tmubn361/quadprog/setup.py'"'"'; __file__='"'"'/private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-install-tmubn361/quadprog/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/ts/tcs582c520v84jj30bwzm5b40000gn/T/pip-record-f4urqd3x/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.```
Glad to hear the Xcode update worked.
This issue should not happen any more as (1) quadprog has become an optional dependency of qpsolvers and (2) quadprog have fixed the build-from-source only issue on their side by adding wheels.
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
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).
I recently upgraded to Mac OS X 10.7 from 10.6.
I decided to use Python 2.7.
But when I'm trying to install the MySQLdb module to run Django, it fails:
$ sudo pip install MySQL-python
Downloading/unpacking MySQL-python
[…]
Running setup.py install for MySQL-python
building '_mysql' extension
llvm-gcc-4.2 -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 -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/local/mysql/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.7-intel-2.7/_mysql.o -Os -g -fno-common -fno-strict-aliasing -arch x86_64
unable to execute llvm-gcc-4.2: No such file or directory
error: command 'llvm-gcc-4.2' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools;__file__='~/Sites/gugsm/build/MySQL-python/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-AwMuqj-record/install-record.txt:
running install
running build
[…]
building '_mysql' extension
creating build/temp.macosx-10.7-intel-2.7
llvm-gcc-4.2 -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 -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/local/mysql/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.7-intel-2.7/_mysql.o -Os -g -fno-common -fno-strict-aliasing -arch x86_64
unable to execute llvm-gcc-4.2: No such file or directory
error: command 'llvm-gcc-4.2' failed with exit status 1
----------------------------------------
The reason is that I no longer have llvm-gcc nor gcc binaries.
I tried to upgrade XCode from 3.something to 4.3.2, but it din't help. It comes as a simple app and it doesn't populate /usr/bin with llvm-gcc.
What am I doing wrong?
In Xcode 4.3's Preferences menu, select Downloads and then install Command Line Tools.
making a symlink worked for me:
sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2
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.