[Qt-interest] Problem building Qt 4.7.3 with Intel compiler on Linux
Alexander Neundorf
alexander.neundorf at itwm.fraunhofer.de
Tue Jul 5 15:39:54 CEST 2011
Hi,
I was not able to build Qt 4.7.3 with the Intel compiler
icpc (ICC) 11.1 20091130 (and gcc 4.3.2)
on openSUSE 11.1 (Linux darkstar 2.6.27.48-0.12-default #1 SMP
2010-09-20 11:03:26 -0400 x86_64 x86_64 x86_64 GNU/Linux)
I got the following linker errors:
.obj/release-shared/JSWebKitPointConstructor.o: In function
`WebCore::constructWebKitPoint(JSC::ExecState*, JSC::JSObject*,
JSC::ArgList const&)':
bindings/js/JSWebKitPointConstructor.cpp:(.text+0x9e9): undefined
reference to `__builtin_isnan'
bindings/js/JSWebKitPointConstructor.cpp:(.text+0xa0c): undefined
reference to `__builtin_isnan'
.obj/release-shared/CanvasRenderingContext2D.o: In function
`WebCore::CanvasRenderingContext2D::setLineWidth(float)':
html/canvas/CanvasRenderingContext2D.cpp:(.text+0x3ee): undefined
reference to `__builtin_isfinite'
.obj/release-shared/CanvasRenderingContext2D.o: In function
`WebCore::CanvasRenderingContext2D::setMiterLimit(float)':
html/canvas/CanvasRenderingContext2D.cpp:(.text+0xaae): undefined
reference to `__builtin_isfinite'
.obj/release-shared/CanvasRenderingContext2D.o: In function
`WebCore::CanvasRenderingContext2D::setShadowOffsetX(float)':
html/canvas/CanvasRenderingContext2D.cpp:(.text+0xb3f): undefined
reference to `__builtin_isfinite'
.obj/release-shared/CanvasRenderingContext2D.o: In function
`WebCore::CanvasRenderingContext2D::setShadowOffsetY(float)':
html/canvas/CanvasRenderingContext2D.cpp:(.text+0xc7f): undefined
reference to `__builtin_isfinite'
.obj/release-shared/CanvasRenderingContext2D.o: In function
`WebCore::CanvasRenderingContext2D::setShadowBlur(float)':
html/canvas/CanvasRenderingContext2D.cpp:(.text+0xcef): undefined
reference to `__builtin_isfinite'
.obj/release-shared/CanvasRenderingContext2D.o:html/canvas/CanvasRenderingContext2D.cpp:(.text+0x2292):
more undefined references to `__builtin_isfinite' follow
.obj/release-shared/DOMWindow.o: In function
`WebCore::DOMWindow::adjustWindowRect(WebCore::FloatRect const&,
WebCore::FloatRect&, WebCore::FloatRect const&)':
page/DOMWindow.cpp:(.text+0x83e9): undefined reference to `__builtin_isnan'
page/DOMWindow.cpp:(.text+0x8400): undefined reference to `__builtin_isnan'
page/DOMWindow.cpp:(.text+0x8418): undefined reference to `__builtin_isnan'
page/DOMWindow.cpp:(.text+0x8430): undefined reference to `__builtin_isnan'
make[1]: *** [../../../../lib/libQtWebKit.so.4.7.3] Error 1
make[1]: Leaving directory
`Qt-build/qt-everywhere-opensource-src-4.7.3-intel-fileenginewatcher-dynamic/src/3rdparty/webkit/WebCore'
__builtin_isnan() and __builtin_isfinite() come from cmath.h.
So although simple isnan() is called, it results in std::isnan() being
called.
With the attached patch I was able to link it successfully.
Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: intel11.patch
Type: text/x-patch
Size: 2179 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110705/b82703b2/attachment.bin
More information about the Qt-interest-old
mailing list