From: Denys Dmytriyenko <denys@ti.com>
To: "Cooper Jr., Franklin" <fcooper@ti.com>
Cc: "meta-arago@arago-project.org" <meta-arago@arago-project.org>
Subject: Re: qt4-embedded build issue
Date: Wed, 22 Aug 2012 12:16:49 -0400 [thread overview]
Message-ID: <20120822161648.GB21025@edge> (raw)
In-Reply-To: <8F29D6B095ED194EA1980491A5E029710C2A7E8F@DFLE09.ent.ti.com>
On Wed, Aug 22, 2012 at 02:17:29AM +0000, Cooper Jr., Franklin wrote:
> Bitbaking qt4-embedded seems to build correctly but resulted in many libraries not being built and a lot of broken sym links. Looking into the do_compile.log I realized that for libQtGuiE I received this error:
>
> /home/franklin/toolchain/gcc-linaro-arm-linux-gnueabi-2012.03-20120326_linux/bin/../lib/gcc/arm-linux-gnueabi/4.6.3/../../../../arm-linux-gnueabi/bin/ld: .obj/release-shared-emb-arm/qgrayraster.o: relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
> .obj/release-shared-emb-arm/qgrayraster.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[1]: [../../lib/libQtGuiE.so.4.8.0] Error 1 (ignored)
>
> QtGuiE is needed by several other libraries which is why a lot of the other libraries were not being built. Based on the suggestion of the error and posts such as this http://industriousone.com/topic/issue-placement-fpic-linux I tried to add -fPIC to either CFLAGS or CXXFLAGS. But then I receive an error saying PIC was an invalid option. It seems that fPIC was an option for older versions of gcc but the external linaro toolchain being used doesn't contain this option. Any suggestions on how to fix this?
>
> FYI building qt4embedded using the built in toolchain doesn't experience this issue.
Strangely, my build of qt4-embedded simply fails with very descriptive
and now familiar error:
| {standard input}: Assembler messages:
| {standard input}:49: Error: Thumb does not support negative register indexing -- `ldrb r0,[r4,-r12]'
| {standard input}:104: Error: thumb conditional instruction should be in IT block -- `vmuleq.f32 s5,s26,s2'
| {standard input}:105: Error: thumb conditional instruction should be in IT block -- `vdiveq.f32 s5,s5,s3'
| {standard input}:106: Error: thumb conditional instruction should be in IT block -- `vdivne.f32 s5,s2,s3'
| {standard input}:115: Error: thumb conditional instruction should be in IT block -- `vdiveq.f32 s5,s2,s3'
--
Denys
next prev parent reply other threads:[~2012-08-22 16:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-22 2:17 qt4-embedded build issue Cooper Jr., Franklin
2012-08-22 16:16 ` Denys Dmytriyenko [this message]
2012-08-22 16:25 ` Cooper Jr., Franklin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120822161648.GB21025@edge \
--to=denys@ti.com \
--cc=fcooper@ti.com \
--cc=meta-arago@arago-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.