Closed GoogleCodeExporter closed 8 years ago
thanks for this ... I can't get the error to trigger with iPhone 2.2. Give me
some
more time.
Original comment by wolfgang...@gmail.com
on 21 Feb 2009 at 2:06
I think I am getting this same error on multiple demos. The demos compile and
work correctly in the
simulator, but error out when targeting the device. The issue seems to be with
the following two files and the
assembly used in them.
matrix_impl.cpp
utility_impl.cpp
Here is the output:
CompileC
build/SanAngeles.build/Debug-iphoneos/SanAngeles.build/Objects-normal/armv6/matr
ix_impl.o
"/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong
Engine2/Examples/Demos/San
Angeles/../../../Math/vfpmath/matrix_impl.cpp" normal armv6 c++
com.apple.compilers.gcc.4_0
cd "/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong Engine2/Examples/Demos/San
Angeles"
setenv PATH
"/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/us
r/bin:/bin:/usr/sbin:/sb
in"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.0 -x c++ -arch armv6 -fmessage-
length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.sdk
-fvisibility=hidden -fvisibility-
inlines-hidden -gdwarf-2 -miphoneos-version-min=2.2 -iquote
"/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong
Engine2/Examples/Demos/San
Angeles/build/SanAngeles.build/Debug-iphoneos/SanAngeles.build/SanAngeles-genera
ted-files.hmap" "-
I/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong
Engine2/Examples/Demos/San
Angeles/build/SanAngeles.build/Debug-iphoneos/SanAngeles.build/SanAngeles-own-ta
rget-headers.hmap"
"-I/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong
Engine2/Examples/Demos/San
Angeles/build/SanAngeles.build/Debug-iphoneos/SanAngeles.build/SanAngeles-all-ta
rget-headers.hmap" -
iquote "/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong
Engine2/Examples/Demos/San
Angeles/build/SanAngeles.build/Debug-iphoneos/SanAngeles.build/SanAngeles-projec
t-headers.hmap" -
Wall "-F/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong
Engine2/Examples/Demos/San
Angeles/build/Debug-iphoneos" -
F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.sdk/System/Li
brary/PrivateFramewo
rks "-I/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong
Engine2/Examples/Demos/San
Angeles/build/Debug-iphoneos/include" -I../../../Include "-
I/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong
Engine2/Examples/Demos/San
Angeles/build/SanAngeles.build/Debug-iphoneos/SanAngeles.build/DerivedSources"
-include
/var/folders/WS/WSD5J9TQFWyuqjUqESHk0E+++TI/-Caches-
/com.apple.Xcode.501/SharedPrecompiledHeaders/Prefix-bbncsvrisyfeqpbgzqhfrxkqhpm
r/Prefix.pch -c
"/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong
Engine2/Examples/Demos/San
Angeles/../../../Math/vfpmath/matrix_impl.cpp" -o
"/Users/quinnbuchanan/svn/oolong/oolongengine-read-
only/Oolong Engine2/Examples/Demos/San Angeles/build/SanAngeles.build/Debug-
iphoneos/SanAngeles.build/Objects-normal/armv6/matrix_impl.o"
{standard input}:100:invalid Hi register with immediate -- `sub sp,r7,#0'
{standard input}:101:bad instruction `ldmfd sp!,{r7,pc}'
{standard input}:111:bad instruction `stmfd sp!,{r7,lr}'
{standard input}:167:invalid Hi register with immediate -- `sub sp,r7,#0'
{standard input}:168:bad instruction `ldmfd sp!,{r7,pc}'
{standard input}:178:bad instruction `stmfd sp!,{r7,lr}'
{standard input}:234:invalid Hi register with immediate -- `sub sp,r7,#0'
{standard input}:235:bad instruction `ldmfd sp!,{r7,pc}'
{standard input}:245:bad instruction `stmfd sp!,{r7,lr}'
{standard input}:256:lo register required -- `ldr ip,[sp,#8]'
{standard input}:304:invalid Hi register with immediate -- `sub sp,r7,#0'
{standard input}:305:bad instruction `ldmfd sp!,{r7,pc}'
CompileC
build/SanAngeles.build/Debug-iphoneos/SanAngeles.build/Objects-normal/armv6/util
ity_impl.o
"/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong
Engine2/Examples/Demos/San
Angeles/../../../Math/vfpmath/utility_impl.cpp" normal armv6 c++
com.apple.compilers.gcc.4_0
cd "/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong Engine2/Examples/Demos/San
Angeles"
setenv PATH
"/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/us
r/bin:/bin:/usr/sbin:/sb
in"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.0 -x c++ -arch armv6 -fmessage-
length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -isysroot
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.sdk
-fvisibility=hidden -fvisibility-
inlines-hidden -gdwarf-2 -miphoneos-version-min=2.2 -iquote
"/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong
Engine2/Examples/Demos/San
Angeles/build/SanAngeles.build/Debug-iphoneos/SanAngeles.build/SanAngeles-genera
ted-files.hmap" "-
I/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong
Engine2/Examples/Demos/San
Angeles/build/SanAngeles.build/Debug-iphoneos/SanAngeles.build/SanAngeles-own-ta
rget-headers.hmap"
"-I/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong
Engine2/Examples/Demos/San
Angeles/build/SanAngeles.build/Debug-iphoneos/SanAngeles.build/SanAngeles-all-ta
rget-headers.hmap" -
iquote "/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong
Engine2/Examples/Demos/San
Angeles/build/SanAngeles.build/Debug-iphoneos/SanAngeles.build/SanAngeles-projec
t-headers.hmap" -
Wall "-F/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong
Engine2/Examples/Demos/San
Angeles/build/Debug-iphoneos" -
F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.sdk/System/Li
brary/PrivateFramewo
rks "-I/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong
Engine2/Examples/Demos/San
Angeles/build/Debug-iphoneos/include" -I../../../Include "-
I/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong
Engine2/Examples/Demos/San
Angeles/build/SanAngeles.build/Debug-iphoneos/SanAngeles.build/DerivedSources"
-include
/var/folders/WS/WSD5J9TQFWyuqjUqESHk0E+++TI/-Caches-
/com.apple.Xcode.501/SharedPrecompiledHeaders/Prefix-bbncsvrisyfeqpbgzqhfrxkqhpm
r/Prefix.pch -c
"/Users/quinnbuchanan/svn/oolong/oolongengine-read-only/Oolong
Engine2/Examples/Demos/San
Angeles/../../../Math/vfpmath/utility_impl.cpp" -o
"/Users/quinnbuchanan/svn/oolong/oolongengine-read-
only/Oolong Engine2/Examples/Demos/San Angeles/build/SanAngeles.build/Debug-
iphoneos/SanAngeles.build/Objects-normal/armv6/utility_impl.o"
{standard input}:76:invalid Hi register with immediate -- `sub sp,r7,#0'
{standard input}:77:bad instruction `ldmfd sp!,{r7,pc}'
Hope this helps
Original comment by quinn.bu...@gmail.com
on 26 Mar 2009 at 8:35
Just had same problem and here is the solution (just for knowledge base)
Look at your Target info. You project probably properly specifies to compile
for
Thumb, but target configuration overrides it with exception. So in the Build
results
above you never see compiler option -mthumb. Just remove the line that says
ArmV6
under "Compile for thumb" in target build configuration
dns
Original comment by Zabavc...@gmail.com
on 15 Apr 2009 at 5:00
Fixed.
Original comment by wolfgang...@gmail.com
on 6 May 2009 at 7:04
I stumbled upon this thread searching google for a way to disable the -mthumb
option
in Xcode.
I just can't find it in the build part when I select "Get Info" when pressing
2nd
button on the target file.
Can you please help me?
Maybe I need to add a line somewhere?
Thanks
Original comment by urs...@gmail.com
on 9 Jun 2009 at 8:41
Original issue reported on code.google.com by
salsi...@gmail.com
on 7 Feb 2009 at 1:39