[Webkit-unassigned] [Bug 93460] New: QtWebKit linking fails for QNX cross build
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 8 04:29:25 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=93460
Summary: QtWebKit linking fails for QNX cross build
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebKit Qt
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: milian.wolff at kdab.com
Trying to build QtWebKit for QNX using the bbndk 2.0.1 which uses gcc 4.4.2, I ran across the following issue:
make[2]: Entering directory `/home/milian/projects/qt5/build-playbook/qtwebkit/Release/Source'
rm -f libQtWebKit.so.5.0.0 libQtWebKit.so libQtWebKit.so.5 libQtWebKit.so.5.0
qcc -Vgcc_ntoarmv7le -lang-c++ -Wl,-rpath-link,/home/milian/bbndk-2.0.1/target/qnx6/armle-v7/lib -Wl,-rpath-link,/home/milian/bbndk-2.0.1/target/qnx6/armle-v7/usr/lib -Wl,-O1 -Wl,-rpath,/home/milian/projects/qt5/install-playbook/lib -Wl,-rpath,/home/milian/projects/qt5/install-playbook/lib -shared -Wl,-Bsymbolic-functions -Wl,-soname,libQtWebKit.so.5 -o libQtWebKit.so.5.0.0 -L/home/milian/bbndk-2.0.1/target/qnx6/armle-v7/lib -L/home/milian/bbndk-2.0.1/target/qnx6/armle-v7/usr/lib -L/home/milian/projects/qt5/build-playbook/qtwebkit/Release/Source/WebKit/release -L/home/milian/projects/qt5/build-playbook/qtwebkit/Release/Source/WebKit2/release -L/home/milian/projects/qt5/build-playbook/qtwebkit/Release/Source/WebCore/release -L/home/milian/projects/qt5/build-playbook/qtwebkit/Release/Source/JavaScriptCore/release -L/home/milian/projects/qt5/build-playbook/qtwebkit/Release/Source/WTF/release -L/home/milian/projects/qt5/install-playbook/lib -Wl,-whole-archive -lWebKit1 -Wl,-no-whole-ar
cc: no files to process
Here is an excerpt of a discussion with tronical in #qtwebkit on Freenode IRC:
[13:03] <milian> I'm trying to get it build for qnx which worked ~2months ago... trying to rebase my patches and getting them upstreamed now, I hit this strange error and am really lost
[13:03] <milian> is it a qmake bug?
[13:04] <tronical> milian: sort of a gcc bug :)
[13:04] <milian> is there something I can do to work around it?
[13:05] <tronical> milian: the way we build webkit is that we build webcore, javascriptcore, etc. as static libraries
[13:05] <tronical> milian: and then link them all together into libqtwebkit.so
[13:05] <tronical> milian: it's that last linking step that doesn't involve any .cpp files
[13:06] <tronical> milian: it's just gcc -o libqtwebkit.so libwebcore libwtf.a ...
[13:06] <tronical> milian: (just linking, no -c as parameter)
[13:06] <tronical> milian: gcc and mscv can handle it
[13:06] <tronical> milian: see for example -Wl,-whole-archive -lJavaScriptCore -Wl,-no-whole-archive in your paste
[13:07] <milian> ok, and this got fixed with a newer gcc?
[13:07] <tronical> milian: I haven't run into any gcc yet that doesn't support it, so I'm curious why this fails for you :)
[13:08] <tronical> milian: if you take that commandline and change the -Wl,-whole-archive -lJavaScriptCore -Wl,no-whole-archive to -Wl,-whole-archive ../path/to/libJavaScriptCore.a -Wl,-no-whole-archive , does it work then?
[13:15] <tronical> milian: alternatively easy workaround:
[13:15] <milian> yes, now it's linking
[13:15] <tronical> milian: add a dummy .cpp file, add it to api.pri
[13:16] <tronical> milian: if that works then it sounds very much like a gcc bug or incorrect serach paths
[13:17] <milian> seems to be gcc 4.4.2 in qnx bbndk
[13:19] <milian> I'll try to add the dummy .cpp file there, would that be acceptable to be pushed upstream (just for qnx of course)?
[13:20] <tronical> milian: yeah, I think that's okay. it should probably be a generated file (i.e. using QMAKE_EXTRA_TARGETS and GENERATED_SOURCES)
I'll now try to implement what tronical suggests and prepare a patch.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list