sheebz / iphone-dev

Automatically exported from code.google.com/p/iphone-dev
0 stars 0 forks source link

compile assemble file fail #146

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. build the NSS library via cross-compiling using arm-apple-darwin-gcc

What is the expected output? What do you see instead?
I want the NSS library built, I successfully did it under MAC with x86 arch; 
when I compile it 
using arm-apple-darwin, I got compile error such as:
"
../../../../../pr/src/md/unix/os_Darwin_ppc.s:61:Unknown instruction 'i'
../../../../../pr/src/md/unix/os_Darwin_ppc.s:61:syntax error, unexpected $end
../../../../../pr/src/md/unix/os_Darwin_ppc.s:61:Unknown instruction 'r0'
../../../../../pr/src/md/unix/os_Darwin_ppc.s:61:syntax error, unexpected $end
../../../../../pr/src/md/unix/os_Darwin_ppc.s:61:Spurious digit -1604905152.
../../../../../pr/src/md/unix/os_Darwin_ppc.s:61:Rest of line ignored. 1st junk 
character valued 
48 (0).
../../../../../pr/src/md/unix/os_Darwin_ppc.s:61:Unknown instruction 'stwcx'
../../../../../pr/src/md/unix/os_Darwin_ppc.s:61:syntax error, unexpected $end
../../../../../pr/src/md/unix/os_Darwin_ppc.s:62:Unknown instruction 'twcx'
../../../../../pr/src/md/unix/os_Darwin_ppc.s:62:syntax error, unexpected $end
../../../../../pr/src/md/unix/os_Darwin_ppc.s:62:Unknown instruction 'wcx'
../../../../../pr/src/md/unix/os_Darwin_ppc.s:62:syntax error, unexpected $end
../../../../../pr/src/md/unix/os_Darwin_ppc.s:62:Unknown instruction 'cx'
../../../../../pr/src/md/unix/os_Darwin_ppc.s:62:syntax error, unexpected $end
../../../../../pr/src/md/unix/os_Darwin_ppc.s:62:Unknown instruction 'x'
../../../../../pr/src/md/unix/os_Darwin_ppc.s:62:syntax error, unexpected $end
"

seems arm-apple-darwin-gcc think the assemble file is a mess..

What version of the product are you using? On what operating system?
I am on Mac OS X 10.5.4 with Intel process. Use llvm 42498 built following with 
the build 
instruction. Actually I have used this iphone dev tool compiled a lot of 
applications which can run 
on iphone smoothly. This is the first time I deal with assemble.

Please provide any additional information below.

Original issue reported on code.google.com by daqulazh...@gmail.com on 17 Jul 2008 at 2:21

GoogleCodeExporter commented 9 years ago
maybe this is not a defect, but I really want know what's the root cause and 
how I can fix it. So any advice will be 
appreciated.

Original comment by daqulazh...@gmail.com on 17 Jul 2008 at 2:23