Skip to contentSkip to conversation

qt4.7.0 : QA problem : Architecture did not match

PATCH Eric Bénard 4 participants 6 messages Oct 24, 2010 – Oct 28, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

building qt4.7.0 using angstrom 2010.x for and armv5te leads to :
ERROR: QA Issue with qt4-embedded-tools: Architecture did not match (40 to 3) on /work/armv5te-angstrom-linux-gnueabi/qt4-embedded-4.7.0-r25.0/packages-split/qt4-embedded-tools/usr/bin/rcc
ERROR: QA Issue with qt4-embedded-tools: Architecture did not match (40 to 3) on /work/armv5te-angstrom-linux-gnueabi/qt4-embedded-4.7.0-r25.0/packages-split/qt4-embedded-tools/usr/bin/moc
ERROR: QA Issue with qt4-embedded-tools: Architecture did not match (40 to 3) on /work/armv5te-angstrom-linux-gnueabi/qt4-embedded-4.7.0-r25.0/packages-split/qt4-embedded-tools/usr/bin/uic
ERROR: Task 498 (/home/ebenard/OEUKREA/openembedded/recipes/qt4/qt4-embedded_4.7.0.bb, do_package) failed with exit code '1'
ERROR: '/home/ebenard/OEUKREA/openembedded/recipes/qt4/qt4-embedded_4.7.0.bb' failed

The patch below (not cleaned if OK, I'll clean and push it) fix this problem, but why these installs were added to the 4.7.0.inc file (they are not present in 4.6.* and the recipe builds fine without) ?

thanks,
Eric

recipes/qt4/qt-4.7.0.inc +4 -4
index cf4b0d8..3004b92 100644
@@ -47,10 +47,10 @@ do_compile() {
     fi
 
     unset CFLAGS CXXFLAGS
-    install -m 0755 ${STAGING_BINDIR_NATIVE}/rcc4 ${S}/bin/rcc
-    install -m 0755 ${STAGING_BINDIR_NATIVE}/moc4 ${S}/bin/moc
-    install -m 0755 ${STAGING_BINDIR_NATIVE}/uic4 ${S}/bin/uic
-    install -m 0755 ${STAGING_BINDIR_NATIVE}/lrelease4 ${S}/bin/lrelease
+#    install -m 0755 ${STAGING_BINDIR_NATIVE}/rcc4 ${S}/bin/rcc
+#    install -m 0755 ${STAGING_BINDIR_NATIVE}/moc4 ${S}/bin/moc
+#    install -m 0755 ${STAGING_BINDIR_NATIVE}/uic4 ${S}/bin/uic
+#    install -m 0755 ${STAGING_BINDIR_NATIVE}/lrelease4 ${S}/bin/lrelease
 
     oe_runmake ${EXTRA_ENV}
 }
#1 lore raw

2010/10/24 Eric Bénard <[email protected]>:

Quoted 43 lines

Hi,

building qt4.7.0 using angstrom 2010.x for and armv5te leads to :
ERROR: QA Issue with qt4-embedded-tools: Architecture did not match (40 to
3) on /work/armv5te-angstrom-linux-gnueabi/qt4-embedded-4.7.0-r25.0/packages-split/qt4-embedded-tools/usr/bin/rcc
ERROR: QA Issue with qt4-embedded-tools: Architecture did not match (40 to
3) on /work/armv5te-angstrom-linux-gnueabi/qt4-embedded-4.7.0-r25.0/packages-split/qt4-embedded-tools/usr/bin/moc
ERROR: QA Issue with qt4-embedded-tools: Architecture did not match (40 to
3) on /work/armv5te-angstrom-linux-gnueabi/qt4-embedded-4.7.0-r25.0/packages-split/qt4-embedded-tools/usr/bin/uic
ERROR: Task 498
(/home/ebenard/OEUKREA/openembedded/recipes/qt4/qt4-embedded_4.7.0.bb,
do_package) failed with exit code '1'
ERROR:
'/home/ebenard/OEUKREA/openembedded/recipes/qt4/qt4-embedded_4.7.0.bb'
failed

The patch below (not cleaned if OK, I'll clean and push it) fix this problem, but why these installs were added to the 4.7.0.inc file (they are not present in 4.6.* and the recipe builds fine without) ?

thanks,
Eric

recipes/qt4/qt-4.7.0.inc +0 -0
index cf4b0d8..3004b92 100644
@@ -47,10 +47,10 @@ do_compile() {

    fi

    unset CFLAGS CXXFLAGS
-    install -m 0755 ${STAGING_BINDIR_NATIVE}/rcc4 ${S}/bin/rcc
-    install -m 0755 ${STAGING_BINDIR_NATIVE}/moc4 ${S}/bin/moc
-    install -m 0755 ${STAGING_BINDIR_NATIVE}/uic4 ${S}/bin/uic
-    install -m 0755 ${STAGING_BINDIR_NATIVE}/lrelease4 ${S}/bin/lrelease

recipes/qt4/qt-4.7.0.inc +4 -0
+#    install -m 0755 ${STAGING_BINDIR_NATIVE}/rcc4 ${S}/bin/rcc
+#    install -m 0755 ${STAGING_BINDIR_NATIVE}/moc4 ${S}/bin/moc
+#    install -m 0755 ${STAGING_BINDIR_NATIVE}/uic4 ${S}/bin/uic
+#    install -m 0755 ${STAGING_BINDIR_NATIVE}/lrelease4 ${S}/bin/lrelease
Quoted 3 lines

    oe_runmake ${EXTRA_ENV}
 }

Hm, I' my no means a QT expert but copying files from staging to ${S} seems at least fishy to me.
Then again you might want to discuss this with cbrake. He added the lines (or perhaps the complete file) on sep 22.

Frans

#2 lore raw
In reply to Eric Bénard
Quoted 43 lines · Eric Bénard

Hi,

building qt4.7.0 using angstrom 2010.x for and armv5te leads to :
ERROR: QA Issue with qt4-embedded-tools: Architecture did not match (40 to
3) on /work/armv5te-angstrom-linux-gnueabi/qt4-embedded-4.7.0-r25.0/packages-split/qt4-embedded-tools/usr/bin/rcc
ERROR: QA Issue with qt4-embedded-tools: Architecture did not match (40 to
3) on /work/armv5te-angstrom-linux-gnueabi/qt4-embedded-4.7.0-r25.0/packages-split/qt4-embedded-tools/usr/bin/moc
ERROR: QA Issue with qt4-embedded-tools: Architecture did not match (40 to
3) on /work/armv5te-angstrom-linux-gnueabi/qt4-embedded-4.7.0-r25.0/packages-split/qt4-embedded-tools/usr/bin/uic
ERROR: Task 498
(/home/ebenard/OEUKREA/openembedded/recipes/qt4/qt4-embedded_4.7.0.bb,
do_package) failed with exit code '1'
ERROR:
'/home/ebenard/OEUKREA/openembedded/recipes/qt4/qt4-embedded_4.7.0.bb'
failed

The patch below (not cleaned if OK, I'll clean and push it) fix this problem, but why these installs were added to the 4.7.0.inc file (they are not present in 4.6.* and the recipe builds fine without) ?

thanks,
Eric

recipes/qt4/qt-4.7.0.inc +0 -0
index cf4b0d8..3004b92 100644
@@ -47,10 +47,10 @@ do_compile() {

    fi

    unset CFLAGS CXXFLAGS
-    install -m 0755 ${STAGING_BINDIR_NATIVE}/rcc4 ${S}/bin/rcc
-    install -m 0755 ${STAGING_BINDIR_NATIVE}/moc4 ${S}/bin/moc
-    install -m 0755 ${STAGING_BINDIR_NATIVE}/uic4 ${S}/bin/uic
-    install -m 0755 ${STAGING_BINDIR_NATIVE}/lrelease4 ${S}/bin/lrelease

recipes/qt4/qt-4.7.0.inc +4 -0
+#    install -m 0755 ${STAGING_BINDIR_NATIVE}/rcc4 ${S}/bin/rcc
+#    install -m 0755 ${STAGING_BINDIR_NATIVE}/moc4 ${S}/bin/moc
+#    install -m 0755 ${STAGING_BINDIR_NATIVE}/uic4 ${S}/bin/uic
+#    install -m 0755 ${STAGING_BINDIR_NATIVE}/lrelease4 ${S}/bin/lrelease
Quoted 2 lines

    oe_runmake ${EXTRA_ENV}
 }

well may be a -native recipe should be written to package those bits.

Quoted 6 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#3 lore raw
In reply to Eric Bénard
Quoted 9 lines · Eric Bénard

Hi,

building qt4.7.0 using angstrom 2010.x for and armv5te leads to :
ERROR: QA Issue with qt4-embedded-tools: Architecture did not match (40 to 3)

The patch below (not cleaned if OK, I'll clean and push it) fix this problem, but why these installs were added to the 4.7.0.inc file (they are not present in 4.6.* and the recipe builds fine without)?

I can only speculate right now. Maybe Qt insisted to builds its own version or didn't find the tools. You will need to rebuild qt4-embedded to see if it builds properly.

I can also take a look at this step later today.

#4 lore raw

Hi Holger,

Quoted 7 lines · Holger Freyther
Quoted 6 lines · Eric Bénard

Hi,

building qt4.7.0 using angstrom 2010.x for and armv5te leads to :
ERROR: QA Issue with qt4-embedded-tools: Architecture did not match (40 to 3)

Quoted 8 lines
Quoted 3 lines

The patch below (not cleaned if OK, I'll clean and push it) fix this problem, but why these installs were added to the 4.7.0.inc file (they are not present in 4.6.* and the recipe builds fine without)?

I can only speculate right now. Maybe Qt insisted to builds its own version or didn't find the tools. You will need to rebuild qt4-embedded to see if it builds properly.

I've rebuilt it and it builds fine this way.

Quoted 2 lines

I can also take a look at this step later today.

that would be greate, I won't be able to spend time on this today.

Thanks,
Eric

#5 lore raw
In reply to Eric Bénard

Hi Holger,

Quoted 19 lines · Eric Bénard

building qt4.7.0 using angstrom 2010.x for and armv5te leads to :
ERROR: QA Issue with qt4-embedded-tools: Architecture did not match (40 to 3)
on /work/armv5te-angstrom-linux-gnueabi/qt4-embedded-4.7.0-r25.0/packages-split/qt4-embedded-tools/usr/bin/rcc

ERROR: QA Issue with qt4-embedded-tools: Architecture did not match (40 to 3)
on /work/armv5te-angstrom-linux-gnueabi/qt4-embedded-4.7.0-r25.0/packages-split/qt4-embedded-tools/usr/bin/moc

ERROR: QA Issue with qt4-embedded-tools: Architecture did not match (40 to 3)
on /work/armv5te-angstrom-linux-gnueabi/qt4-embedded-4.7.0-r25.0/packages-split/qt4-embedded-tools/usr/bin/uic

ERROR: Task 498 (/home/ebenard/OEUKREA/openembedded/recipes/qt4/qt4-embedded_4.7.0.bb, do_package) failed with exit code '1'
ERROR: '/home/ebenard/OEUKREA/openembedded/recipes/qt4/qt4-embedded_4.7.0.bb' failed

Quoted 4 lines

The patch below (not cleaned if OK, I'll clean and push it) fix this problem, but why these installs were added to the 4.7.0.inc file (they are not present in 4.6.* and the recipe builds fine without) ?

forget this problem, rebuilding from scratch don't show the issue so this problem was certainly coming from my tmp being in a bad state.

Eric