* [ptxdist] ptxdist go abort when trying to link qt against libstdc++
@ 2014-04-10 13:18 Marc Michalewicz, Railtec Systems GmbH
2014-04-11 6:23 ` Alexander Aring
0 siblings, 1 reply; 3+ messages in thread
From: Marc Michalewicz, Railtec Systems GmbH @ 2014-04-10 13:18 UTC (permalink / raw)
To: ptxdist
Hello,
i try to build a ptxdist systeme - the first time.
My Cross-Toolchain - target i686, host x86_64 - was built successfully
in the end
but now I am really stuck at this point during the "ptxdist go" - stage:
<snip>
g++ -o
"/home/marc/svn/ptxdist/ptxdist_CPU/platform/build-host/qt-everywhere-opensource-src-4.7.3-build/bin/qmake"
project.o property.o main.o makefile.o unixmake2.o unixmake.o
mingw_make.o option.o winmakefile.o projectgenerator.o meta.o
makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o borland_bmake.o
msvc_vcproj.o msvc_vcxproj.o msvc_nmake.o msvc_objectmodel.o
msbuild_objectmodel.o symmake.o initprojectdeploy_symbian.o
symmake_abld.o symmake_sbsv2.o symbiancommon.o registry.o epocroot.o
qtextcodec.o qutfcodec.o qstring.o qtextstream.o qiodevice.o qmalloc.o
qglobal.o qbytearray.o qbytearraymatcher.o qdatastream.o qbuffer.o
qlist.o qfile.o qfsfileengine_unix.o qfsfileengine_iterator_unix.o
qfsfileengine.o qfsfileengine_iterator.o qregexp.o qvector.o qbitarray.o
qdir.o qdiriterator.o quuid.o qhash.o qfileinfo.o qdatetime.o
qstringlist.o qabstractfileengine.o qtemporaryfile.o qmap.o qmetatype.o
qsettings.o qlibraryinfo.o qvariant.o qvsnprintf.o qlocale.o
qlinkedlist.o qurl.o qnumeric.o qcryptographichash.o qxmlstream.o
qxmlutils.o -m32
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.7/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.7/libstdc++.a when searching for -lstdc++
<snip>
As I guess, it seems the hostcompiler is used to link some qt-stuff an
in the end it misses some important lib. Does anyone have an idea about
the problem ? It seems to be related to the host-installation: I use an
ubuntu 12.10 system, fully uptodate; ia32 package is installed.
Thanks for any help,
Marc
--
Railtec Systems GmbH
Marc Michalewicz
Sonnenbergstrasse 19
CH-6052 Hergiswil
Tel: +41 41 632 5533
Fax: +41 41 632 5539
www.railtec-systems.ch
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ptxdist] ptxdist go abort when trying to link qt against libstdc++
2014-04-10 13:18 [ptxdist] ptxdist go abort when trying to link qt against libstdc++ Marc Michalewicz, Railtec Systems GmbH
@ 2014-04-11 6:23 ` Alexander Aring
2014-04-23 7:20 ` Michael Olbrich
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Aring @ 2014-04-11 6:23 UTC (permalink / raw)
To: ptxdist
On Thu, Apr 10, 2014 at 03:18:19PM +0200, Marc Michalewicz, Railtec Systems GmbH wrote:
> Hello,
>
> i try to build a ptxdist systeme - the first time.
> My Cross-Toolchain - target i686, host x86_64 - was built successfully in
> the end
> but now I am really stuck at this point during the "ptxdist go" - stage:
>
> <snip>
> g++ -o "/home/marc/svn/ptxdist/ptxdist_CPU/platform/build-host/qt-everywhere-opensource-src-4.7.3-build/bin/qmake"
> project.o property.o main.o makefile.o unixmake2.o unixmake.o mingw_make.o
> option.o winmakefile.o projectgenerator.o meta.o makefiledeps.o
> metamakefile.o xmloutput.o pbuilder_pbx.o borland_bmake.o msvc_vcproj.o
> msvc_vcxproj.o msvc_nmake.o msvc_objectmodel.o msbuild_objectmodel.o
> symmake.o initprojectdeploy_symbian.o symmake_abld.o symmake_sbsv2.o
> symbiancommon.o registry.o epocroot.o qtextcodec.o qutfcodec.o qstring.o
> qtextstream.o qiodevice.o qmalloc.o qglobal.o qbytearray.o
> qbytearraymatcher.o qdatastream.o qbuffer.o qlist.o qfile.o
> qfsfileengine_unix.o qfsfileengine_iterator_unix.o qfsfileengine.o
> qfsfileengine_iterator.o qregexp.o qvector.o qbitarray.o qdir.o
> qdiriterator.o quuid.o qhash.o qfileinfo.o qdatetime.o qstringlist.o
> qabstractfileengine.o qtemporaryfile.o qmap.o qmetatype.o qsettings.o
> qlibraryinfo.o qvariant.o qvsnprintf.o qlocale.o qlinkedlist.o qurl.o
> qnumeric.o qcryptographichash.o qxmlstream.o qxmlutils.o -m32
> /usr/bin/ld: skipping incompatible
> /usr/lib/gcc/x86_64-linux-gnu/4.7/libstdc++.so when searching for -lstdc++
> /usr/bin/ld: skipping incompatible
> /usr/lib/gcc/x86_64-linux-gnu/4.7/libstdc++.a when searching for -lstdc++
> <snip>
>
> As I guess, it seems the hostcompiler is used to link some qt-stuff an in
> the end it misses some important lib. Does anyone have an idea about the
> problem ? It seems to be related to the host-installation: I use an ubuntu
> 12.10 system, fully uptodate; ia32 package is installed.
>
Look at the g++ call the "-m32" argument:
Ouoting g++ manual:
"-m32
-m64
-mx32
Generate code for a 32-bit or 64-bit environment. The -m32 option
sets "int", "long", and pointer types to 32 bits, and generates
code that runs on any i386 system.
The -m64 option sets "int" to 32 bits and "long" and pointer types
to 64 bits, and generates code for the x86-64 architecture. For
Darwin only the -m64 option also turns off the -fno-pic and
-mdynamic-no-pic options.
The -mx32 option sets "int", "long", and pointer types to 32 bits,
and generates code for the x86-64 architecture."
So you using a x86_64 system and try to build qmake with a -m32 argument
linked to a libstdc++ which are build for 64 bit system. This can't be
work. Check why there is a -m32.
- Alex
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ptxdist] ptxdist go abort when trying to link qt against libstdc++
2014-04-11 6:23 ` Alexander Aring
@ 2014-04-23 7:20 ` Michael Olbrich
0 siblings, 0 replies; 3+ messages in thread
From: Michael Olbrich @ 2014-04-23 7:20 UTC (permalink / raw)
To: ptxdist
On Fri, Apr 11, 2014 at 08:23:45AM +0200, Alexander Aring wrote:
> On Thu, Apr 10, 2014 at 03:18:19PM +0200, Marc Michalewicz, Railtec Systems GmbH wrote:
> > Hello,
> >
> > i try to build a ptxdist systeme - the first time.
> > My Cross-Toolchain - target i686, host x86_64 - was built successfully in
> > the end
> > but now I am really stuck at this point during the "ptxdist go" - stage:
> >
> > <snip>
> > g++ -o "/home/marc/svn/ptxdist/ptxdist_CPU/platform/build-host/qt-everywhere-opensource-src-4.7.3-build/bin/qmake"
> > project.o property.o main.o makefile.o unixmake2.o unixmake.o mingw_make.o
> > option.o winmakefile.o projectgenerator.o meta.o makefiledeps.o
> > metamakefile.o xmloutput.o pbuilder_pbx.o borland_bmake.o msvc_vcproj.o
> > msvc_vcxproj.o msvc_nmake.o msvc_objectmodel.o msbuild_objectmodel.o
> > symmake.o initprojectdeploy_symbian.o symmake_abld.o symmake_sbsv2.o
> > symbiancommon.o registry.o epocroot.o qtextcodec.o qutfcodec.o qstring.o
> > qtextstream.o qiodevice.o qmalloc.o qglobal.o qbytearray.o
> > qbytearraymatcher.o qdatastream.o qbuffer.o qlist.o qfile.o
> > qfsfileengine_unix.o qfsfileengine_iterator_unix.o qfsfileengine.o
> > qfsfileengine_iterator.o qregexp.o qvector.o qbitarray.o qdir.o
> > qdiriterator.o quuid.o qhash.o qfileinfo.o qdatetime.o qstringlist.o
> > qabstractfileengine.o qtemporaryfile.o qmap.o qmetatype.o qsettings.o
> > qlibraryinfo.o qvariant.o qvsnprintf.o qlocale.o qlinkedlist.o qurl.o
> > qnumeric.o qcryptographichash.o qxmlstream.o qxmlutils.o -m32
> > /usr/bin/ld: skipping incompatible
> > /usr/lib/gcc/x86_64-linux-gnu/4.7/libstdc++.so when searching for -lstdc++
> > /usr/bin/ld: skipping incompatible
> > /usr/lib/gcc/x86_64-linux-gnu/4.7/libstdc++.a when searching for -lstdc++
> > <snip>
> >
> > As I guess, it seems the hostcompiler is used to link some qt-stuff an in
> > the end it misses some important lib. Does anyone have an idea about the
> > problem ? It seems to be related to the host-installation: I use an ubuntu
> > 12.10 system, fully uptodate; ia32 package is installed.
> >
>
> Look at the g++ call the "-m32" argument:
>
> Ouoting g++ manual:
>
> "-m32
> -m64
> -mx32
> Generate code for a 32-bit or 64-bit environment. The -m32 option
> sets "int", "long", and pointer types to 32 bits, and generates
> code that runs on any i386 system.
>
> The -m64 option sets "int" to 32 bits and "long" and pointer types
> to 64 bits, and generates code for the x86-64 architecture. For
> Darwin only the -m64 option also turns off the -fno-pic and
> -mdynamic-no-pic options.
>
> The -mx32 option sets "int", "long", and pointer types to 32 bits,
> and generates code for the x86-64 architecture."
>
> So you using a x86_64 system and try to build qmake with a -m32 argument
> linked to a libstdc++ which are build for 64 bit system. This can't be
> work. Check why there is a -m32.
My guess is, that the qt configure script is at fault here. Qt 4.7.3 is
really old. This is probably fixed in newer version.
Michael
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-23 7:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-10 13:18 [ptxdist] ptxdist go abort when trying to link qt against libstdc++ Marc Michalewicz, Railtec Systems GmbH
2014-04-11 6:23 ` Alexander Aring
2014-04-23 7:20 ` Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox