On 1/16/2013 4:05 PM, Laszlo Papp wrote:
At least I cannot reproduce the crash with the following skeleton:

You should look at the compile/link lines. First I would look at the link lines:

This is the qmake one:

qcc -Vgcc_ntoarmv7le -lang-c++ -Wl,-rpath-link,/home/taylor/Development/bbndk/target_10_0_9_2318/qnx6/armle-v7/lib -Wl,-rpath-link,/home/taylor/Development/bbndk/target_10_0_9_2318/qnx6/armle-v7/usr/lib -Wl,-rpath-link,/home/taylor/Development/bbndk/target_10_0_9_2318/qnx6/armle-v7/usr/lib/qt4/lib -o o.le-v7-g/WikiReader o.le-v7-g/.obj/main.o o.le-v7-g/.obj/wikimodel.o o.le-v7-g/.obj/moc_wikimodel.o -L/home/taylor/Development/bbndk/target_10_0_9_2318/qnx6/armle-v7/lib -L/home/taylor/Development/bbndk/target_10_0_9_2318/qnx6/armle-v7/usr/lib -L/home/taylor/Development/bbndk/target_10_0_9_2318/qnx6/armle-v7/usr/lib/qt4/lib -L/home/taylor/Development/bbndk/target_10_0_9_2318/qnx6//usr/lib/qt4/lib -lbbcascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lsqlite3 -lz -lQtXmlPatterns -lQtGui -lQtXml -lQtNetwork -lsocket -lQtCore -lm -lbps


This is the cmake one:

/opt/bbndk/host_10_0_9_404/linux/x86/usr/bin/ntoarmv7-c++ -Wall -fPIC -Wall -fPIC -g3 -ggdb -O0 CMakeFiles/wikireader.dir/main.cpp.o CMakeFiles/wikireader.dir/wikimodel.cpp.o CMakeFiles/wikireader.dir/qrc_wikireader.cxx.o CMakeFiles/wikireader.dir/wikireader_automoc.cpp.o -o wikireader /opt/bbndk/target_10_0_9_1673/qnx6/armle-v7/usr/lib/qt4/lib/libQtCore.so /opt/bbndk/target_10_0_9_1673/qnx6/armle-v7/usr/lib/qt4/lib/libQtNetwork.so /opt/bbndk/target_10_0_9_1673/qnx6/armle-v7/usr/lib/qt4/lib/libQtXml.so /opt/bbndk/target_10_0_9_1673/qnx6/armle-v7/usr/lib/qt4/lib/libQtGui.so /opt/bbndk/target_10_0_9_1673/qnx6/armle-v7/usr/lib/qt4/lib/libQtDeclarative.so -lbbcascades -Wl,-rpath,/opt/bbndk/target_10_0_9_1673/qnx6/armle-v7/usr/lib/qt4/lib



Right off the bat they are using different compilers to link. I would try to get the CMake one to match the qmake one by hand and see if you can fix the problem. Once you figure out the magic command line that makes it work, then we can figure out how to get CMake to produce the same command line.

BTW, same thing with the compile lines. CMake does c++ and qmake does gcc -lang-c++.


  cat ../../cmake-test/main.cpp
int main() {return 0;}
cat ../../cmake-test/CMakeLists.txt
add_executable(cmake-test main.cpp)

I am running out of the quick ideas soon. Anything else to try?

On Wed, Jan 16, 2013 at 2:12 PM, Laszlo Papp <[email protected]
<mailto:[email protected]>> wrote:

    Interesting finding! It happened to PySide as well on this platform
    which may help with proceeding:
    http://www.engcorp.com/pipermail/blackberry-python/2013/000016.html


    On Wed, Jan 16, 2013 at 10:31 AM, Laszlo Papp <[email protected]
    <mailto:[email protected]>> wrote:

        I have just tried to add the following libraries to the linkage
        even if they seem unnecessary: -lz -lsocket -lm -lbps, but it is
        still crashing. :'(

        I have also tried to save out the wikireader.core file of mine,
        and run through an arm gdb on the host, but it did not provide
        too much information sadly even with a debug build:

        (gdb) core wikireader.core
        [New LWP 1]
        Program terminated with signal 11, Segmentation fault.
        #0  0x01d27380 in ?? ()
        (gdb) thread apply all bt

        Thread 1 (LWP 1):
        #0  0x01d27380 in ?? ()
        #1  0x00000000 in ?? ()
        (gdb)

        How can we proceed?

        Laszlo





--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake



--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
[email protected]
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to