Skip to content
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

/usr/bin/ld: cannot open output file shiboken: Is a directory #85

Open
egberts opened this issue Jul 27, 2017 · 4 comments
Open

/usr/bin/ld: cannot open output file shiboken: Is a directory #85

egberts opened this issue Jul 27, 2017 · 4 comments

Comments

@egberts
Copy link

egberts commented Jul 27, 2017

Debian 8, CentOS 6.0, and Fedora 25

I cannot make cmake work for a Unix platform when I executed the following:

git clone https://github.com/pyside/Shiboken.git
cd shiboken
mkdir build
cd build
cmake ../CMakeLists.txt
cd ..
make 

I get the following error message:
/usr/bin/ld: cannot open output file shiboken: Is a directory

@egberts
Copy link
Author

egberts commented Jul 27, 2017

I was able to work around it when I executed the last link command by modifying the -o shiboken into -o shiboken.bin.

@egberts
Copy link
Author

egberts commented Jul 27, 2017

Same error message when using cmake 2.8 or cmake v3.

@nottux
Copy link

nottux commented Dec 7, 2017

do you mean shiboken-1.2.2/generator/CMakeFiles/shiboken.dir/link.txt file?

after modifying -o shiboken into -o shiboken.bin

utku@clr-449e9b2a44f8458bb4885604dc172a1c ~/Programlar/Shiboken $ make -j4
[  0%] Generating qrc_generator.cxx
Scanning dependencies of target libminimal
Scanning dependencies of target libshiboken
Scanning dependencies of target libsample
[  0%] Building CXX object tests/libminimal/CMakeFiles/libminimal.dir/obj.cpp.o
Scanning dependencies of target apiextractor
[  0%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/abstract.cpp.o
[  0%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/basewrapper.cpp.o
[  1%] Building CXX object tests/libminimal/CMakeFiles/libminimal.dir/listuser.cpp.o
In file included from /home/utku/Programlar/Shiboken/tests/libminimal/listuser.h:29:0,
                 from /home/utku/Programlar/Shiboken/tests/libminimal/listuser.cpp:25:
/home/utku/Programlar/Shiboken/tests/libminimal/minbool.h: In function ‘bool operator==(MinBool, MinBool)’:
/home/utku/Programlar/Shiboken/tests/libminimal/minbool.h:44:61: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
 inline bool operator==(MinBool b1, MinBool b2) { return !b1 == !b2; }
                                                             ^
/home/utku/Programlar/Shiboken/tests/libminimal/minbool.h: In function ‘bool operator!=(MinBool, MinBool)’:
/home/utku/Programlar/Shiboken/tests/libminimal/minbool.h:47:61: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
 inline bool operator!=(MinBool b1, MinBool b2) { return !b1 != !b2; }
                                                             ^
[  1%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/apiextractor.cpp.o
[  1%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/blackbox.cpp.o
[  1%] Building CXX object tests/libminimal/CMakeFiles/libminimal.dir/typedef.cpp.o
[  1%] Linking CXX shared library libminimal.so
[  1%] Built target libminimal
[  2%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/debugfreehook.cpp.o
[  3%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/bytearray.cpp.o
[  3%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/gilstate.cpp.o
[  3%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/helper.cpp.o
[  3%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/bucket.cpp.o
[  4%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/sbkconverter.cpp.o
[  4%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/collector.cpp.o
[  4%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/sbkenum.cpp.o
[  4%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/complex.cpp.o
[  5%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/onlycopy.cpp.o
[  5%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/derived.cpp.o
[  5%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/sbkmodule.cpp.o
[  5%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/echo.cpp.o
[  5%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/sbkstring.cpp.o
[  6%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/functions.cpp.o
In file included from /home/utku/Programlar/Shiboken/tests/libsample/functions.h:29:0,
                 from /home/utku/Programlar/Shiboken/tests/libsample/functions.cpp:23:
/home/utku/Programlar/Shiboken/tests/libsample/oddbool.h: In function ‘bool operator==(OddBool, OddBool)’:
/home/utku/Programlar/Shiboken/tests/libsample/oddbool.h:43:61: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
 inline bool operator==(OddBool b1, OddBool b2) { return !b1 == !b2; }
                                                             ^
/home/utku/Programlar/Shiboken/tests/libsample/oddbool.h: In function ‘bool operator!=(OddBool, OddBool)’:
/home/utku/Programlar/Shiboken/tests/libsample/oddbool.h:46:61: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
 inline bool operator!=(OddBool b1, OddBool b2) { return !b1 != !b2; }
                                                             ^
[  7%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/bindingmanager.cpp.o
[  7%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/handle.cpp.o
[  7%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/implicitconv.cpp.o
[  7%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/threadstatesaver.cpp.o
[  7%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/injectcode.cpp.o
[  7%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/typeresolver.cpp.o
[  8%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/listuser.cpp.o
[  8%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/modifications.cpp.o
[  9%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/shibokenbuffer.cpp.o
In file included from /home/utku/Programlar/Shiboken/tests/libsample/modifications.h:29:0,
                 from /home/utku/Programlar/Shiboken/tests/libsample/modifications.cpp:24:
/home/utku/Programlar/Shiboken/tests/libsample/oddbool.h: In function ‘bool operator==(OddBool, OddBool)’:
/home/utku/Programlar/Shiboken/tests/libsample/oddbool.h:43:61: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
 inline bool operator==(OddBool b1, OddBool b2) { return !b1 == !b2; }
                                                             ^
/home/utku/Programlar/Shiboken/tests/libsample/oddbool.h: In function ‘bool operator!=(OddBool, OddBool)’:
/home/utku/Programlar/Shiboken/tests/libsample/oddbool.h:46:61: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
 inline bool operator!=(OddBool b1, OddBool b2) { return !b1 != !b2; }
                                                             ^
[  9%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/mapuser.cpp.o
[  9%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/abstractmetabuilder.cpp.o
[  9%] Linking CXX shared library libshiboken-python2.7.so
[  9%] Built target libshiboken
[ 10%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/modified_constructor.cpp.o
[ 10%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/multiple_derived.cpp.o
[ 10%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/objectmodel.cpp.o
[ 10%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/objecttype.cpp.o
[ 11%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/objecttypeholder.cpp.o
[ 11%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/objecttypelayout.cpp.o
/home/utku/Programlar/Shiboken/tests/libsample/objecttype.cpp: In member function ‘void ObjectType::callVirtualCreateChild()’:
/home/utku/Programlar/Shiboken/tests/libsample/objecttype.cpp:277:17: warning: unused variable ‘fake_child’ [-Wunused-variable]
     ObjectType* fake_child = createChild(fake_parent);
                 ^
[ 11%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/objecttypeoperators.cpp.o
[ 12%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/objectview.cpp.o
[ 12%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/overload.cpp.o
[ 12%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/overloadsort.cpp.o
[ 12%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/pairuser.cpp.o
[ 13%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/pen.cpp.o
[ 13%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/photon.cpp.o
[ 14%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/abstractmetalang.cpp.o
[ 14%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/point.cpp.o
[ 15%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/pointf.cpp.o
[ 15%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/polygon.cpp.o
[ 15%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/protected.cpp.o
[ 15%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/reference.cpp.o
[ 16%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/sample.cpp.o
[ 16%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/samplenamespace.cpp.o
[ 16%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/sbkdate.cpp.o
[ 17%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/simplefile.cpp.o
[ 17%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/size.cpp.o
[ 17%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/sometime.cpp.o
[ 17%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/str.cpp.o
[ 18%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/strlist.cpp.o
[ 18%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/transform.cpp.o
[ 18%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/virtualmethods.cpp.o
[ 19%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/expression.cpp.o
[ 19%] Building CXX object tests/libsample/CMakeFiles/libsample.dir/filter.cpp.o
[ 19%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/asttoxml.cpp.o
[ 19%] Linking CXX shared library libsample.so
[ 19%] Built target libsample
Scanning dependencies of target libother
[ 20%] Building CXX object tests/libother/CMakeFiles/libother.dir/number.cpp.o
[ 20%] Building CXX object tests/libother/CMakeFiles/libother.dir/otherderived.cpp.o
[ 20%] Building CXX object tests/libother/CMakeFiles/libother.dir/otherobjecttype.cpp.o
[ 20%] Building CXX object tests/libother/CMakeFiles/libother.dir/othermultiplederived.cpp.o
[ 21%] Linking CXX shared library libother.so
[ 21%] Built target libother
[ 21%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/fileout.cpp.o
[ 22%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/graph.cpp.o
[ 22%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/reporthandler.cpp.o
[ 22%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/typeparser.cpp.o
[ 22%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/typesystem.cpp.o
[ 23%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/include.cpp.o
[ 23%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/typedatabase.cpp.o
[ 23%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/ast.cpp.o
[ 24%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/binder.cpp.o
[ 24%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/class_compiler.cpp.o
[ 24%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/codemodel.cpp.o
[ 24%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/codemodel_finder.cpp.o
[ 25%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/compiler_utils.cpp.o
[ 25%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/control.cpp.o
[ 25%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/declarator_compiler.cpp.o
/home/utku/Programlar/Shiboken/ApiExtractor/parser/declarator_compiler.cpp:109:2: warning: #warning "ptr to mem -- not implemented" [-Wcpp]
 #warning "ptr to mem -- not implemented"
  ^
[ 26%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/default_visitor.cpp.o
[ 26%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/dumptree.cpp.o
[ 26%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/lexer.cpp.o
[ 26%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/list.cpp.o
[ 27%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/name_compiler.cpp.o
/home/utku/Programlar/Shiboken/ApiExtractor/parser/name_compiler.cpp:65:2: warning: #warning "NameCompiler::visitUnqualifiedName() -- implement me" [-Wcpp]
 #warning "NameCompiler::visitUnqualifiedName() -- implement me"
  ^
/home/utku/Programlar/Shiboken/ApiExtractor/parser/name_compiler.cpp:75:2: warning: #warning "don't use an hardcoded string as cast' name" [-Wcpp]
 #warning "don't use an hardcoded string as cast' name"
  ^
[ 27%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/parser.cpp.o
/home/utku/Programlar/Shiboken/ApiExtractor/parser/lexer.cpp: In member function ‘void LocationManager::positionAt(std::size_t, int*, int*, QString*) const’:
/home/utku/Programlar/Shiboken/ApiExtractor/parser/lexer.cpp:87:9: warning: ‘ppline’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     int ppline, ppcolumn;
         ^
/home/utku/Programlar/Shiboken/ApiExtractor/parser/lexer.cpp:97:31: warning: ‘line2’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     *line = base_line + *line - line2  - 1;
                               ^
/home/utku/Programlar/Shiboken/ApiExtractor/parser/parser.cpp:733:2: warning: #warning "implement me" [-Wcpp]
 #warning "implement me"
  ^
/home/utku/Programlar/Shiboken/ApiExtractor/parser/parser.cpp:2120:2: warning: #warning "implement me" [-Wcpp]
 #warning "implement me"
  ^
/home/utku/Programlar/Shiboken/ApiExtractor/parser/parser.cpp:2140:2: warning: #warning "implemente me (AST)" [-Wcpp]
 #warning "implemente me (AST)"
  ^
/home/utku/Programlar/Shiboken/ApiExtractor/parser/parser.cpp:2297:2: warning: #warning "implement me" [-Wcpp]
 #warning "implement me"
  ^
/home/utku/Programlar/Shiboken/ApiExtractor/parser/parser.cpp:2305:2: warning: #warning "implement me" [-Wcpp]
 #warning "implement me"
  ^
/home/utku/Programlar/Shiboken/ApiExtractor/parser/parser.cpp:2900:2: warning: #warning "mark the ast as constant" [-Wcpp]
 #warning "mark the ast as constant"
  ^
/home/utku/Programlar/Shiboken/ApiExtractor/parser/parser.cpp:2990:2: warning: #warning "Parser::skipFunctionBody() -- implement me" [-Wcpp]
 #warning "Parser::skipFunctionBody() -- implement me"
  ^
/home/utku/Programlar/Shiboken/ApiExtractor/parser/parser.cpp:3019:2: warning: #warning "implement me" [-Wcpp]
 #warning "implement me"
  ^
/home/utku/Programlar/Shiboken/ApiExtractor/parser/lexer.cpp: In member function ‘void Lexer::reportError(const QString&)’:
/home/utku/Programlar/Shiboken/ApiExtractor/parser/lexer.cpp:87:9: warning: ‘ppline’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     int ppline, ppcolumn;
         ^
/home/utku/Programlar/Shiboken/ApiExtractor/parser/lexer.cpp:97:31: warning: ‘line2’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     *line = base_line + *line - line2  - 1;
                               ^
/home/utku/Programlar/Shiboken/ApiExtractor/parser/lexer.cpp:93:9: note: ‘line2’ was declared here
     int line2, column2;
         ^
In file included from /home/utku/Programlar/Shiboken/ApiExtractor/parser/lexer.cpp:28:0:
/home/utku/Programlar/Shiboken/ApiExtractor/parser/control.h:81:31: warning: ‘column’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             _M_column = column;
                               ^
/home/utku/Programlar/Shiboken/ApiExtractor/parser/lexer.cpp:147:15: note: ‘column’ was declared here
     int line, column;
               ^
/home/utku/Programlar/Shiboken/ApiExtractor/parser/lexer.cpp:97:23: warning: ‘line’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     *line = base_line + *line - line2  - 1;
                       ^
/home/utku/Programlar/Shiboken/ApiExtractor/parser/lexer.cpp:147:9: note: ‘line’ was declared here
     int line, column;
         ^
[ 27%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/smallobject.cpp.o
[ 28%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/tokens.cpp.o
[ 28%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/type_compiler.cpp.o
[ 28%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/visitor.cpp.o
[ 28%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/rpp/builtin-macros.cpp.o
[ 29%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/parser/rpp/preprocessor.cpp.o
[ 29%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/docparser.cpp.o
[ 29%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/doxygenparser.cpp.o
[ 30%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/qtdocparser.cpp.o
[ 30%] Building CXX object ApiExtractor/CMakeFiles/apiextractor.dir/qrc_generator.cxx.o
[ 30%] Linking CXX static library ../tests/libapiextractor.a
[ 30%] Built target apiextractor
[ 31%] Generating testvaluetypedefaultctortag.moc
[ 31%] Generating testmodifydocumentation.moc
[ 31%] Generating testvoidarg.moc
[ 31%] Generating testtyperevision.moc
Scanning dependencies of target testvoidarg
Scanning dependencies of target testtyperevision
Scanning dependencies of target testmodifydocumentation
Scanning dependencies of target testvaluetypedefaultctortag
[ 31%] Building CXX object ApiExtractor/tests/CMakeFiles/testvoidarg.dir/testvoidarg.cpp.o
[ 31%] Building CXX object ApiExtractor/tests/CMakeFiles/testmodifydocumentation.dir/testmodifydocumentation.cpp.o
[ 32%] Building CXX object ApiExtractor/tests/CMakeFiles/testtyperevision.dir/testtyperevision.cpp.o
[ 32%] Building CXX object ApiExtractor/tests/CMakeFiles/testvaluetypedefaultctortag.dir/testvaluetypedefaultctortag.cpp.o
[ 33%] Linking CXX executable testvaluetypedefaultctortag
[ 33%] Linking CXX executable testtyperevision
[ 34%] Linking CXX executable testvoidarg
[ 34%] Linking CXX executable testmodifydocumentation
[ 34%] Built target testvaluetypedefaultctortag
[ 35%] Generating testtemplates.moc
[ 35%] Built target testtyperevision
[ 35%] Generating testtoposort.moc
Scanning dependencies of target testtemplates
Scanning dependencies of target testtoposort
[ 35%] Building CXX object ApiExtractor/tests/CMakeFiles/testtemplates.dir/testtemplates.cpp.o
[ 36%] Building CXX object ApiExtractor/tests/CMakeFiles/testtoposort.dir/testtoposort.cpp.o
[ 36%] Built target testvoidarg
[ 36%] Generating testresolvetype.moc
[ 36%] Built target testmodifydocumentation
[ 36%] Generating testreferencetopointer.moc
Scanning dependencies of target testresolvetype
Scanning dependencies of target testreferencetopointer
[ 36%] Building CXX object ApiExtractor/tests/CMakeFiles/testresolvetype.dir/testresolvetype.cpp.o
[ 37%] Building CXX object ApiExtractor/tests/CMakeFiles/testreferencetopointer.dir/testreferencetopointer.cpp.o
[ 37%] Linking CXX executable testtoposort
[ 37%] Built target testtoposort
[ 38%] Generating testrefcounttag.moc
Scanning dependencies of target testrefcounttag
[ 38%] Building CXX object ApiExtractor/tests/CMakeFiles/testrefcounttag.dir/testrefcounttag.cpp.o
[ 38%] Linking CXX executable testresolvetype
[ 38%] Linking CXX executable testreferencetopointer
[ 38%] Built target testresolvetype
[ 38%] Generating testremoveoperatormethod.moc
Scanning dependencies of target testremoveoperatormethod
[ 38%] Building CXX object ApiExtractor/tests/CMakeFiles/testremoveoperatormethod.dir/testremoveoperatormethod.cpp.o
[ 38%] Built target testreferencetopointer
[ 39%] Generating testdroptypeentries.moc
Scanning dependencies of target testdroptypeentries
[ 39%] Building CXX object ApiExtractor/tests/CMakeFiles/testdroptypeentries.dir/testdroptypeentries.cpp.o
[ 39%] Linking CXX executable testtemplates
[ 39%] Built target testtemplates
[ 39%] Generating testremoveimplconv.moc
Scanning dependencies of target testremoveimplconv
[ 39%] Building CXX object ApiExtractor/tests/CMakeFiles/testremoveimplconv.dir/testremoveimplconv.cpp.o
[ 39%] Linking CXX executable testrefcounttag
[ 40%] Linking CXX executable testremoveoperatormethod
[ 40%] Built target testrefcounttag
[ 41%] Generating testctorinformation.moc
Scanning dependencies of target testctorinformation
[ 41%] Building CXX object ApiExtractor/tests/CMakeFiles/testctorinformation.dir/testctorinformation.cpp.o
[ 41%] Built target testremoveoperatormethod
[ 41%] Generating testconversionruletag.moc
Scanning dependencies of target testconversionruletag
[ 41%] Linking CXX executable testdroptypeentries
[ 41%] Building CXX object ApiExtractor/tests/CMakeFiles/testconversionruletag.dir/testconversionruletag.cpp.o
[ 41%] Built target testdroptypeentries
[ 41%] Generating testconversionoperator.moc
Scanning dependencies of target testconversionoperator
[ 41%] Building CXX object ApiExtractor/tests/CMakeFiles/testconversionoperator.dir/testconversionoperator.cpp.o
[ 42%] Linking CXX executable testremoveimplconv
[ 42%] Built target testremoveimplconv
[ 42%] Generating testabstractmetaclass.moc
Scanning dependencies of target testabstractmetaclass
[ 42%] Building CXX object ApiExtractor/tests/CMakeFiles/testabstractmetaclass.dir/testabstractmetaclass.cpp.o
[ 42%] Linking CXX executable testctorinformation
[ 42%] Built target testctorinformation
[ 43%] Generating testreverseoperators.moc
Scanning dependencies of target testreverseoperators
[ 43%] Building CXX object ApiExtractor/tests/CMakeFiles/testreverseoperators.dir/testreverseoperators.cpp.o
[ 43%] Linking CXX executable testconversionruletag
[ 43%] Built target testconversionruletag
[ 43%] Generating testimplicitconversions.moc
Scanning dependencies of target testimplicitconversions
[ 43%] Building CXX object ApiExtractor/tests/CMakeFiles/testimplicitconversions.dir/testimplicitconversions.cpp.o
[ 44%] Linking CXX executable testconversionoperator
[ 44%] Built target testconversionoperator
[ 45%] Generating testabstractmetatype.moc
Scanning dependencies of target testabstractmetatype
[ 45%] Building CXX object ApiExtractor/tests/CMakeFiles/testabstractmetatype.dir/testabstractmetatype.cpp.o
[ 45%] Linking CXX executable testreverseoperators
[ 45%] Built target testreverseoperators
[ 46%] Generating testaddfunction.moc
Scanning dependencies of target testaddfunction
[ 46%] Building CXX object ApiExtractor/tests/CMakeFiles/testaddfunction.dir/testaddfunction.cpp.o
[ 46%] Linking CXX executable testimplicitconversions
[ 46%] Built target testimplicitconversions
[ 46%] Generating testcontainer.moc
Scanning dependencies of target testcontainer
[ 46%] Building CXX object ApiExtractor/tests/CMakeFiles/testcontainer.dir/testcontainer.cpp.o
[ 46%] Linking CXX executable testabstractmetaclass
[ 46%] Built target testabstractmetaclass
[ 46%] Generating testarrayargument.moc
Scanning dependencies of target testarrayargument
[ 47%] Building CXX object ApiExtractor/tests/CMakeFiles/testarrayargument.dir/testarrayargument.cpp.o
[ 47%] Linking CXX executable testabstractmetatype
[ 47%] Built target testabstractmetatype
[ 47%] Generating testdtorinformation.moc
Scanning dependencies of target testdtorinformation
[ 48%] Building CXX object ApiExtractor/tests/CMakeFiles/testdtorinformation.dir/testdtorinformation.cpp.o
[ 49%] Linking CXX executable testcontainer
[ 49%] Built target testcontainer
[ 49%] Generating testenum.moc
Scanning dependencies of target testenum
[ 50%] Building CXX object ApiExtractor/tests/CMakeFiles/testenum.dir/testenum.cpp.o
[ 50%] Linking CXX executable testarrayargument
[ 50%] Linking CXX executable testaddfunction
[ 50%] Linking CXX executable testdtorinformation
[ 50%] Built target testarrayargument
[ 50%] Built target testaddfunction
[ 50%] Generating testextrainclude.moc
[ 50%] Generating testmultipleinheritance.moc
Scanning dependencies of target testextrainclude
Scanning dependencies of target testmultipleinheritance
[ 50%] Building CXX object ApiExtractor/tests/CMakeFiles/testextrainclude.dir/testextrainclude.cpp.o
[ 51%] Building CXX object ApiExtractor/tests/CMakeFiles/testmultipleinheritance.dir/testmultipleinheritance.cpp.o
[ 51%] Built target testdtorinformation
[ 51%] Generating testnamespace.moc
Scanning dependencies of target testnamespace
[ 51%] Building CXX object ApiExtractor/tests/CMakeFiles/testnamespace.dir/testnamespace.cpp.o
[ 51%] Linking CXX executable testmultipleinheritance
[ 52%] Linking CXX executable testextrainclude
[ 52%] Built target testmultipleinheritance
[ 52%] Generating testcodeinjection.moc
Scanning dependencies of target testcodeinjection
[ 53%] Building CXX object ApiExtractor/tests/CMakeFiles/testcodeinjection.dir/testcodeinjection.cpp.o
[ 54%] Linking CXX executable testnamespace
[ 54%] Built target testextrainclude
[ 54%] Generating testmodifyfunction.moc
Scanning dependencies of target testmodifyfunction
[ 55%] Building CXX object ApiExtractor/tests/CMakeFiles/testmodifyfunction.dir/testmodifyfunction.cpp.o
[ 55%] Built target testnamespace
[ 55%] Generating testremovefield.moc
Scanning dependencies of target testremovefield
[ 56%] Building CXX object ApiExtractor/tests/CMakeFiles/testremovefield.dir/testremovefield.cpp.o
[ 56%] Linking CXX executable testenum
[ 56%] Built target testenum
[ 56%] Generating testfunctiontag.moc
Scanning dependencies of target testfunctiontag
[ 56%] Building CXX object ApiExtractor/tests/CMakeFiles/testfunctiontag.dir/testfunctiontag.cpp.o
[ 56%] Linking CXX executable testcodeinjection
[ 56%] Linking CXX executable testremovefield
[ 56%] Built target testcodeinjection
[ 57%] Generating testinserttemplate.moc
Scanning dependencies of target testinserttemplate
[ 57%] Building CXX object ApiExtractor/tests/CMakeFiles/testinserttemplate.dir/testinserttemplate.cpp.o
[ 57%] Built target testremovefield
[ 57%] Generating testnestedtypes.moc
Scanning dependencies of target testnestedtypes
[ 57%] Building CXX object ApiExtractor/tests/CMakeFiles/testnestedtypes.dir/testnestedtypes.cpp.o
[ 57%] Linking CXX executable testmodifyfunction
[ 58%] Linking CXX executable testfunctiontag
[ 58%] Built target testmodifyfunction
[ 58%] Generating testnumericaltypedef.moc
Scanning dependencies of target testnumericaltypedef
[ 58%] Building CXX object ApiExtractor/tests/CMakeFiles/testnumericaltypedef.dir/testnumericaltypedef.cpp.o
[ 58%] Built target testfunctiontag
[ 59%] Generating testprimitivetypetag.moc
Scanning dependencies of target testprimitivetypetag
[ 59%] Building CXX object ApiExtractor/tests/CMakeFiles/testprimitivetypetag.dir/testprimitivetypetag.cpp.o
[ 59%] Linking CXX executable testinserttemplate
[ 59%] Built target testinserttemplate
Scanning dependencies of target shiboken
[ 59%] Building CXX object generator/CMakeFiles/shiboken.dir/generator.cpp.o
[ 60%] Linking CXX executable testnestedtypes
[ 60%] Built target testnestedtypes
[ 61%] Building CXX object generator/CMakeFiles/shiboken.dir/shiboken/cppgenerator.cpp.o
[ 61%] Linking CXX executable testprimitivetypetag
[ 61%] Linking CXX executable testnumericaltypedef
[ 61%] Built target testprimitivetypetag
[ 61%] Building CXX object generator/CMakeFiles/shiboken.dir/shiboken/headergenerator.cpp.o
[ 61%] Built target testnumericaltypedef
[ 61%] Building CXX object generator/CMakeFiles/shiboken.dir/shiboken/overloaddata.cpp.o
[ 62%] Building CXX object generator/CMakeFiles/shiboken.dir/shiboken/shibokengenerator.cpp.o
[ 62%] Building CXX object generator/CMakeFiles/shiboken.dir/shiboken/shibokennormalize.cpp.o
[ 62%] Building CXX object generator/CMakeFiles/shiboken.dir/main.cpp.o
[ 62%] Building CXX object generator/CMakeFiles/shiboken.dir/qtdoc/qtdocgenerator.cpp.o
[ 63%] Linking CXX executable shiboken
[ 63%] Built target shiboken
[ 63%] Running generator for 'minimal' test binding...
[ 63%] Running generator for 'shiboken'...
/bin/sh: /home/utku/Programlar/Shiboken/generator/shiboken: Is a directory
make[2]: *** [tests/minimalbinding/CMakeFiles/minimal.dir/build.make:64: tests/minimalbinding/minimal/minimal_module_wrapper.cpp] Error 126
make[1]: *** [CMakeFiles/Makefile2:2003: tests/minimalbinding/CMakeFiles/minimal.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/bin/sh: /home/utku/Programlar/Shiboken/generator/shiboken: Is a directory
make[2]: *** [shibokenmodule/CMakeFiles/shibokenmodule.dir/build.make:62: shibokenmodule/shiboken/shiboken_module_wrapper.cpp] Error 126
make[1]: *** [CMakeFiles/Makefile2:1748: shibokenmodule/CMakeFiles/shibokenmodule.dir/all] Error 2
[ 63%] Running generator for 'sample' test binding...
/bin/sh: /home/utku/Programlar/Shiboken/generator/shiboken: Is a directory
make[2]: *** [tests/samplebinding/CMakeFiles/sample.dir/build.make:64: tests/samplebinding/sample/abstractmodifications_wrapper.cpp] Error 126
make[1]: *** [CMakeFiles/Makefile2:2060: tests/samplebinding/CMakeFiles/sample.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Now i have a new problem that looks like i will never be able to fix

@nottux
Copy link

nottux commented Dec 8, 2017

I fixed it
before 'cmake .' command
be sure you extracted fresh copy and didn't run any command under the shiboken root directory (it removes and adds some files thats why)
rename Shiboken/generator/CMakeFiles/shiboken.dir/shiboken folder to Shiboken/generator/CMakeFiles/shiboken.dir/shibofen
Then replace Shiboken/generator/CMakeFiles/shiboken.dir/CMakeLists.txt file with this file
then run cmake .
make
sudo make install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants