All of lore.kernel.org
 help / color / mirror / Atom feed
* qt4-embedded build issue
@ 2012-08-22  2:17 Cooper Jr., Franklin
  2012-08-22 16:16 ` Denys Dmytriyenko
  0 siblings, 1 reply; 3+ messages in thread
From: Cooper Jr., Franklin @ 2012-08-22  2:17 UTC (permalink / raw)
  To: meta-arago@arago-project.org; +Cc: Cooper Jr., Franklin

[-- Attachment #1: Type: text/plain, Size: 1428 bytes --]

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.


Regards,
Franklin Cooper Jr.
Texas Instruments
Application Engineer
fcooper@ti.com<mailto:fcooper@ti.com>


[-- Attachment #2: Type: text/html, Size: 3737 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: qt4-embedded build issue
  2012-08-22  2:17 qt4-embedded build issue Cooper Jr., Franklin
@ 2012-08-22 16:16 ` Denys Dmytriyenko
  2012-08-22 16:25   ` Cooper Jr., Franklin
  0 siblings, 1 reply; 3+ messages in thread
From: Denys Dmytriyenko @ 2012-08-22 16:16 UTC (permalink / raw)
  To: Cooper Jr., Franklin; +Cc: meta-arago@arago-project.org

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: qt4-embedded build issue
  2012-08-22 16:16 ` Denys Dmytriyenko
@ 2012-08-22 16:25   ` Cooper Jr., Franklin
  0 siblings, 0 replies; 3+ messages in thread
From: Cooper Jr., Franklin @ 2012-08-22 16:25 UTC (permalink / raw)
  To: Dmytriyenko, Denys; +Cc: meta-arago@arago-project.org

Ahh yeah I added the usually thumb option on my setup. I believe I added it via the CFLAGS in EXTRA_OEMAKE

On Aug 22, 2012, at 11:16 AM, "Dmytriyenko, Denys" <denys@ti.com> wrote:

> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-22 16:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-22  2:17 qt4-embedded build issue Cooper Jr., Franklin
2012-08-22 16:16 ` Denys Dmytriyenko
2012-08-22 16:25   ` Cooper Jr., Franklin

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.