Меню

Make 2 sub make ошибка 2

I tried to install MADWIFI on my OpenMediaVault-Server. Any more information needed?

I get this error, every time i enter make:

root@NAS2024:/media/5703066A59887FF7/Dsys/madwifi-0.9.4# make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.32-5-amd64/build SUBDIRS=/media/5703066A59887FF7/Dsys/madwifi-0.9.4 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-5-amd64'
  CC [M]  /media/5703066A59887FF7/Dsys/madwifi-0.9.4/ath/if_ath.o
/media/5703066A59887FF7/Dsys/madwifi-0.9.4/ath/if_ath.c:1: error: bad value (armv4) for -march= switch
make[5]: *** [/media/5703066A59887FF7/Dsys/madwifi-0.9.4/ath/if_ath.o] Error 1
make[4]: *** [/media/5703066A59887FF7/Dsys/madwifi-0.9.4/ath] Error 2
make[3]: *** [_module_/media/5703066A59887FF7/Dsys/madwifi-0.9.4] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-amd64'
make: *** [modules] Fehler 2

Why has this error occured?

derobert's user avatar

derobert

105k20 gold badges229 silver badges274 bronze badges

asked May 12, 2014 at 19:20

Tomblarom's user avatar

3

Take a look at the details on how to cross compile the MadWifi drivers for other architectures. Such as in your case you’re attempting to compile for ARM4, though perhaps not intentionally.

  • http://madwifi-project.org/svn/madwifi/branches/madwifi-0.9.4/INSTALL

excerpt

Cross-compiling

The build system is designed to support cross-compiling without any
modification to the distribution files. It should be sufficient to
specify any parameters on the make command line.

In most cases, only KERNELPATH and CROSS_COMPILE need to be defined.
CROSS_COMPILE is the prefix for cross-compiling tools. For instance, if
the cross compiler is called arm-linux-gcc, set CROSS_COMPILE to
«arm-linux-«:

    $ make KERNELPATH=/usr/src/linux-arm CROSS_COMPILE=arm-linux-

The build system determines ARCH and TARGET based on the .config file in
the Linux build tree. TARGET still may need to be provided on the
command line some uncommon systems. If ARCH is determined incorrectly,
please report it.

answered May 13, 2014 at 1:57

slm's user avatar

slmslm

355k111 gold badges752 silver badges858 bronze badges

1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

Comments

@HaoYafei-leafy

g++ -Wl,-O1 -o ../../../bin/qdoc .obj/atom.o .obj/codechunk.o .obj/codemarker.o .obj/codeparser.o .obj/config.o .obj/cppcodemarker.o .obj/cppcodeparser.o .obj/ditaxmlgenerator.o .obj/doc.o .obj/editdistance.o .obj/generator.o .obj/helpprojectwriter.o .obj/htmlgenerator.o .obj/location.o .obj/main.o .obj/node.o .obj/openedlist.o .obj/plaincodemarker.o .obj/puredocparser.o .obj/qdocdatabase.o .obj/qdoctagfiles.o .obj/qdocindexfiles.o .obj/quoter.o .obj/separator.o .obj/text.o .obj/tokenizer.o .obj/tree.o .obj/yyindent.o .obj/qqmljsast.o .obj/qqmljsastvisitor.o .obj/qqmljsengine_p.o .obj/qqmljsgrammar.o .obj/qqmljslexer.o .obj/qqmljsparser.o .obj/jscodemarker.o .obj/qmlcodemarker.o .obj/qmlcodeparser.o .obj/qmlmarkupvisitor.o .obj/qmlvisitor.o -L/home/crawler/phantomjs/phantomjs-1.9.7/bin/phantomjs-master/src/qt/qtbase/lib -lQt5Xml -lQt5Core -lz -licui18n -licuuc -lm -ldl -lrt -lpthread
make[2]: Leaving directory /home/crawler/phantomjs/phantomjs-1.9.7/bin/phantomjs-master/src/qt/qtbase/src/tools/qdoc' make[1]: Leaving directory/home/crawler/phantomjs/phantomjs-1.9.7/bin/phantomjs-master/src/qt/qtbase/src’
make: *** [sub-src-make_first] Error 2

@HaoYafei-leafy

@vitallium

Could you please post a full build log?

@yurygnutov

Same for me.

$ brew install phantomjs==> Downloading https://github.com/ariya/phantomjs/archive/2.0.0.tar.gz
Already downloaded: /home/yury/.cache/Homebrew/phantomjs-2.0.0.tar.gz
==> Downloading https://gist.githubusercontent.com/mikemcquaid/db645f7cbeec4f3b1
Already downloaded: /home/yury/.cache/Homebrew/phantomjs—patch-1e723f055ef5df9a2945cbce3e70322105313f47.patch
==> Patching
patching file src/qt/qtbase/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm
patch unexpectedly ends in middle of line
==> ./build.sh —confirm —jobs 4 —qt-config -openssl-linked
/usr/bin/g++-4.8 -c -Os -w -pipe -march=core2 -O2 -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIE -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_GRAPHICSVIEW -DQT_NO_GRAPHICSEFFECT -DQT_NO_STYLESHEET -DQT_NO_STYLE_CDE -DQT_NO_STYLE_CLEANLOOKS -DQT_NO_STYLE_MOTIF -DQT_NO_STYLE_PLASTIQUE -DQT_QMLDEVTOOLS_LIB -DQDOC2_COMPAT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_XML_LIB -DQT_CORE_LIB -I../../../mkspecs/linux-g++ -I. -I. -Iqmlparser -I../../../include -I../../../include/QtXml -I../../../include/QtCore -I.moc -o .obj/qmlvisitor.o qmlvisitor.cpp
g++ -L/home/yury/.linuxbrew/lib -Wl,-rpath,/home/yury/.linuxbrew/lib -Wl,-O1 -o ../../../bin/qdoc .obj/atom.o .obj/codechunk.o .obj/codemarker.o .obj/codeparser.o .obj/config.o .obj/cppcodemarker.o .obj/cppcodeparser.o .obj/ditaxmlgenerator.o .obj/doc.o .obj/editdistance.o .obj/generator.o .obj/helpprojectwriter.o .obj/htmlgenerator.o .obj/location.o .obj/main.o .obj/node.o .obj/openedlist.o .obj/plaincodemarker.o .obj/puredocparser.o .obj/qdocdatabase.o .obj/qdoctagfiles.o .obj/qdocindexfiles.o .obj/quoter.o .obj/separator.o .obj/text.o .obj/tokenizer.o .obj/tree.o .obj/yyindent.o .obj/qqmljsast.o .obj/qqmljsastvisitor.o .obj/qqmljsengine_p.o .obj/qqmljsgrammar.o .obj/qqmljslexer.o .obj/qqmljsparser.o .obj/jscodemarker.o .obj/qmlcodemarker.o .obj/qmlcodeparser.o .obj/qmlmarkupvisitor.o .obj/qmlvisitor.o -L/tmp/phantomjs20150511-17985-1q25huu/phantomjs-2.0.0/src/qt/qtbase/lib -lQt5Xml -lQt5Core -lz -licui18n -licuuc -lm -ldl -lrt -lpthread
make[2]: Leaving directory /tmp/phantomjs20150511-17985-1q25huu/phantomjs-2.0.0/src/qt/qtbase/src/tools/qdoc' make[1]: Leaving directory/tmp/phantomjs20150511-17985-1q25huu/phantomjs-2.0.0/src/qt/qtbase/src’
make: *** [sub-src-make_first] Error 2

@josephagoss

I have a similar issue building PhantomJS 2 on Ubuntu. I am using Ubuntu inside a docker container on Cloud 9 IDE. The build log is huge, here is the end where things go wrong.

make[2]: Leaving directory `/home/ubuntu/workspace/resource/phantomjs/src/qt/qtbase/src/tools/bootstrap'
make[1]: *** [sub-bootstrap-make_first] Error 2
make[1]: *** Waiting for unfinished jobs....
rm -f libqtharfbuzzng.a
ar cqs libqtharfbuzzng.a .obj/hb-blob.o .obj/hb-buffer.o .obj/hb-buffer-serialize.o .obj/hb-common.o .obj/hb-face.o .obj/hb-font.o .obj/hb-ot-tag.o .obj/hb-set.o .obj/hb-shape.o .obj/hb-shape-plan.o .obj/hb-shaper.o .obj/hb-unicode.o .obj/hb-warning.o .obj/hb-ot-layout.o .obj/hb-ot-map.o .obj/hb-ot-shape.o .obj/hb-ot-shape-complex-arabic.o .obj/hb-ot-shape-complex-default.o .obj/hb-ot-shape-complex-hangul.o .obj/hb-ot-shape-complex-hebrew.o .obj/hb-ot-shape-complex-indic.o .obj/hb-ot-shape-complex-indic-table.o .obj/hb-ot-shape-complex-myanmar.o .obj/hb-ot-shape-complex-sea.o .obj/hb-ot-shape-complex-thai.o .obj/hb-ot-shape-complex-tibetan.o .obj/hb-ot-shape-fallback.o .obj/hb-ot-shape-normalize.o
rm -f ../../../lib/libqtharfbuzzng.a
mv -f libqtharfbuzzng.a ../../../lib/ 
make[2]: Leaving directory `/home/ubuntu/workspace/resource/phantomjs/src/qt/qtbase/src/3rdparty/harfbuzz-ng'
make[1]: Leaving directory `/home/ubuntu/workspace/resource/phantomjs/src/qt/qtbase/src'
make: *** [sub-src-make_first] Error 2

@josephagoss

I just tried again and saw this error:

g++: internal compiler error: Killed (program cc1plus)

Could this be a performance issue?

@vitallium

@josephagoss usually that means you have insufficient memory (RAM) or you encountered with a bug in GCC.
Post the full build log please.

@josephagoss

@vitallium Should I paste it here? It regards PhantomJS 2 not 1.x

@vitallium

@josephagoss you can paste it here, but if it’s long paste it to pastebin.com (or any other ‘paste’ service)

@josephagoss

Here is my log.

http://pastebin.com/EqFXtHLJ

I increased the docker container to 2gb ram and 20gb hard disk space.

EDIT:

Try this paste, http://pastebin.com/tNTM0KFs

The first one I logged to a .txt file but it seems to lose some of the commands, the link above is a dump I copy and pasted from the terminal window.

@macdonjo

I have the same issue. I have 8 GB of RAM and 90% of it is unused.

@katp4

I have the same issue too
make: *** [sub-src-make_first] Error 2

@ElkanRoelen

I fixed this by installing libjpeg-dev.
sudo apt-get install libjpeg-dev

Worked on Ubuntu 14.04.

@leesagacious

make[2]: Leaving directory `/root/downSource/qt-everywhere-opensource-src-5.2.0/qtbase/src’
make[1]: *** [sub-src-make_first] Error 2

@ghost

try check your makefile or regenerate makefile.
in my case, my system exists another compiler tool in path.
when use ide (it contains own compiler toolchains) to compile, it occurs this error.

Содержание

  1. Build Error. make fails with Error 2 #7670
  2. Comments
  3. Makefile error code 2
  4. Where can I find a list of ‘make’ error codes?
  5. 2 Answers 2
  6. Makefile:160: recipe for target ‘all’ failed make: *** [all] Error 2 #7652
  7. Comments

Build Error. make fails with Error 2 #7670

The build fails at make step with the error:

More information below.

Below error that shows in the middle of the make process, but make process continues to progress:

The make error points to line 141 of MakeFile. Clipped code from that file with line numbers as comments:

Not sure where to proceed from here. Thanks.

Edit1:
Ran again with make -d -j$(nproc) . Got the error:

Edit2:
Above seems error due to the fox library so adding below lines from CMakeCache.txt that represent fox paths:

/repos/fox-1.6.57/build/include //Path to a library. FOX_LIBRARY:FILEPATH=

The text was updated successfully, but these errors were encountered:

The errors look gtest related. The easiest workaround is to disable gtest. You can do so by setting GTEST_LIBRARY:FILEPATH= (the empty string) in your CMakeCache.txt and run make again. Did you do something to fix the missing header file error for the second run?

I experienced the same type of error, i.e. «make: *** [Makefile:141: all] Error 2». But based on the information I got from this page, i.e. «Ran again with make -d -j$(nproc)», my installation/build completed successfully. Thanks very much.

@behrisch
I tried the GTest change you had mentioned. Removed the library path from GTEST_LIBRARY:FILEPATH .
My CMakeCache.txt for relevant lines looks like:

This change is reflected when I run cmake, and now I see:
Could NOT find GTest (missing: GTEST_LIBRARY) .

But during the make -j$(nproc) , the error is:

Did you do something to fix the missing header file error for the second run?

I am not sure what you are refering to.

Update:
I was able to compile it successfully. But sumo still isn’t working.

Источник

Makefile error code 2

Here is a list of the more common errors you might see generated by make , and some information about what they mean and how to fix them.

Sometimes make errors are not fatal, especially in the presence of a — prefix on a recipe line, or the -k command line option. Errors that are fatal are prefixed with the string *** .

Error messages are all either prefixed with the name of the program (usually ‘ make ’), or, if the error is found in a makefile, the name of the file and line number containing the problem.

In the table below, these common prefixes are left off.

‘ [ foo ] Error NN ’ ‘ [ foo ] signal description ’

These errors are not really make errors at all. They mean that a program that make invoked as part of a recipe returned a non-0 error code (‘ Error NN ’), which make interprets as failure, or it exited in some other abnormal fashion (with a signal of some type). See Errors in Recipes.

If no *** is attached to the message, then the sub-process failed but the rule in the makefile was prefixed with the — special character, so make ignored the error.

‘ missing separator. Stop. ’ ‘ missing separator (did you mean TAB instead of 8 spaces?). Stop. ’

This means that make could not understand much of anything about the makefile line it just read. GNU make looks for various separators ( : , = , recipe prefix characters, etc.) to indicate what kind of line it’s parsing. This message means it couldn’t find a valid one.

One of the most common reasons for this message is that you (or perhaps your oh-so-helpful editor, as is the case with many MS-Windows editors) have attempted to indent your recipe lines with spaces instead of a tab character. In this case, make will use the second form of the error above. Remember that every line in the recipe must begin with a tab character (unless you set .RECIPEPREFIX ; see Special Variables). Eight spaces do not count. See Rule Syntax.

‘ recipe commences before first target. Stop. ’ ‘ missing rule before recipe. Stop. ’

This means the first thing in the makefile seems to be part of a recipe: it begins with a recipe prefix character and doesn’t appear to be a legal make directive (such as a variable assignment). Recipes must always be associated with a target.

The second form is generated if the line has a semicolon as the first non-whitespace character; make interprets this to mean you left out the «target: prerequisite» section of a rule. See Rule Syntax.

‘ No rule to make target ` xxx ‘. ’ ‘ No rule to make target ` xxx ‘, needed by ` yyy ‘. ’

This means that make decided it needed to build a target, but then couldn’t find any instructions in the makefile on how to do that, either explicit or implicit (including in the default rules database).

If you want that file to be built, you will need to add a rule to your makefile describing how that target can be built. Other possible sources of this problem are typos in the makefile (if that file name is wrong) or a corrupted source tree (if that file is not supposed to be built, but rather only a prerequisite).

‘ No targets specified and no makefile found. Stop. ’ ‘ No targets. Stop. ’

The former means that you didn’t provide any targets to be built on the command line, and make couldn’t find any makefiles to read in. The latter means that some makefile was found, but it didn’t contain any default goal and none was given on the command line. GNU make has nothing to do in these situations. See Arguments to Specify the Makefile.

‘ Makefile ` xxx ‘ was not found. ’ ‘ Included makefile ` xxx ‘ was not found. ’

A makefile specified on the command line (first form) or included (second form) was not found.

‘ warning: overriding recipe for target ` xxx ‘ ’ ‘ warning: ignoring old recipe for target ` xxx ‘ ’

GNU make allows only one recipe to be specified per target (except for double-colon rules). If you give a recipe for a target which already has been defined to have one, this warning is issued and the second recipe will overwrite the first. See Multiple Rules for One Target.

‘ Circular xxx yyy dependency dropped. ’

This means that make detected a loop in the dependency graph: after tracing the prerequisite yyy of target xxx , and its prerequisites, etc., one of them depended on xxx again.

‘ Recursive variable ` xxx ‘ references itself (eventually). Stop. ’

This means you’ve defined a normal (recursive) make variable xxx that, when it’s expanded, will refer to itself ( xxx ). This is not allowed; either use simply-expanded variables (‘ := ’ or ‘ ::= ’) or use the append operator (‘ += ’). See How to Use Variables.

‘ Unterminated variable reference. Stop. ’

This means you forgot to provide the proper closing parenthesis or brace in your variable or function reference.

‘ insufficient arguments to function ` xxx ‘. Stop. ’

This means you haven’t provided the requisite number of arguments for this function. See the documentation of the function for a description of its arguments. See Functions for Transforming Text.

‘ missing target pattern. Stop. ’ ‘ multiple target patterns. Stop. ’ ‘ target pattern contains no `%’. Stop. ’ ‘ mixed implicit and static pattern rules. Stop. ’

These errors are generated for malformed static pattern rules (see Syntax of Static Pattern Rules). The first means the target-pattern part of the rule is empty; the second means there are multiple pattern characters ( % ) in the target-pattern part; the third means there are no pattern characters in the target-pattern part; and the fourth means that all three parts of the static pattern rule contain pattern characters ( % )–the first part should not contain pattern characters.

If you see these errors and you aren’t trying to create a static pattern rule, check the value of any variables in your target and prerequisite lists to be sure they do not contain colons.

‘ warning: -jN forced in submake: disabling jobserver mode. ’

This warning and the next are generated if make detects error conditions related to parallel processing on systems where sub- make s can communicate (see Communicating Options to a Sub- make ). This warning is generated if a recursive invocation of a make process is forced to have ‘ -j N ’ in its argument list (where N is greater than one). This could happen, for example, if you set the MAKE environment variable to ‘ make -j2 ’. In this case, the sub- make doesn’t communicate with other make processes and will simply pretend it has two jobs of its own.

‘ warning: jobserver unavailable: using -j1. Add `+’ to parent make rule. ’

In order for make processes to communicate, the parent will pass information to the child. Since this could result in problems if the child process isn’t actually a make , the parent will only do this if it thinks the child is a make . The parent uses the normal algorithms to determine this (see How the MAKE Variable Works). If the makefile is constructed such that the parent doesn’t know the child is a make process, then the child will receive only part of the information necessary. In this case, the child will generate this warning message and proceed with its build in a sequential manner.

‘ warning: ignoring prerequisites on suffix rule definition ’

According to POSIX, a suffix rule cannot contain prerequisites. If a rule that could be a suffix rule has prerequisites it is interpreted as a simple explicit rule, with an odd target name. This requirement is obeyed when POSIX-conforming mode is enabled (the .POSIX target is defined). In versions of GNU make prior to 4.3, no warning was emitted and a suffix rule was created, however all prerequisites were ignored and were not part of the suffix rule. Starting with GNU make 4.3 the behavior is the same, and in addition this warning is generated. In a future version the POSIX-conforming behavior will be the only behavior: no rule with a prerequisite can be suffix rule and this warning will be removed.

Источник

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:

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.

2 Answers 2

The error codes aren’t from make: make is reporting the return status of the command that failed. You need to look at the documentation of each command to know what each status value means. Most commands don’t bother with distinctions other than 0 = success, anything else = failure.

In each of your examples, ./dpp cannot be executed. When this happens, the shell that tried to invoke it exits with status code 126 (this is standard behavior). The instance of make that was running that shell detects a failed command (the shell) and exits, showing you Error 126 . That instance of make is itself a command executed by a parent instance of make, and the make utility returns 2 on error, so the parent make reports Error 2 .

The failure of your build is likely to stem from test: too many arguments . This could be a syntax error in the makefile, or it could be due to relying on bash-specific features when you have a /bin/sh that isn’t bash. Try running make SHELL=/bin/bash target or make SHELL=/bin/ksh target ; if that doesn’t work, you need to fix your makefile.

Источник

Makefile:160: recipe for target ‘all’ failed make: *** [all] Error 2 #7652

STOP READING NOW

If you get the error message from the caption, because it is useless and too generic (are you sure that you build OpenCV library and not other make project?).
Reason of your build problem is somewhere above this line, you need to grab it instead.
To get right error message you should run «make» in verbose mode:

(without any -j options to prevent message lines mess)

System information (version)
  • OpenCV => 3.1
  • Operating System / Platform => Elementary OS (Loki)
  • Compiler => make
Detailed description
  • When I did just cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local .. , make -j4 worked all right«`
  • When I tried to make -j4 VERBOSE=1 with Examples and Modules, I got this error
Steps to reproduce
  • Downloaded opencv and opencv_contrib
  • Then cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=

/Programs/anaconda3/pkgs/opencv_contrib/modules -D INSTALL_C_EXAMPLES=OFF -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_IPP=OFF ..

  • Followed by make -j4 VERBOSE=1
  • First time I tried without using WITH_IPP=OFF , it reached 50% and errored out with the same error.
  • Next time I tried with it and it errored out at 23%
  • The text was updated successfully, but these errors were encountered:

    What more information should I provide? @alalek

    Detailed build log with failed command should help to reproduce problem ( make VERBOSE=1 ).

    To receive proper build log you should run make without -j4 . Current log cut doesn’t contain failed command and error message.

    @pcuci did not work. Any other alt?

    Probably there is unsupported system protobuf installation with other compiler flags ( c++11 is not used by default in OpenCV).
    Try to run with this CMake option: -DBUILD_LIBPROTOBUF_FROM_SOURCES=ON or just disable dnn module ( -DBUILD_opencv_dnn=OFF ).

    Latest code (opencv and opencv_contrib) should work fine without additional options. It just ignores system protobuf installations. You need to build from scratch (clean build directory).

    Ubuntu _16.10Similar Problem_

    [ 13%] Generating precomp.hpp.gch/opencv_highgui_Release.gch
    In file included from /usr/include/c++/6/bits/stl_algo.h:59:0,
    from /usr/include/c++/6/algorithm:62,
    from /home/jonathan/Desktop/OpenCV/modules/core/include/opencv2/core/base.hpp:55,
    from /home/jonathan/Desktop/OpenCV/modules/core/include/opencv2/core.hpp:54,
    from /home/jonathan/Desktop/OpenCV/modules/highgui/include/opencv2/highgui.hpp:46,
    from /home/jonathan/Desktop/OpenCV/build/modules/highgui/precomp.hpp:45:
    /usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
    #include_next
    ^
    compilation terminated.
    modules/highgui/CMakeFiles/pch_Generate_opencv_highgui.dir/build.make:62: recipe for target ‘modules/highgui/precomp.hpp.gch/opencv_highgui_Release.gch’ failed
    make[2]: *** [modules/highgui/precomp.hpp.gch/opencv_highgui_Release.gch] Error 1
    CMakeFiles/Makefile2:4262: recipe for target ‘modules/highgui/CMakeFiles/pch_Generate_opencv_highgui.dir/all’ failed
    make[1]: *** [modules/highgui/CMakeFiles/pch_Generate_opencv_highgui.dir/all] Error 2
    Makefile:160: recipe for target ‘all’ failed
    make: *** [all] Error 2

    Try to add «-D ENABLE_PRECOMPILED_HEADERS=OFF» option to CMake command to workaround this GCC bug with «#include_next» processing.

    It didn’t compile but i had a different error at 10% (instead of 36%)
    /usr/bin/ld: /usr/local/lib/libavcodec.a(avpacket.o): relocation R_X86_64_32 against `.rodata.str1.1′ can not be used when making a shared object; recompile with -fPIC
    /usr/local/lib/libavcodec.a: error adding symbols: Bad value
    collect2: error: ld returned 1 exit status

    I use @daveselinger repo to build since I use cuda-8

    /usr/local/lib/libavcodec.a(avpacket.o): relocation R_X86_64_32 against `.rodata.str1.1′ can not be used when making a shared object; recompile with -fPIC

    Your ffmpeg build configuration should be fixed (not related to OpenCV).

    [ 16%] Generating precomp.hpp.gch/opencv_videoio_RELEASE.gch
    In file included from /home/pi/opencv_contrib/modules/optflow/include/opencv2/optflow.hpp:70:0,
    from /home/pi/opencv_contrib/modules/optflow/src/precomp.hpp:45,
    from /home/pi/opencv_3.0/opencv-3.1.0/build/modules/optflow/opencv_optflow_pch_dephelp.cxx:1:
    /home/pi/opencv_contrib/modules/optflow/include/opencv2/optflow/sparse_matching_gpc.hpp: In member function ‘void cv::optflow::GPCPatchDescriptor::markAsSeparated()’:
    /home/pi/opencv_contrib/modules/optflow/include/opencv2/optflow/sparse_matching_gpc.hpp:73:41: error: ‘numeric_limits’ is not a member of ‘std’
    void markAsSeparated() < feature[0] = std::numeric_limits ::quiet_NaN(); >
    ^
    /home/pi/opencv_contrib/modules/optflow/include/opencv2/optflow/sparse_matching_gpc.hpp:73:62: error: expected primary-expression before ‘double’
    void markAsSeparated() < feature[0] = std::numeric_limits ::quiet_NaN(); >
    ^
    modules/optflow/CMakeFiles/opencv_optflow_pch_dephelp.dir/build.make:71: recipe for target ‘modules/optflow/CMakeFiles/opencv_optflow_pch_dephelp.dir/opencv_optflow_pch_dephelp.cxx.o’ failed
    make[2]: *** [modules/optflow/CMakeFiles/opencv_optflow_pch_dephelp.dir/opencv_optflow_pch_dephelp.cxx.o] Error 1
    CMakeFiles/Makefile2:20391: recipe for target ‘modules/optflow/CMakeFiles/opencv_optflow_pch_dephelp.dir/all’ failed
    make[1]: *** [modules/optflow/CMakeFiles/opencv_optflow_pch_dephelp.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs.
    [ 16%] Built target pch_Generate_opencv_videoio
    [ 16%] Built target pch_Generate_opencv_imgcodecs
    [ 16%] Built target pch_Generate_opencv_core
    [ 16%] Built target pch_Generate_opencv_imgproc
    Makefile:160: recipe for target ‘all’ failed
    make: *** [all] Error 2

    Are you using a virtualenv? You might want to try without the virtualenv, worked for me! 🙂

    I also got this error using Ubuntu 16.04 + Cuda 8.0 from commands cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local .. and make -j4

    Источник

    So I’m trying to run the open-source code from this research paper, but I keep getting [make] Error 2. The makefile for the code was thankfully provided so I all I did was run the make command when I was in the folder that contained the makefile.

    I’m new to all of this, I got everything from the internet, so I apologize if I’m a bit ignorant. I’m trying to learn, please be patient (:

    QuantumHoneybees-MacBook-Pro:femflip2 Joe$ make
    makeCompiling src/adaptive2.cpp ...
     In file included from src/adaptive2.cpp:13:
    ./src/kernel.h:16:20: warning: unused function 'smooth_kernel' [-Wunused-function]
        static FLOAT64 smooth_kernel( FLOAT64 r2, FLOAT64 h ) {
                       ^
    In file included from src/adaptive2.cpp:15:
    ./src/util2.h:29:13: warning: unused function 'dump' [-Wunused-function]
    static void dump( const char *format, ...) {
                ^
    ./src/util2.h:45:13: warning: unused function 'run' [-Wunused-function]
    static void run( const char *format, ...) {
                ^
    ./src/util2.h:54:20: warning: unused function 'format_str' [-Wunused-function]
    static const char *format_str( const char *format, ...) {
                       ^
    ./src/util2.h:65:13: warning: unused function 'is_nan' [-Wunused-function]
    static bool is_nan(const double v) {
                ^
    ./src/util2.h:86:17: warning: unused function 'square' [-Wunused-function]
            static FLOAT64 square(FLOAT64 a) {
                           ^
    ./src/util2.h:120:17: warning: unused function 'getSeconds' [-Wunused-function]
            static FLOAT64 getSeconds() {
                           ^
    ./src/util2.h:142:15: warning: unused function 'stretchPosition' [-Wunused-function]
            static vec2d stretchPosition( const svd2 &svd, vec2d p, FLOAT64 min, FLOAT64 max, bool inverse=true ) {
                         ^
    ./src/util2.h:162:28: warning: unused function 'marchPoints' [-Wunused-function]
            static std::vector<vec2d> marchPoints( const std::vector<vec2d> &nodes, const std::vector<FLOAT64> &levelsets, bool fill=true ) {
                                      ^
    ./src/util2.h:180:17: warning: unused function 'computeVolume' [-Wunused-function]
            static FLOAT64 computeVolume( const std::vector<vec2d> points ) {
                           ^
    ./src/util2.h:192:17: warning: unused function 'distance' [-Wunused-function]
            static FLOAT64 distance( const vec2d &p0, const vec2d &p1, vec2d &p ) {
                           ^
    ./src/util2.h:222:17: warning: unused function 'detDelaunay' [-Wunused-function]
            static FLOAT64 detDelaunay( vec2d p0, vec2d p1, vec2d p2, vec2d p3 ) {
                           ^
    src/adaptive2.cpp:53:13: warning: unused function 'sampleVelocity' [-Wunused-function]
    static bool sampleVelocity( sorter2& sorter, vec2d pos, FLOAT64 dpx, const std::vector<particle2 *> &neighbors, vec2d &vel ) {
                ^
    13 warnings generated.
    Compiling src/ann/ANN.cpp ...
    Compiling src/ann/bd_fix_rad_search.cpp ...
    Compiling src/ann/bd_pr_search.cpp ...
    Compiling src/ann/bd_search.cpp ...
    Compiling src/ann/bd_tree.cpp ...
    Compiling src/ann/brute.cpp ...
    Compiling src/ann/kd_dump.cpp ...
    src/ann/kd_dump.cpp:44:14: warning: unused variable 'EPSILON' [-Wunused-const-variable]
    const double    EPSILON                 = 1E-5; // small number for float comparison
                    ^
    1 warning generated.
    Compiling src/ann/kd_fix_rad_search.cpp ...
    Compiling src/ann/kd_pr_search.cpp ...
    Compiling src/ann/kd_search.cpp ...
    Compiling src/ann/kd_split.cpp ...
    Compiling src/ann/kd_tree.cpp ...
    Compiling src/ann/kd_util.cpp ...
    Compiling src/ann/perf.cpp ...
    Compiling src/annsorter2.cpp ...
    In file included from src/annsorter2.cpp:9:
    In file included from ./src/annsorter2.h:10:
    In file included from ./src/ann2.h:11:
    ./src/util2.h:29:13: warning: unused function 'dump' [-Wunused-function]
    static void dump( const char *format, ...) {
                ^
    ./src/util2.h:45:13: warning: unused function 'run' [-Wunused-function]
    static void run( const char *format, ...) {
                ^
    ./src/util2.h:54:20: warning: unused function 'format_str' [-Wunused-function]
    static const char *format_str( const char *format, ...) {
                       ^
    ./src/util2.h:65:13: warning: unused function 'is_nan' [-Wunused-function]
    static bool is_nan(const double v) {
                ^
    ./src/util2.h:86:17: warning: unused function 'square' [-Wunused-function]
            static FLOAT64 square(FLOAT64 a) {
                           ^
    ./src/util2.h:120:17: warning: unused function 'getSeconds' [-Wunused-function]
            static FLOAT64 getSeconds() {
                           ^
    ./src/util2.h:142:15: warning: unused function 'stretchPosition' [-Wunused-function]
            static vec2d stretchPosition( const svd2 &svd, vec2d p, FLOAT64 min, FLOAT64 max, bool inverse=true ) {
                         ^
    ./src/util2.h:162:28: warning: unused function 'marchPoints' [-Wunused-function]
            static std::vector<vec2d> marchPoints( const std::vector<vec2d> &nodes, const std::vector<FLOAT64> &levelsets, bool fill=true ) {
                                      ^
    ./src/util2.h:180:17: warning: unused function 'computeVolume' [-Wunused-function]
            static FLOAT64 computeVolume( const std::vector<vec2d> points ) {
                           ^
    ./src/util2.h:192:17: warning: unused function 'distance' [-Wunused-function]
            static FLOAT64 distance( const vec2d &p0, const vec2d &p1, vec2d &p ) {
                           ^
    ./src/util2.h:222:17: warning: unused function 'detDelaunay' [-Wunused-function]
            static FLOAT64 detDelaunay( vec2d p0, vec2d p1, vec2d p2, vec2d p3 ) {
                           ^
    
    11 warnings generated.
    make: *** [all] Error 2
    QuantumHoneybees-MacBook-Pro:femflip2 Joe$ make 
    

    Edit:: I’ve narrowed it down to the makefile in lines 36-44 there is something wrong with what is written. I unfortunately have zero experience with writing makefiles, so I don’t know how to fix it. I tried messing around with some lines’ indentation because some other threads seem to have that issue, but to no avail.

    So I’m trying to run the open-source code from this research paper, but I keep getting [make] Error 2. The makefile for the code was thankfully provided so I all I did was run the make command when I was in the folder that contained the makefile.

    I’m new to all of this, I got everything from the internet, so I apologize if I’m a bit ignorant. I’m trying to learn, please be patient (:

    QuantumHoneybees-MacBook-Pro:femflip2 Joe$ make
    makeCompiling src/adaptive2.cpp ...
     In file included from src/adaptive2.cpp:13:
    ./src/kernel.h:16:20: warning: unused function 'smooth_kernel' [-Wunused-function]
        static FLOAT64 smooth_kernel( FLOAT64 r2, FLOAT64 h ) {
                       ^
    In file included from src/adaptive2.cpp:15:
    ./src/util2.h:29:13: warning: unused function 'dump' [-Wunused-function]
    static void dump( const char *format, ...) {
                ^
    ./src/util2.h:45:13: warning: unused function 'run' [-Wunused-function]
    static void run( const char *format, ...) {
                ^
    ./src/util2.h:54:20: warning: unused function 'format_str' [-Wunused-function]
    static const char *format_str( const char *format, ...) {
                       ^
    ./src/util2.h:65:13: warning: unused function 'is_nan' [-Wunused-function]
    static bool is_nan(const double v) {
                ^
    ./src/util2.h:86:17: warning: unused function 'square' [-Wunused-function]
            static FLOAT64 square(FLOAT64 a) {
                           ^
    ./src/util2.h:120:17: warning: unused function 'getSeconds' [-Wunused-function]
            static FLOAT64 getSeconds() {
                           ^
    ./src/util2.h:142:15: warning: unused function 'stretchPosition' [-Wunused-function]
            static vec2d stretchPosition( const svd2 &svd, vec2d p, FLOAT64 min, FLOAT64 max, bool inverse=true ) {
                         ^
    ./src/util2.h:162:28: warning: unused function 'marchPoints' [-Wunused-function]
            static std::vector<vec2d> marchPoints( const std::vector<vec2d> &nodes, const std::vector<FLOAT64> &levelsets, bool fill=true ) {
                                      ^
    ./src/util2.h:180:17: warning: unused function 'computeVolume' [-Wunused-function]
            static FLOAT64 computeVolume( const std::vector<vec2d> points ) {
                           ^
    ./src/util2.h:192:17: warning: unused function 'distance' [-Wunused-function]
            static FLOAT64 distance( const vec2d &p0, const vec2d &p1, vec2d &p ) {
                           ^
    ./src/util2.h:222:17: warning: unused function 'detDelaunay' [-Wunused-function]
            static FLOAT64 detDelaunay( vec2d p0, vec2d p1, vec2d p2, vec2d p3 ) {
                           ^
    src/adaptive2.cpp:53:13: warning: unused function 'sampleVelocity' [-Wunused-function]
    static bool sampleVelocity( sorter2& sorter, vec2d pos, FLOAT64 dpx, const std::vector<particle2 *> &neighbors, vec2d &vel ) {
                ^
    13 warnings generated.
    Compiling src/ann/ANN.cpp ...
    Compiling src/ann/bd_fix_rad_search.cpp ...
    Compiling src/ann/bd_pr_search.cpp ...
    Compiling src/ann/bd_search.cpp ...
    Compiling src/ann/bd_tree.cpp ...
    Compiling src/ann/brute.cpp ...
    Compiling src/ann/kd_dump.cpp ...
    src/ann/kd_dump.cpp:44:14: warning: unused variable 'EPSILON' [-Wunused-const-variable]
    const double    EPSILON                 = 1E-5; // small number for float comparison
                    ^
    1 warning generated.
    Compiling src/ann/kd_fix_rad_search.cpp ...
    Compiling src/ann/kd_pr_search.cpp ...
    Compiling src/ann/kd_search.cpp ...
    Compiling src/ann/kd_split.cpp ...
    Compiling src/ann/kd_tree.cpp ...
    Compiling src/ann/kd_util.cpp ...
    Compiling src/ann/perf.cpp ...
    Compiling src/annsorter2.cpp ...
    In file included from src/annsorter2.cpp:9:
    In file included from ./src/annsorter2.h:10:
    In file included from ./src/ann2.h:11:
    ./src/util2.h:29:13: warning: unused function 'dump' [-Wunused-function]
    static void dump( const char *format, ...) {
                ^
    ./src/util2.h:45:13: warning: unused function 'run' [-Wunused-function]
    static void run( const char *format, ...) {
                ^
    ./src/util2.h:54:20: warning: unused function 'format_str' [-Wunused-function]
    static const char *format_str( const char *format, ...) {
                       ^
    ./src/util2.h:65:13: warning: unused function 'is_nan' [-Wunused-function]
    static bool is_nan(const double v) {
                ^
    ./src/util2.h:86:17: warning: unused function 'square' [-Wunused-function]
            static FLOAT64 square(FLOAT64 a) {
                           ^
    ./src/util2.h:120:17: warning: unused function 'getSeconds' [-Wunused-function]
            static FLOAT64 getSeconds() {
                           ^
    ./src/util2.h:142:15: warning: unused function 'stretchPosition' [-Wunused-function]
            static vec2d stretchPosition( const svd2 &svd, vec2d p, FLOAT64 min, FLOAT64 max, bool inverse=true ) {
                         ^
    ./src/util2.h:162:28: warning: unused function 'marchPoints' [-Wunused-function]
            static std::vector<vec2d> marchPoints( const std::vector<vec2d> &nodes, const std::vector<FLOAT64> &levelsets, bool fill=true ) {
                                      ^
    ./src/util2.h:180:17: warning: unused function 'computeVolume' [-Wunused-function]
            static FLOAT64 computeVolume( const std::vector<vec2d> points ) {
                           ^
    ./src/util2.h:192:17: warning: unused function 'distance' [-Wunused-function]
            static FLOAT64 distance( const vec2d &p0, const vec2d &p1, vec2d &p ) {
                           ^
    ./src/util2.h:222:17: warning: unused function 'detDelaunay' [-Wunused-function]
            static FLOAT64 detDelaunay( vec2d p0, vec2d p1, vec2d p2, vec2d p3 ) {
                           ^
    
    11 warnings generated.
    make: *** [all] Error 2
    QuantumHoneybees-MacBook-Pro:femflip2 Joe$ make 
    

    Edit:: I’ve narrowed it down to the makefile in lines 36-44 there is something wrong with what is written. I unfortunately have zero experience with writing makefiles, so I don’t know how to fix it. I tried messing around with some lines’ indentation because some other threads seem to have that issue, but to no avail.

    • Печать

    Страницы: [1]   Вниз

    Тема: ошибка Make — Error 2  (Прочитано 16784 раз)

    0 Пользователей и 1 Гость просматривают эту тему.

    Оффлайн
    perlito

    Добро всем!
    Люди добрые случаем никто не знает что за ошыбка make Error 2?

    я столкнулся с ней при использовании PAR  архиватора(Perl)

    make catalyst_par
    cp lib/BookStore/Model/DB.pm blib/lib/BookStore/Model/DB.pm
    cp lib/BookStore/Schema/Result/UserRole.pm blib/lib/BookStore/Schema/Result/UserRole.pm
    cp lib/BookStore/Schema/Result/BookAuthor.pm blib/lib/BookStore/Schema/Result/BookAuthor.pm
    cp lib/BookStore/Controller/Root.pm blib/lib/BookStore/Controller/Root.pm
    cp lib/BookStore/View/HTML.pm blib/lib/BookStore/View/HTML.pm
    cp lib/BookStore/Schema/Result/Author.pm blib/lib/BookStore/Schema/Result/Author.pm
    cp lib/BookStore/Schema/Result/User.pm blib/lib/BookStore/Schema/Result/User.pm
    cp lib/BookStore.pm blib/lib/BookStore.pm
    cp lib/BookStore/Schema/Result/Role.pm blib/lib/BookStore/Schema/Result/Role.pm
    cp lib/BookStore/Controller/Logout.pm blib/lib/BookStore/Controller/Logout.pm
    cp lib/BookStore/Controller/Login.pm blib/lib/BookStore/Controller/Login.pm
    cp lib/BookStore/Schema.pm blib/lib/BookStore/Schema.pm
    cp lib/BookStore/Schema/Result/Book.pm blib/lib/BookStore/Schema/Result/Book.pm
    cp lib/BookStore/Controller/Books.pm blib/lib/BookStore/Controller/Books.pm
    cp script/bookstore_test.pl blib/script/bookstore_test.pl
    /usr/bin/perl «-Iinc» -MExtUtils::MY -e ‘MY->fixin(shift)’ — blib/script/bookstore_test.pl
    cp script/bookstore_cgi.pl blib/script/bookstore_cgi.pl
    /usr/bin/perl «-Iinc» -MExtUtils::MY -e ‘MY->fixin(shift)’ — blib/script/bookstore_cgi.pl
    cp script/bookstore_server.pl blib/script/bookstore_server.pl
    /usr/bin/perl «-Iinc» -MExtUtils::MY -e ‘MY->fixin(shift)’ — blib/script/bookstore_server.pl
    cp script/bookstore_fastcgi.pl blib/script/bookstore_fastcgi.pl
    /usr/bin/perl «-Iinc» -MExtUtils::MY -e ‘MY->fixin(shift)’ — blib/script/bookstore_fastcgi.pl
    cp script/bookstore_create.pl blib/script/bookstore_create.pl
    /usr/bin/perl «-Iinc» -MExtUtils::MY -e ‘MY->fixin(shift)’ — blib/script/bookstore_create.pl
    Manifying blib/man1/bookstore_test.pl.1p
    Manifying blib/man1/bookstore_cgi.pl.1p
    Manifying blib/man1/bookstore_server.pl.1p
    Manifying blib/man1/bookstore_fastcgi.pl.1p
    Manifying blib/man1/bookstore_create.pl.1p
    Manifying blib/man3/BookStore::Model::DB.3pm
    Manifying blib/man3/BookStore::Schema::Result::BookAuthor.3pm
    Manifying blib/man3/BookStore::Schema::Result::UserRole.3pm
    Manifying blib/man3/BookStore::Controller::Root.3pm
    Manifying blib/man3/BookStore::Schema::Result::Author.3pm
    Manifying blib/man3/BookStore::Schema::Result::User.3pm
    Manifying blib/man3/BookStore::Schema::Result::Role.3pm
    Manifying blib/man3/BookStore.3pm
    Manifying blib/man3/BookStore::Controller::Logout.3pm
    Manifying blib/man3/BookStore::Schema::Result::Book.3pm
    Manifying blib/man3/BookStore::Controller::Login.3pm
    Manifying blib/man3/BookStore::Controller::Books.3pm
    include /home/tigran/Documents/Development/perl/BookStore/inc/Module/Install.pm
    Writing PAR «bookstore.par»
    make: *** [catalyst_par] Error 2

    « Последнее редактирование: 18 Июня 2012, 14:36:35 от tiko.svyazist »

    perlito.ru -> о perl на русском


    Оффлайн
    Yurror


    Оффлайн
    perlito

    :idiot2: Ну раз обратился сюда значит google не помог

    perlito.ru -> о perl на русском


    Оффлайн
    лесной_зонтик

    Извиняюсь, а при чем тут архиватор?

    Моя мечта поставить на комп Linux, Unix, *BSD, Mac OS X, OpenSolaris, OS/2, Windows.
    Не спрашивайте зачем. Сам не знаю ???


    Оффлайн
    perlito

    ну собственно выдается make: *** [catalyst_par] Error 2
    вот я и подумал может make притом, али нет?, может PAR или PAR::Packer? может знает кто?

    perlito.ru -> о perl на русском


    Оффлайн
    Olej

    ну собственно выдается make: *** [catalyst_par] Error 2
    вот я и подумал может make притом, али нет?, может PAR или PAR::Packer? может знает кто?

    /usr/include/asm-generic/errno-base.h

    #define ENOENT           2      /* No such file or directory */


    Оффлайн
    perlito

    Что то я не понял, по подробней можно, а то я в Ubuntu новичок

    perlito.ru -> о perl на русском


    Оффлайн
    Olej

    по подробней можно

    не можно ;)

    коды ошибок в Linux фиксированы, их определения находятся в файле, который я показал (и ещё парочка рядом для более экзотических ошибок), ваш код: «нет такого файла или каталога».

    а почему нет и какого фала в сценарии Makefile — это вам разбираться.
    потому и «не можно» ;)


    Оффлайн
    perlito

    perlito.ru -> о perl на русском


    Оффлайн
    Yurror

    tiko.svyazist, ты бы отрыл что-нибудь еще более экзотическое и просил чтобы за тебя разобрались
    Естественно всем влом что-то искать качать ставить разбираться
    А жи-ши это так просто

    задавай более конкретные вопросы. или просто найди человека который тебе это установит


    Оффлайн
    Чистый

    Удалил сообщения не касающиеся темы, помните что не для всех пользователей форума русский язык является родным! Проявите уважения!

    Тестовый репозиторий kdeNeur ppa:devcode/kdeneur
    各々が死ぬことをどのように決定する


    Оффлайн
    perlito

    perlito.ru -> о perl на русском


    • Печать

    Страницы: [1]   Вверх

    I try to build some rom and I got this error. Do you know what directory makes this error?

      CC      net/ipv4/netfilter/iptable_raw.o
      CC      net/ipv4/netfilter/ipt_ah.o
      CC      net/ipv4/netfilter/ipt_MASQUERADE.o
      CC      net/ipv4/netfilter/ipt_NETMAP.o
      CC      net/ipv4/netfilter/ipt_REDIRECT.o
      CC      net/ipv4/netfilter/ipt_REJECT.o
      CC      net/ipv4/netfilter/arp_tables.o
      CC      net/ipv4/netfilter/arpt_mangle.o
      CC      net/ipv4/netfilter/arptable_filter.o
      LD      net/ipv4/netfilter/nf_conntrack_ipv4.o
      LD      net/ipv4/netfilter/nf_nat.o
    target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/code-factory.cc
    target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/code-stubs.cc
    target thumb C++: v8_tools_gyp_v8_base_gyp <= external/chromium_org/v8/src/code-stubs-hydrogen.cc
      LD      net/ipv4/netfilter/built-in.o
      LD      net/ipv4/built-in.o
      LD      net/built-in.o
    make[1]: *** [sub-make] error 2
    make[1]: Leaving directory `/home/fe/android/aoso/kernel/lge/gproj'
    make: *** [TARGET_KERNEL_BINARIES] error 2
    make: *** Waiting for unfinished jobs....
    
    #### make failed to build some targets (57:23 (mm:ss)) ####
    

    Terrance's user avatar

    Terrance

    38.1k7 gold badges111 silver badges171 bronze badges

    asked Aug 7, 2015 at 23:21

    장민엽's user avatar

    Hello everyone, I’m new to qt embedded and I have problem with make command.

    I have an ARM-based (Rockchip RK3288, ARM Cortex-A17 CPU, Mali-T760 MP4 (T764) GPU)motherboard and I want to cross-compile using it. I use Debian 9 as the operating system on this card, and I use Ubuntu 21.04 on the host PC.

    I used this commands:

    ./configure -static -release -opengl es2 -device linux-jetway-arm-g++ -device-option CROSS_COMPILE=~/linaro/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -no-eglfs -sysroot ~/linaro/sysroot -opensource -confirm-license -prefix /usr/local/qt5li -extprefix ~/linaro/qt5li -hostprefix ~/linaro/qt5 -opensource -confirm-license -skip qtscript -skip qtwayland -skip qtlocation -no-gbm -nomake examples -nomake tests -make libs -pkg-config -no-use-gold-linker -v
    

    My configure command works and I get no errors. Then when I run the make -j4 command I get the following error.

    make[2]: Leaving directory '/home/buket/linaro/qt-everywhere-src-5.12.2/qtbase/src/gui'
    make[1]: Leaving directory '/home/buket/linaro/qt-everywhere-src-5.12.2/qtbase/src'
    make: *** [Makefile:51: sub-src-make_first] Error 2
    

    Edit 1:

    /home/buket/linaro/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include/c++/7.5.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
     #include_next <stdlib.h>
                   ^~~~~~~~~~
    compilation terminated.
    make[2]: *** [Makefile:1677: .pch/Qt5Core.gch/c++] Error 1
    make[2]: *** Waiting for unfinished jobs....
    make[2]: Leaving directory '/home/buket/linaro/qtbase/src/corelib'
    make[1]: *** [Makefile:227: sub-corelib-make_first] Error 2
    make[1]: Leaving directory '/home/buket/linaro/qtbase/src'
    make: *** [Makefile:51: sub-src-make_first] Error 2
    

    I also ran the make install command because I thought it wouldn’t cause any problems and this time I got the errors below.

    make[2]: *** [Makefile:28838: .obj/qsslsocket_opensslpre11.o] Error 1
    make[2]: Leaving directory '/home/buket/linaro/qt-everywhere-src-5.12.2/qtbase/src/network'
    make[1]: *** [Makefile:289: sub-network-install_subtargets] Error 2
    make[1]: Leaving directory '/home/buket/linaro/qt-everywhere-src-5.12.2/qtbase/src'
    make: *** [Makefile:63: sub-src-install_subtargets] Error 2
    

    My qmake.conf file:

    #
    # Generic qmake configuration for building with g++ on arm devices.
    #
    # A minimal configure line could look something like this:
    # ./configure -device arm-generic-g++ -device-option CROSS_COMPILE=arm-linux-gnueabi-
    
    include(../common/linux_device_pre.conf)
    QMAKE_INCDIR_POST += 
    	$$[QT_SYSROOT]/usr/include 
    	$$[QT_SYSROOT]/usr/include/arm-linux-gnueabihf
    	
    QMAKE_LIBDIR_POST += 
    	$$[QT_SYSROOT]/usr/lib 
    	$$[QT_SYSROOT]/lib/arm-linux-gnueabihf
    	$$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf
    	
    QMAKE_RPATHLINKDIR_POST += 
    	$$[QT_SYSROOT]/usr/lib 
    	$$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf 
    	$$[QT_SYSROOT]/lib/arm-linux-gnueabihf
    	
    QMAKE_INCDIR_EGL = $$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf/qt5/plugins/egldeviceintegrations
    
    
    
    DISTRO_OPTS     		+= hard-float
    COMPILER_FLAGS			+= -mtune=cortex-a17 -march=armv7-a -mfpu=vfpv3-d16 
    
    EGLFS_DEVICE_INTEGRATION = none
    
    
    include(../common/linux_arm_device_post.conf)
    load(qt_config)
    

    I think there is a problem with my qmake.conf file as I had to edit it myself. Although I made changes in my configure command, the result did not change and since the motherboard I use is not a common card, I can only research according to its processor. How can I run the make command without getting an error?

    0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии

    А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Majesty 2 ошибка оборотня
  • Maintenance ошибка рено магнум