minimo not building
Hello,
I'm using the shr/import branch, and Angstrom distribution, and I want to build minimo for a h2200 ipaq.
It fails on tmp/work/armv5te-angstrom-linux-gnueabi/minimo-1_0.02+cvs20070626-r1/mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_arm.cpp with the error message below, that is an assembler problem.
But the stange thing, is that fennec is building in the same configuration and with the same assembler instructions. (the xptcinvoke_arm.cpp is quite the same for minimo and fennec).
It have tried google to find such error but without succes.
Thanks,
Alain
below : builds of minimo and fennec for xptcinvoke_arm.cpp
----------------- building minimo ----------------
arm-angstrom-linux-gnueabi-g++ -march=armv5te -mtune=xscale -mthumb-interwork
-mthumb -o xptcinvoke_arm.o -c -fvisibility=hidden -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux\" -DOSARCH=\"Linux\" -DBUILD_ID=0000000000 -DEXPORT_XPTC_API -I../../../../../../dist/include/xpcom -I../../../../../../dist/include
-I../../../../../../dist/include/nspr -I./../.. -fPIC
-isystem/ext/oe/build-shr-0907/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include
-fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -isystem/ext/oe/build-shr-0907/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -fpermissive -fvisibility-inlines-hidden -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -Os -O2 -isystem/ext/oe/build-shr-0907/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include
-DMOZILLA_CLIENT -include ../../../../../../mozilla-config.h
-Wp,-MD,.deps/xptcinvoke_arm.pp xptcinvoke_arm.cpp
| In file included from ../../../../../../dist/include/xpcom/xptcall.h:47, | from ./../../xptcprivate.h:43, | from xptcinvoke_arm.cpp:40: | ../../../../../../dist/include/xpcom/xptinfo.h: In member function 'const
nsXPTCMiniVariant* nsXPTConstant::GetValue() const':
| ../../../../../../dist/include/xpcom/xptinfo.h:258: warning: type-punning to incomplete type might break strict-aliasing rules
| xptcinvoke_arm.cpp: In function 'void invoke_copy_to_stack(PRUint32*, PRUint32, nsXPTCVariant*)':
| xptcinvoke_arm.cpp:112: warning: cast from 'PRUint32*' to 'PRInt64*' increases required alignment of target type
| xptcinvoke_arm.cpp:116: warning: cast from 'PRUint32*' to 'PRUint64*' increases required alignment of target type
| xptcinvoke_arm.cpp:118: warning: cast from 'PRUint32*' to 'double*' increases required alignment of target type
| {standard input}: Assembler messages:
| {standard input}:28: Error: lo register required -- `ldr ip,[r5,#16]'
| {standard input}:33: Error: lo register required -- `sub sp,sp,r4'
| {standard input}:37: Error: lo register required -- `ldr ip,[r5,#20]'
| {standard input}:44: Error: lo register required -- `ldr ip,[r1,r2]'
| {standard input}:46: Error: Thumb does not support conditional execution
| {standard input}:47: Error: Thumb does not support conditional execution
| {standard input}:48: Error: Thumb does not support conditional execution
| {standard input}:49: Error: Thumb does not support conditional execution
| {standard input}:50: Error: Thumb does not support conditional execution
| make[8]: *** [xptcinvoke_arm.o] Error 1----------------------------------------
--------- building fennec --------------- tmp/work/armv5te-angstrom-linux-gnueabi/fennec-1_0.9+1.0b2pre-r3/mozilla-central/objdir/xulrunner/xpcom/reflect/xptcall/src/md/unix' xptcinvoke_arm.cpp
arm-angstrom-linux-gnueabi-g++ -march=armv5te -mtune=xscale -mthumb-interwork
-mno-thumb
-L/ext/oe/build-shr-0907/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib -Wl,-rpath-link,/ext/oe/build-shr-0907/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib
-Wl,-O1 -Wl,--hash-style=gnu -o xptcinvoke_arm.o -c -fvisibility=hidden
-DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux\" -DOSARCH=Linux -DEXPORT_XPTC_API
-D_IMPL_NS_COM -I/ext/oe/build-shr-0907/tmp/work/armv5te-angstrom-linux-gnueabi/fennec-1_0.9+1.0b2pre-r3/mozilla-central/xpcom/reflect/xptcall/src/md/unix/../.. -I/ext/oe/build-shr-0907/tmp/work/armv5te-angstrom-linux-gnueabi/fennec-1_0.9+1.0b2pre-r3/mozilla-central/xpcom/reflect/xptcall/src/md/unix/../../../../xptinfo/src
-I/ext/oe/build-shr-0907/tmp/work/armv5te-angstrom-linux-gnueabi/fennec-1_0.9+1.0b2pre-r3/mozilla-central/xpcom/reflect/xptcall/src/md/unix
-I. -I../../../../../../dist/include/string -I../../../../../../dist/include
-I../../../../../../dist/include/xpcom -I/ext/oe/build-shr-0907/tmp/work/armv5te-angstrom-linux-gnueabi/fennec-1_0.9+1.0b2pre-r3/mozilla-central/objdir/xulrunner/dist/include/nspr
-fPIC
-isystem/ext/oe/build-shr-0907/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include
-fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof
-Wno-long-long -pedantic
-isystem/ext/oe/build-shr-0907/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include
-Os -fno-signed-char -fno-strict-aliasing -fpermissive
-fvisibility-inlines-hidden -fno-strict-aliasing -fshort-wchar -pthread -pipe
-DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions -finline-limit=50
-O2
-isystem/ext/oe/build-shr-0907/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include
-DMOZILLA_CLIENT -include ../../../../../../mozilla-config.h
-Wp,-MD,.deps/xptcinvoke_arm.pp /ext/oe/build-shr-0907/tmp/work/armv5te-angstrom-linux-gnueabi/fennec-1_0.9+1.0b2pre-r3/mozilla-central/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_arm.cpp /ext/oe/build-shr-0907/tmp/work/armv5te-angstrom-linux-gnueabi/fennec-1_0.9+1.0b2pre-r3/mozilla-central/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_arm.cpp:
In function 'void invoke_copy_to_stack(PRUint32*, PRUint32, nsXPTCVariant*)':
/ext/oe/build-shr-0907/tmp/work/armv5te-angstrom-linux-gnueabi/fennec-1_0.9+1.0b2pre-r3/mozilla-central/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_arm.cpp:143:
warning: cast from 'PRUint32*' to 'PRInt64*' increases required alignment of
target type /ext/oe/build-shr-0907/tmp/work/armv5te-angstrom-linux-gnueabi/fennec-1_0.9+1.0b2pre-r3/mozilla-central/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_arm.cpp:148:
warning: cast from 'PRUint32*' to 'PRUint64*' increases required alignment of
target type /ext/oe/build-shr-0907/tmp/work/armv5te-angstrom-linux-gnueabi/fennec-1_0.9+1.0b2pre-r3/mozilla-central/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_arm.cpp:151:
warning: cast from 'PRUint32*' to 'double*' increases required alignment of
target type
arm-angstrom-linux-gnueabi-g++: -rpath-link: linker input file unused because
linking not done
arm-angstrom-linux-gnueabi-g++:
/ext/oe/build-shr-0907/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib:
linker input file unused because linking not done
arm-angstrom-linux-gnueabi-g++: -O1: linker input file unused because linking
not done
arm-angstrom-linux-gnueabi-g++: --hash-style=gnu: linker input file unused
because linking not done
--------------------------
Quoted 4 lines · On 20-09-09 11:02, Alain2210 wrote:
Hello,
I'm using the shr/import branch, and Angstrom distribution, and I want to build minimo for a h2200 ipaq.
If you want to build angstrom, use org.openembedded.dev or stable/2009 anything else is unsupported.
regards,
Koen
Hello
Selon Koen Kooi <[email protected]>:
Quoted 10 lines · On 20-09-09 11:02, Alain2210 wrote:
Quoted 3 lines
Hello,
I'm using the shr/import branch, and Angstrom distribution, and I want to
build
Quoted 1 line
minimo for a h2200 ipaq.
If you want to build angstrom, use org.openembedded.dev or stable/2009 anything else is unsupported.
With respect to minimo, I'm building stable/2009. Is tinderdox or narcissus able to say if minimo can be built now ?
Thanks,
Alain
Quoted 53 lines · On Sun, Sep 20, 2009 at 2:02 AM, Alain2210 <[email protected]> wrote:
Hello,
I'm using the shr/import branch, and Angstrom distribution, and I want to build minimo for a h2200 ipaq.
It fails on tmp/work/armv5te-angstrom-linux-gnueabi/minimo-1_0.02+cvs20070626-r1/mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_arm.cpp with the error message below, that is an assembler problem.
But the stange thing, is that fennec is building in the same configuration and with the same assembler instructions. (the xptcinvoke_arm.cpp is quite the same for minimo and fennec).
It have tried google to find such error but without succes.
Thanks,
Alain
below : builds of minimo and fennec for xptcinvoke_arm.cpp
----------------- building minimo ---------------- arm-angstrom-linux-gnueabi-g++ -march=armv5te -mtune=xscale -mthumb-interwork
(quoted diff) +0
-5-mthumb -o xptcinvoke_arm.o -c -fvisibility=hidden -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux\" -DOSARCH=\"Linux\" -DBUILD_ID=0000000000 -DEXPORT_XPTC_API -I../../../../../../dist/include/xpcom -I../../../../../../dist/include -I../../../../../../dist/include/nspr -I./../.. -fPIC -isystem/ext/oe/build-shr-0907/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include-fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align
(quoted diff) +0
-7-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -isystem/ext/oe/build-shr-0907/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -fpermissive -fvisibility-inlines-hidden -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -Os -O2 -isystem/ext/oe/build-shr-0907/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/include-DMOZILLA_CLIENT -include
../../../../../../mozilla-config.h-Wp,-MD,.deps/xptcinvoke_arm.pp xptcinvoke_arm.cpp| In file included from ../../../../../../dist/include/xpcom/xptcall.h:47, | from ./../../xptcprivate.h:43, | from xptcinvoke_arm.cpp:40: | ../../../../../../dist/include/xpcom/xptinfo.h: In member function 'constnsXPTCMiniVariant*
nsXPTConstant::GetValue()const':
|../../../../../../dist/include/xpcom/xptinfo.h:258: warning: type-punning to incomplete type might break strict-aliasing rules
| xptcinvoke_arm.cpp: In function 'voidinvoke_copy_to_stack(PRUint32*, PRUint32, nsXPTCVariant*)':
| xptcinvoke_arm.cpp:112: warning: cast from 'PRUint32*' to 'PRInt64*' increases required alignment of target type
| xptcinvoke_arm.cpp:116: warning: cast from 'PRUint32*' to 'PRUint64*' increases required alignment of target type
| xptcinvoke_arm.cpp:118: warning: cast from 'PRUint32*' to 'double*' increases required alignment of target type
Quoted 11 lines
| {standard input}: Assembler messages:
| {standard input}:28: Error: lo register required -- `ldr ip,[r5,#16]'
| {standard input}:33: Error: lo register required -- `sub sp,sp,r4'
| {standard input}:37: Error: lo register required -- `ldr ip,[r5,#20]'
| {standard input}:44: Error: lo register required -- `ldr ip,[r1,r2]'
| {standard input}:46: Error: Thumb does not support conditional execution
| {standard input}:47: Error: Thumb does not support conditional execution
| {standard input}:48: Error: Thumb does not support conditional execution
| {standard input}:49: Error: Thumb does not support conditional execution
| {standard input}:50: Error: Thumb does not support conditional execution
| make[8]: *** [xptcinvoke_arm.o] Error 1The error messages are clear that there is mixed arm and thumb code in a file but is not properly guarded with .arm and .thumb (.code16 or .code32) directives.
It could be inline assembly.
Thanks
-Khem
Hello,
Thanks for the answer.
Selon Khem Raj <[email protected]>:
Quoted 13 lines
Quoted 11 lines
| {standard input}: Assembler messages: | {standard input}:28: Error: lo register required -- `ldr ip,[r5,#16]' | {standard input}:33: Error: lo register required -- `sub sp,sp,r4' | {standard input}:37: Error: lo register required -- `ldr ip,[r5,#20]' | {standard input}:44: Error: lo register required -- `ldr ip,[r1,r2]' | {standard input}:46: Error: Thumb does not support conditional execution | {standard input}:47: Error: Thumb does not support conditional execution | {standard input}:48: Error: Thumb does not support conditional execution | {standard input}:49: Error: Thumb does not support conditional execution | {standard input}:50: Error: Thumb does not support conditional execution | make[8]: *** [xptcinvoke_arm.o] Error 1
Quoted 5 lines
The error messages are clear that there is mixed arm and thumb code in a file but is not properly guarded with .arm and .thumb (.code16 or .code32) directives.
It could be inline assembly.
Thanks for the explanation. How can I make minimo build again ? (and do you have an idea why fennec with the same code can be built ?)
Sincerely,
Alain
Quoted 2 lines · On Sun, 2009-09-20 at 20:45 +0200, Alain2210 wrote:
Thanks for the explanation. How can I make minimo build again ? (and do you have an idea why fennec with the same code can be built ?)
Fennec uses mozilla.inc, which sets ARM_INSTRUCTION_SET = "arm". This is a somewhat sucky workaround since it will force the entire program to be built as ARM, but it would at least avoid the problem you're seeing. A better fix would be to identify the source of the offending instructions and either convert them to Thumb or put them out of line.
p.
Hello,
Selon Phil Blundell <[email protected]>:
Quoted 8 lines · On Sun, 2009-09-20 at 20:45 +0200, Alain2210 wrote:
Quoted 1 line
Thanks for the explanation. How can I make minimo build again ? (and do you
have
Quoted 1 line
an idea why fennec with the same code can be built ?)
Fennec uses mozilla.inc, which sets
ARM_INSTRUCTION_SET= "arm". This is a somewhat sucky workaround since it will force the entire program to be built as ARM, but it would at least avoid the problem you're seeing.
Sorry, for the late answer. I can confirm that with this instruction minimo builds on my laptop and works on my ipaq. Perhaps could it be put in oe.dev.
Quoted 2 lines
A better fix would be to identify the source of the offending instructions and either convert them to Thumb or put them out of line.
Sure, but it is far beyond my knowledges.
Thanks for the explanation.
Sincerely,
Alain