Alexander Khryukin
2013-07-03 14:21:00 UTC
Hello guys.
Month (or a little bit more) ago i wrote script that allows you build arm
packages on x86 machine.
Well, it's working fine with a lot of packages except qt4 stuff.
For example you can build simple qt4 package like akonadi
sh build.sh akonadi
And after 5 minutes you got an error like
/usr/lib/qt4/bin/qdbuscpp2xml
/home/user/rpmbuild/BUILD/akonadi-1.9.2/server/src/debuginterface.h -o
/home/user/rpmbuild/BUILD/akonadi-1.9.2/build/server/org.freedesktop.Akonadi.DebugInterface.xml
*Segmentation fault*
http://pastie.org/8106826
[ 1%] Automoc for target akonadiprotocolinternals
[ 1%] Built target akonadiprotocolinternals_automoc
[ 2%] Built target akonadiprotocolinternals
[ 2%] Automoc for target imapparserbenchmark
[ 2%] Built target imapparserbenchmark_automoc
[ 3%] Built target imapparserbenchmark
[ 4%] Automoc for target notificationmessagetest
[ 4%] Built target notificationmessagetest_automoc
[ 4%] Built target notificationmessagetest
[ 4%] Automoc for target akonadi_shared
[ 4%] Built target akonadi_shared_automoc
[ 6%] Built target akonadi_shared
[ 7%] Automoc for target akonadi_agent_launcher
[ 7%] Built target akonadi_agent_launcher_automoc
[ 8%] Built target akonadi_agent_launcher
[ 9%] Automoc for target akonadi_agent_server
[ 9%] Built target akonadi_agent_server_automoc
[ 10%] Built target akonadi_agent_server
[ 11%] Automoc for target akonadiprivate
[ 11%] Built target akonadiprivate_automoc
[ 12%] Generating org.freedesktop.Akonadi.DebugInterface.xml
*/bin/sh: line 1: 16343 Segmentation fault
/usr/lib/qt4/bin/qdbuscpp2xml
*/home/user/rpmbuild/BUILD/akonadi-1.9.2/server/src/debuginterface.h
-o
/home/user/rpmbuild/BUILD/akonadi-1.9.2/build/server/org.freedesktop.Akonadi.DebugInterface.xml
make[2]: *** [server/org.freedesktop.Akonadi.DebugInterface.xml] Error 139
make[1]: *** [server/CMakeFiles/akonadiprivate.dir/all] Error 2
make: *** [all] Error 2
In GDB i got this
[***@veeneel ~]$ gdb /usr/lib/qt4/bin/qdbuscpp2xml
GNU gdb (GDB) 7.3.50.20110722-4 (Mandriva Linux release 2012.0)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "armv7l-mandriva-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/lib/qt4/bin/qdbuscpp2xml...Reading symbols from
/usr/lib/debug/usr/lib/qt4/bin/qdbuscpp2xml.debug...done.
done.
(gdb) core qemu_qdbuscpp2xml_20130703-140758_16134.core
[New LWP 16134]
[New LWP 16135]
*Cannot access memory at address 0xf67fe8f8*
Core was generated by `/usr/lib/qt4/bin/qdbuscpp2xml
/home/user/rpmbuild/BUILD/akonadi-1.9.2/server/s'.
#0 0xf65ee102 in ?? ()
Need help to solve this issue.
I spent to this a lot of time, i recomliled qemu with few patches that
trick /proc/cpuinfo
i switch versions of qemu between 0.xx and 1.5.1
Few hours ago i pushed to repo qemu-wrapper that adds -cpu cortex-a8 to
qemu binary.
I did a lot of strange things, now i need help.
You can simply reproduce it
1.clone crossbuild
2.tune qemubinfmt/build.sh for your specs
3.sh build.sh akonadi
Month (or a little bit more) ago i wrote script that allows you build arm
packages on x86 machine.
Well, it's working fine with a lot of packages except qt4 stuff.
For example you can build simple qt4 package like akonadi
sh build.sh akonadi
And after 5 minutes you got an error like
/usr/lib/qt4/bin/qdbuscpp2xml
/home/user/rpmbuild/BUILD/akonadi-1.9.2/server/src/debuginterface.h -o
/home/user/rpmbuild/BUILD/akonadi-1.9.2/build/server/org.freedesktop.Akonadi.DebugInterface.xml
*Segmentation fault*
http://pastie.org/8106826
[ 1%] Automoc for target akonadiprotocolinternals
[ 1%] Built target akonadiprotocolinternals_automoc
[ 2%] Built target akonadiprotocolinternals
[ 2%] Automoc for target imapparserbenchmark
[ 2%] Built target imapparserbenchmark_automoc
[ 3%] Built target imapparserbenchmark
[ 4%] Automoc for target notificationmessagetest
[ 4%] Built target notificationmessagetest_automoc
[ 4%] Built target notificationmessagetest
[ 4%] Automoc for target akonadi_shared
[ 4%] Built target akonadi_shared_automoc
[ 6%] Built target akonadi_shared
[ 7%] Automoc for target akonadi_agent_launcher
[ 7%] Built target akonadi_agent_launcher_automoc
[ 8%] Built target akonadi_agent_launcher
[ 9%] Automoc for target akonadi_agent_server
[ 9%] Built target akonadi_agent_server_automoc
[ 10%] Built target akonadi_agent_server
[ 11%] Automoc for target akonadiprivate
[ 11%] Built target akonadiprivate_automoc
[ 12%] Generating org.freedesktop.Akonadi.DebugInterface.xml
*/bin/sh: line 1: 16343 Segmentation fault
/usr/lib/qt4/bin/qdbuscpp2xml
*/home/user/rpmbuild/BUILD/akonadi-1.9.2/server/src/debuginterface.h
-o
/home/user/rpmbuild/BUILD/akonadi-1.9.2/build/server/org.freedesktop.Akonadi.DebugInterface.xml
make[2]: *** [server/org.freedesktop.Akonadi.DebugInterface.xml] Error 139
make[1]: *** [server/CMakeFiles/akonadiprivate.dir/all] Error 2
make: *** [all] Error 2
In GDB i got this
[***@veeneel ~]$ gdb /usr/lib/qt4/bin/qdbuscpp2xml
GNU gdb (GDB) 7.3.50.20110722-4 (Mandriva Linux release 2012.0)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "armv7l-mandriva-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/lib/qt4/bin/qdbuscpp2xml...Reading symbols from
/usr/lib/debug/usr/lib/qt4/bin/qdbuscpp2xml.debug...done.
done.
(gdb) core qemu_qdbuscpp2xml_20130703-140758_16134.core
[New LWP 16134]
[New LWP 16135]
*Cannot access memory at address 0xf67fe8f8*
Core was generated by `/usr/lib/qt4/bin/qdbuscpp2xml
/home/user/rpmbuild/BUILD/akonadi-1.9.2/server/s'.
#0 0xf65ee102 in ?? ()
Need help to solve this issue.
I spent to this a lot of time, i recomliled qemu with few patches that
trick /proc/cpuinfo
i switch versions of qemu between 0.xx and 1.5.1
Few hours ago i pushed to repo qemu-wrapper that adds -cpu cortex-a8 to
qemu binary.
I did a lot of strange things, now i need help.
You can simply reproduce it
1.clone crossbuild
2.tune qemubinfmt/build.sh for your specs
3.sh build.sh akonadi