November 24, 2011

dongdong dongdong
Lab Rat
22 posts

qt-everywhere-opensource-src-4.8.0 compile error when -debug and -webkit-debug enabled

 

I got following error when cross compile qt-everywhere-opensource-src-4.8.0 with -debug and -webkit-debug enabled

../../JavaScriptCore/debug/libjscore.a(JITStubs.o): In function `ctiVMThrowTrampoline’:
JITStubs.cpp:(.text+0×164): relocation truncated to fit: R_MIPS_PC16 against `cti_vm_throw’
collect2: ld returned 1 exit status
make2: *** [../../../../../../lib/libQtWebKit.so.4.9.0] Error 1
make2: Leaving directory `/media/work/work/qt-everywhere/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source/WebKit/qt’
make1: *** [sub-WebKit-qt-QtWebKit-pro-make_default-ordered] Error 2
make1: Leaving directory `/media/work/work/qt-everywhere/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source’
make: *** [sub-webkit-make_default-ordered] Error 2

How to solve it?

Thanks

13 replies

November 25, 2011

Mohsen Mohsen
Robot Herder
347 posts

which compiler you’re using on which platform?

 Signature 

www.madagon.com

November 28, 2011

dongdong dongdong
Lab Rat
22 posts

Sourcery G++ Lite
mips

December 21, 2011

post4pavan post4pavan
Ant Farmer
65 posts

Even I have the same problem with

qt-everywhere-opensource-src-4.7.4

having googled, I got here
configure_line [bugreports.qt.nokia.com]

Dont know, whether to do this configuration or not!

Please Suggest!

 Signature 

Qt for Embedded! INTERESTING!

February 14, 2012

Weilly Weilly
Lab Rat
32 posts

Does anybody suggest how to configure and make? I have the same problem on qt-everywhere-opensource-src-4.8.0

My configure on QtEmbedded is as below:
./configure -prefix PATH -embedded arm -make tools -xplatform qws/linux-arm-g++ -v -qt-mouse-tslib -I’tslib PATH’/include -L’tslib PATH’/lib -qt-gfx-vnc

If I add “-no-webkit “ as below, it works. But I need uiloader and webkit at the same time.So, how do I do?
./configure -prefix PATH -embedded arm -make tools -xplatform qws/linux-arm-g++ -v -no-webkit -qt-mouse-tslib -I’tslib PATH’/include -L’tslib PATH’/lib -qt-gfx-vnc

February 14, 2012

post4pavan post4pavan
Ant Farmer
65 posts

Yeah! I got past through it.
Configure line

  1. ./configure -embedded arm -xplatform qws/[YOURSPEC] -release -prefix /usr/local/Trolltech/Qt-target-version -qt-gfx-linuxfb -qt-kbd-tty -qt-mouse-tslib -opengl es2 -openvg yes -little-endian -host-little-endian -DQT_QWS_CLIENTBLIT -confirm-license

Regards :: Krishna Pavan

 Signature 

Qt for Embedded! INTERESTING!

February 16, 2012

Weilly Weilly
Lab Rat
32 posts

Dear post4pavan,

I follows your configure line and make. I still got the error message as below.
heap/Handle.h:82: warning: cast from ‘JSC::JSCell*’ to ‘JSC::Structure*’ increases required alignment of target type
make2: *** [.obj/release-static-emb-arm/DateMath.o] Error 1
make2: Leaving directory `/home/tiger4/Downloads/qt4.8.0-arm-shared/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source/JavaScriptCore’
make1: *** [sub-JavaScriptCore-JavaScriptCore-pro-make_default-ordered] Error 2
make1: Leaving directory `/home/tiger4/Downloads/qt4.8.0-arm-shared/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source’
make: *** [sub-webkit-make_default-ordered] Error 2

February 16, 2012

post4pavan post4pavan
Ant Farmer
65 posts

Hi Weilly,

  1. cd src/3rdparty/webkit/JavaScriptCore/release/
  2. cp jscore. libjscore.a

and then make.. It is what i got it!

Regards :: Krishna Pavan

 Signature 

Qt for Embedded! INTERESTING!

February 16, 2012

Weilly Weilly
Lab Rat
32 posts

I have no jscore. under src/3rdparty/webkit/Source/JavaScriptCore/release/ . My error message is as below.

In file included from runtime/JSValue.h:32, from runtime/CachedTranscendentalFunction.h:29, from runtime/JSGlobalData.h:32, from interpreter/CallFrame.h:26, from runtime/ArgList.h:25, from runtime/JSObject.h:26, from wtf/DateMath.cpp:79:
./wtf/MathExtras.h:252: error: ‘std::isfinite’ has not been declared
./wtf/MathExtras.h:253: error: ‘std::isinf’ has not been declared
./wtf/MathExtras.h:254: error: ‘std::isnan’ has not been declared
./wtf/MathExtras.h:255: error: ‘std::signbit’ has not been declared
In file included from runtime/JSObject.h:31, from wtf/DateMath.cpp:79:
runtime/JSCell.h: In member function ‘void* JSC::MarkedBlock::allocate()’:
runtime/JSCell.h:354: warning: cast from ‘char ()8‘ to ‘JSC::JSCell’ increases required alignment of target type
runtime/WriteBarrier.h: In member function ‘T* JSC::WriteBarrierBase<T>::get() const [with T = JSC::Structure]’:
runtime/JSCell.h:174: instantiated from here
runtime/WriteBarrier.h:70: warning: cast from ‘JSC::JSCell*’ to ‘JSC::Structure*’ increases required alignment of target type
/usr/local/toolchain/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/include/c++/4.2.0/bits/basic_string.h: In member function ‘std::basic_string<_CharT, _Traits, _Alloc>::_Rep* std::basic_string<_CharT, _Traits, _Alloc>::_M_rep() const [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’:
/usr/local/toolchain/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/include/c++/4.2.0/bits/basic_string.h:483: instantiated from ‘std::basic_string<_CharT, _Traits, _Alloc>::~basic_string() [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’
../../../../../include/QtCore/../../src/corelib/tools/qstring.h:1045: instantiated from here
/usr/local/toolchain/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/include/c++/4.2.0/bits/basic_string.h:288: warning: cast from ‘char*’ to ‘std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep*’ increases required alignment of target type
heap/Handle.h: In static member function ‘static T* JSC::HandleTypes<T>::getFromSlot(JSC::JSValue*) [with T = JSC::Structure]’:
heap/Handle.h:155: instantiated from ‘typename JSC::HandleTypes<T>::ExternalType JSC::Handle<T>::get() const [with T = JSC::Structure]’
runtime/ScopeChain.h:40: instantiated from here
heap/Handle.h:82: warning: cast from ‘JSC::JSCell*’ to ‘JSC::Structure*’ increases required alignment of target type
make2: *** [.obj/release-static-emb-arm/DateMath.o] Error 1
make2: Leaving directory `/home/tiger4/Downloads/qt4.8.0-arm-shared/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source/JavaScriptCore’
make1: *** [sub-JavaScriptCore-JavaScriptCore-pro-make_default-ordered] Error 2
make1: Leaving directory `/home/tiger4/Downloads/qt4.8.0-arm-shared/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source’
make: *** [sub-webkit-make_default-ordered] Error 2

February 16, 2012

post4pavan post4pavan
Ant Farmer
65 posts
Weilly wrote:
I have no jscore. under src/3rdparty/webkit/Source/JavaScriptCore/release/ .

Its src/3rdparty/webkit/JavaScriptCore/release/ and not as the above you have stated.

Weilly wrote:
make2: Leaving directory `/home/tiger4/Downloads/qt4.8.0-arm-shared/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source/JavaScriptCore’
make1: *** [sub-JavaScriptCore-JavaScriptCore-pro-make_default-ordered] Error 2
make1: Leaving directory `/home/tiger4/Downloads/qt4.8.0-arm-shared/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source’
make: *** [sub-webkit-make_default-ordered] Error 2

Regarding your make error the above correction clears it, and gets you proper lib file.

Regards :: Krishna Pavan

 Signature 

Qt for Embedded! INTERESTING!

February 17, 2012

Weilly Weilly
Lab Rat
32 posts

“Its src/3rdparty/webkit/JavaScriptCore/release/ and not as the above you have stated.”

But I don’t have this folder.

“Regarding your make error the above correction clears it, and gets you proper lib file.”

How do I do? Should I copy all files under src/3rdparty/webkit/Source/JavaScriptCore/ to src/3rdparty/webkit/JavaScriptCore/ ?

Thank you

February 17, 2012

post4pavan post4pavan
Ant Farmer
65 posts

Hi Weilly,

Weilly wrote:
“Should I copy all files under src/3rdparty/webkit/Source/JavaScriptCore/ to src/3rdparty/webkit/JavaScriptCore/ ?

I have used 4.7.4 and the directory list is like, what i have posted.

Simple thing is find jscore. and rename it to libjscore.a

Can you post here, the platform you are using to build Qt_Embedded? It might help?

 Signature 

Qt for Embedded! INTERESTING!

February 17, 2012

Weilly Weilly
Lab Rat
32 posts

1. My Deshtop PC OS:Ubuntu 10.10
2. Toolchian: arm-2007q1-10-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar
3. I modify qt-everywhere-opensource-arc-4.8.0/mkspecs/qws/linux-arm-g++/qmake.conf as below:
================================================
#

  1. qmake configuration for building with arm-linux-g++

#

include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)

  1. modifications to g++.conf
    QMAKE_CC = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-gcc
    QMAKE_CXX = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-g++
    QMAKE_LFLAGS = -Wl,-rpath=/home/tslib/lib
    QMAKE_LINK = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-g
    +
    QMAKE_LINK_SHLIB = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-guneabi-g++
  1. modifications to linux.conf
    QMAKE_AR = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-ar cqs
    QMAKE_OBJCOPY = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-objcopy
    QMAKE_STRIP = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-strip

QMAKE_INCDIR = /home/tslib/include
QMAKE_LIBDIR = /home/tslib/lib

load(qt_config)
================================================
4. qt4.8.0 download from http://qt.nokia.com/downloads/embedded-linux-cpp
5. My configure line: ./configure -prefix PATH -embedded arm -make tools -xplatform qws/linux-arm-g++ -v -qt-mouse-tslib -I’tslib PATH’/include -L’tslib PATH’/lib -qt-gfx-vnc

Thank you for your support

February 17, 2012

post4pavan post4pavan
Ant Farmer
65 posts

Hi Weilly,

I use Qt_Embedded for TI & Freescale ARM SoC’s.
As far as I have seen, the webkit error is because of libarary only.
Possible errors could be with the tool chains, [ WRT what I have faced ],and it does not seem to be in your conf file, which seems to be OK wrt tool chains.
QMAKE_LINK has got some error in your specs, may be it should be g++ at end I guess.

What all I can say if you have a problem with webkit, is to rename the required library as posted earlier.
Regards :: Krishna Pavan

 Signature 

Qt for Embedded! INTERESTING!

 
  ‹‹ Will Qt come for WP7?      About ReDraw button on QWidget ››

You must log in to post a reply. Not a member yet? Register here!