Linux make ошибка 2

make: *** [all] Error 2 Install gr ieee802-11

Sorry, you should edit your question and not my answer. And you should run cmake .. with the two dots at the end.

Guy, ok, remove the folder gr-ieee802-11 with rm -r ~/gr-ieee802-11 and start again. Follow each step in my answer in the section All steps at once . Line by line

1 Answer 1

To understand this answer, please read the entire revision history of OPs question.

Follow ALL steps and not only what you think 😉

Before you can start make …

    Install the following packages

sudo apt-get install swig sudo apt-get install libboost-all-dev sudo apt-get install cmake-data sudo apt-get install liblog4cpp5-dev sudo apt-get install libitpp-dev sudo apt-get install libcppunit-dev sudo apt-get install gnuradio-dev 
cd sudo apt-get install swig sudo apt-get install libboost-all-dev sudo apt-get install cmake-data sudo apt-get install liblog4cpp5-dev sudo apt-get install libitpp-dev sudo apt-get install libcppunit-dev sudo apt-get install gnuradio-dev git clone git://github.com/bastibl/gr-ieee802-11.git cd gr-ieee802-11 mkdir build cd build cmake .. make sudo make install sudo ldconfig 
[gr-ieee802-11/build] master ± make Scanning dependencies of target ieee802_11_generated_includes [ 3%] Generating moving_average_ff.h, moving_average_cc.h [ 3%] Built target ieee802_11_generated_includes Scanning dependencies of target ieee802_11_generated_sources [ 7%] Generating moving_average_cc_impl.cc, moving_average_ff_impl.cc [ 7%] Built target ieee802_11_generated_sources [ 10%] Generating moving_average_cc_impl.h, moving_average_ff_impl.h Scanning dependencies of target gnuradio-ieee802_11 [ 14%] Building CXX object lib/CMakeFiles/gnuradio-ieee802_11.dir/moving_average_cc_impl.cc.o [ 17%] Building CXX object lib/CMakeFiles/gnuradio-ieee802_11.dir/moving_average_ff_impl.cc.o [ 21%] Building CXX object lib/CMakeFiles/gnuradio-ieee802_11.dir/equalizer/linear_comb.cc.o [ 25%] Building CXX object lib/CMakeFiles/gnuradio-ieee802_11.dir/equalizer/lms.cc.o [ 28%] Building CXX object lib/CMakeFiles/gnuradio-ieee802_11.dir/chunks_to_symbols_impl.cc.o [ 32%] Building CXX object lib/CMakeFiles/gnuradio-ieee802_11.dir/ether_encap_impl.cc.o [ 35%] Building CXX object lib/CMakeFiles/gnuradio-ieee802_11.dir/ofdm_decode_mac.cc.o [ 39%] Building CXX object lib/CMakeFiles/gnuradio-ieee802_11.dir/ofdm_decode_signal.cc.o [ 42%] Building CXX object lib/CMakeFiles/gnuradio-ieee802_11.dir/ofdm_equalize_symbols.cc.o [ 46%] Building CXX object lib/CMakeFiles/gnuradio-ieee802_11.dir/ofdm_mac.cc.o [ 50%] Building CXX object lib/CMakeFiles/gnuradio-ieee802_11.dir/ofdm_mapper.cc.o [ 53%] Building CXX object lib/CMakeFiles/gnuradio-ieee802_11.dir/ofdm_parse_mac.cc.o [ 57%] Building CXX object lib/CMakeFiles/gnuradio-ieee802_11.dir/ofdm_sync_long.cc.o [ 60%] Building CXX object lib/CMakeFiles/gnuradio-ieee802_11.dir/ofdm_sync_short.cc.o [ 64%] Building CXX object lib/CMakeFiles/gnuradio-ieee802_11.dir/utils.cc.o [ 67%] Building CXX object lib/CMakeFiles/gnuradio-ieee802_11.dir/wifi_signal_field_impl.cc.o Linking CXX shared library libgnuradio-ieee802_11.so [ 71%] Built target gnuradio-ieee802_11 Scanning dependencies of target ieee802_11_swig_swig_doc [ 71%] Built target ieee802_11_swig_swig_doc Scanning dependencies of target _ieee802_11_swig_swig_tag [ 75%] Building CXX object swig/CMakeFiles/_ieee802_11_swig_swig_tag.dir/_ieee802_11_swig_swig_tag.cpp.o Linking CXX executable _ieee802_11_swig_swig_tag [ 75%] Built target _ieee802_11_swig_swig_tag [ 78%] Generating ieee802_11_swig.tag Scanning dependencies of target ieee802_11_swig_swig_2d0df [ 82%] Building CXX object swig/CMakeFiles/ieee802_11_swig_swig_2d0df.dir/ieee802_11_swig_swig_2d0df.cpp.o Linking CXX executable ieee802_11_swig_swig_2d0df Swig source [ 82%] Built target ieee802_11_swig_swig_2d0df Scanning dependencies of target _ieee802_11_swig [ 85%] Building CXX object swig/CMakeFiles/_ieee802_11_swig.dir/ieee802_11_swigPYTHON_wrap.cxx.o Linking CXX shared module _ieee802_11_swig.so [ 85%] Built target _ieee802_11_swig Scanning dependencies of target pygen_swig_af2e9 [ 89%] Generating ieee802_11_swig.pyc [ 92%] Generating ieee802_11_swig.pyo [ 92%] Built target pygen_swig_af2e9 Scanning dependencies of target pygen_python_02efc [ 96%] Generating __init__.pyc [100%] Generating __init__.pyo [100%] Built target pygen_python_02efc 

Источник

Читайте также:  Как установить alsa linux

make: *** [all] Error 2 while make

Trying to Build and Install the Apache Thrift compiler and libraries — ./configure && make But then I get make error which I don’t seem to understand where it fails.

thrift 0.9.3 Building C++ Library . : no Building C (GLib) Library . : no Building Java Library . : no Building C# Library . : no Building Python Library . : no Building Ruby Library . : no Building Haxe Library . : no Building Haskell Library . : no Building Perl Library . : no Building PHP Library . : no Building Erlang Library . : no Building Go Library . : no Building D Library . : no Building NodeJS Library . : no Building Lua Library . : no If something is missing that you think should be present, please skim the output of configure to find the missing component. Details are present in config.log. make all-recursive make[1]: Entering directory '/c/University/InternetOfThings/thrift-0.9.3' Making all in compiler/cpp make[2]: Entering directory '/c/University/InternetOfThings/thrift-0.9.3/compile r/cpp' make all-am make[3]: Entering directory '/c/University/InternetOfThings/thrift-0.9.3/compile r/cpp' g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I./src -Wall -Wno- sign-compare -Wno-unused -g -O2 -std=c++11 -MT src/libparse_a-thrifty.o -MD -MP -MF src/.deps/libparse_a-thrifty.Tpo -c -o src/libparse_a-thrifty.o `test -f 'sr c/thrifty.cc' || echo './'`src/thrifty.cc src/thrifty.yy: In function 'int yyparse()': src/thrifty.yy:1309:30: error: 'strdup' was not declared in this scope Makefile:912: recipe for target 'src/libparse_a-thrifty.o' failed make[3]: *** [src/libparse_a-thrifty.o] Error 1 make[3]: Leaving directory '/c/University/InternetOfThings/thrift-0.9.3/compiler /cpp' Makefile:588: recipe for target 'all' failed make[2]: *** [all] Error 2 make[2]: Leaving directory '/c/University/InternetOfThings/thrift-0.9.3/compiler /cpp' Makefile:609: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/c/University/InternetOfThings/thrift-0.9.3' Makefile:530: recipe for target 'all' failed make: *** [all] Error 2 

Источник

Building GCC make: *** [all] Error 2

I am trying to set up a cross-compiler for i686-elf on Ubuntu following the OSDev GCC Cross-Compiler Tutuorial. However, the code to set up GCC fails to build every time. I know my sources are not out of date because I sudo apt-get update ‘d before doing anything. In order to get the packages I needed, I did:

sudo apt-get install g++ sudo apt-get install make sudo apt-get install bison sudo apt-get install flex sudo apt-get install libgmp3-dev sudo apt-get install libmpfr-dev libmpfr-doc libmpfr4 libmpfr4-dbg sudo apt-get install mpc sudo apt-get install texinfo sudo apt-get install libcloog-isl-dev 

I think there is no problem with that method? Then, with gcc-5.2.0 and binutils-2.25.1 (in ubuntu, bintuils appears to not work with anything above that old version) I installed binutils just fine. I went to build gcc but when I typed in make, I got the following error: Unfortunately, I can’t copy+paste 30 pages in, but this all the code near the end:

checking command to parse nm output from gcc -m32 object. failed checking how to run the C preprocessor. /lib/cpp checking for ANSI C header files. no checking for sys/types.h. no checking for sys/stat.h. no checking for stdlib.h. no checking for string.h. no checking for memory.h. no checking for strings.h. no checking for inttypes.h. no checking for stdint.h. no checking for unistd.h. no checking for dlfcn.h. no checking for objdir. .libs checking if gcc -m32 supports -fno-rtti -fno-exceptions. no checking for gcc -m32 option to produce PIC. -fPIC -DPIC checking if gcc -m32 PIC flag -fPIC -DPIC works. yes checking if gcc -m32 static flag -static works. no checking if gcc -m32 supports -c -o file.o. yes checking if gcc -m32 supports -c -o file.o. (cached) yes checking whether the gcc -m32 linker (ld -m elf_x86_64 -m elf_i386) supports shared libraries. yes checking whether -lc should be explicitly linked in. no checking dynamic linker characteristics. configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. Makefile:9590: recipe for target 'configure-zlib' failed make[1]: *** [configure-zlib] Error 1 make[1]: Leaving directory '/home/david/scr' Makefile:876: recipe for target 'all' failed make: *** [all] Error 2 
checking dynamic linker characteristics. configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. Makefile:9590: recipe for target 'configure-zlib' failed make[1]: *** [configure-zlib] Error 1 make[1]: Leaving directory '/home/david/scr' Makefile:876: recipe for target 'all' failed make: *** [all] Error 2 

Источник

Читайте также:  Astra linux архитектура i386

Where can I find a list of ‘make’ error codes?

I am trying to compile a program written in Fortran using make (I have a Makefile and, while in the directory containing the Makefile, I type the command $ make target , where «target» is a system-specific target specification is present in my Makefile. As I experiment with various revisions of my target specification, I often get a variety of error messages when attempting to call make . To give a few examples:

make[1]: Entering directory /bin/sh: line 0: test: too many arguments ./dpp angfrc.f > angfrc.tmp.f /bin/sh: ./dpp: Permission denied make[1]: *** [angfrc.o] Error 126 make[1]: Leaving directory make: *** [cmu60] Error 2 
make[1]: Entering directory /bin/sh: line 0: test: too many arguments ./dpp -DSTRESS -DMPI -P -D'pointer=integer'-I/opt/mpich_intel/include angfrc.f > angfrc.tmp.f /bin/sh: ./dpp: Permission denied make[1]: *** [angfrc.o] Error 126 make[1]: Leaving directory make: *** [mpich-c2] Error 2 
make[1]: Entering directory /bin/sh: line 0: test: too many arguments ./dpp -DSTRESS -DMPI -P -D'pointer=integer' -I/opt/mpich_intel/include angfrc.f > angfrc.tmp.f /bin/sh: ./dpp: Permission denied make[1]: *** [angfrc.o] Error 126 make[1]: Leaving directory make: *** [mpi-intel] Error 2 

Do you know how I can find a list of what the error codes, such as «Error 126» and «Error 2,» mean? I found this thread on another website, but I am not sure what the reply means. Does it mean that there is no system-independent meaning of the make error codes? Can you please help me? Thank you.

Источник

Оцените статью
Adblock
detector