LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   ARM Toolchain Problem (http://www.linuxquestions.org/questions/linux-general-1/arm-toolchain-problem-350988/)

richardji 08-07-2005 10:54 PM

ARM Toolchain Problem
 
Hi,
I want to build a ARM Toolchain for the S3C44B0 board.
I tried to use:
binutils-2.15, gcc-core-2.95.3, glibc-2.2.3, glibc-linuxthreads-2.2.3,
linux-2.6.0, patch-2.6.0-rmk7.

binutils compiles successfully.Then,I begin configuring gcc-2.95.3,which seems no problem.
But when I make, some errors follow:

libgcc1.S: Assembler messages:
libgcc1.S:1: Warning: rest of line ignored; first ignored character is `@'
libgcc1.S:2: Warning: rest of line ignored; first ignored character is `@'
libgcc1.S:71: Error: no such instruction: `dividend .req r0'
libgcc1.S:72: Error: no such instruction: `divisor .req r1'
libgcc1.S:73: Error: no such instruction: `result .req r2'
libgcc1.S:74: Error: no such instruction: `curbit .req r3'
libgcc1.S:75: Error: no such instruction: `ip .req r12'
libgcc1.S:76: Error: no such instruction: `sp .req r13'
libgcc1.S:77: Error: no such instruction: `lr .req r14'
libgcc1.S:78: Error: no such instruction: `pc .req r15'
libgcc1.S:86: Error: expecting operand after ','; got nothing
libgcc1.S:87: Error: no such instruction: `beq Ldiv0'
libgcc1.S:88: Error: expecting operand after ','; got nothing
libgcc1.S:89: Error: expecting operand after ','; got nothing
libgcc1.S:90: Error: too many memory references for `cmp'
libgcc1.S:91: Error: no such instruction: `bcc Lgot_result'
libgcc1.S:93: Warning: rest of line ignored; first ignored character is `@'
libgcc1.S:94: Warning: rest of line ignored; first ignored character is `@'
libgcc1.S:95: Warning: rest of line ignored; first ignored character is `@'
libgcc1.S:96: Warning: rest of line ignored; first ignored character is `@'
libgcc1.S:97: Error: expecting operand after ','; got nothing
libgcc1.S:98: Error: no such instruction: `cmpcc divisor,dividend'
libgcc1.S:99: Error: no such instruction: `movcc divisor,divisor,lsl'
libgcc1.S:100: Error: no such instruction: `movcc curbit,curbit,lsl'
libgcc1.S:101: Error: no such instruction: `bcc Loop1'
libgcc1.S:104: Warning: rest of line ignored; first ignored character is `@'
libgcc1.S:105: Warning: rest of line ignored; first ignored character is `@'
libgcc1.S:106: Error: expecting operand after ','; got nothing
libgcc1.S:107: Error: no such instruction: `cmpcc divisor,dividend'
libgcc1.S:108: Error: no such instruction: `movcc divisor,divisor,lsl'
libgcc1.S:109: Error: no such instruction: `movcc curbit,curbit,lsl'
libgcc1.S:110: Error: no such instruction: `bcc Lbignum'
libgcc1.S:113: Warning: rest of line ignored; first ignored character is `@'
libgcc1.S:114: Warning: rest of line ignored; first ignored character is `@'
libgcc1.S:115: Warning: rest of line ignored; first ignored character is `@'
libgcc1.S:116: Warning: rest of line ignored; first ignored character is `@'
libgcc1.S:117: Error: too many memory references for `cmp'
libgcc1.S:118: Error: no such instruction: `subcs dividend,dividend,divisor'
libgcc1.S:119: Error: no such instruction: `orrcs result,result,curbit'
libgcc1.S:120: Error: too many memory references for `cmp'
libgcc1.S:121: Error: no such instruction: `subcs dividend,dividend,divisor,lsr'
libgcc1.S:122: Error: no such instruction: `orrcs result,result,curbit,lsr'
libgcc1.S:123: Error: too many memory references for `cmp'
libgcc1.S:124: Error: no such instruction: `subcs dividend,dividend,divisor,lsr'
libgcc1.S:125: Error: no such instruction: `orrcs result,result,curbit,lsr'
libgcc1.S:126: Error: too many memory references for `cmp'
libgcc1.S:127: Error: no such instruction: `subcs dividend,dividend,divisor,lsr'
libgcc1.S:128: Error: no such instruction: `orrcs result,result,curbit,lsr'
libgcc1.S:129: Error: expecting operand after ','; got nothing
libgcc1.S:130: Error: no such instruction: `movnes curbit,curbit,lsr'
libgcc1.S:131: Error: no such instruction: `movne divisor,divisor,lsr'
libgcc1.S:132: Error: no such instruction: `bne Loop3'
libgcc1.S:134: Error: too many memory references for `mov'
libgcc1.S:135: Error: too many memory references for `mov'
libgcc1.S:138: Error: invalid char '[' beginning operand 2 `[sp'
libgcc1.S:139: Error: no such instruction: `bl __div0 (PLT)'
libgcc1.S:140: Error: expecting operand after ','; got nothing
libgcc1.S:141: Error: no such instruction: `ldmia sp!,{pc}'
make[1]: *** [libgcc1-asm.a] Error 1
make[1]: Leaving directory `/home/richard/tars/builddir/gcc-core/gcc'
make: *** [all-gcc] Error 2

Can anybody help me?
Thanks for your help.

jailbait 08-08-2005 05:44 PM

"I begin configuring gcc-2.95.3,which seems no problem.
But when I make, some errors follow:

libgcc1.S: Assembler messages:
libgcc1.S:1: Warning: rest of line ignored; first ignored character is `@'"

My guess is that your libgcc version is incompatible with gcc-2.95.3. Try compiling gcc as static instead:

make BOOT_LDFLAGS=-static bootstrap &&

----------------------------
Steve Stites

richardji 08-08-2005 11:24 PM

OK,I have installed gcc-2.95.3.But there is a new problem of glibc-2,2,3.
Configuring glibc-2.2.3 is OK, there are errors when making:

makeinfo: Removing output file `/home/richard/tars/sourcedir/glibc-2.2.3/manual/libc.info' due to errors; use --force to preserve.
make[2]: *** [libc.info] Error 2
make[2]: Leaving directory `/home/richard/tars/sourcedir/glibc-2.2.3/manual'
make[1]: *** [info] Error 2
make[1]: Leaving directory `/home/richard/tars/sourcedir/glibc-2.2.3'
make: *** [info] Error 2

Jailbait, can you tell me why?
Thanks!


All times are GMT -5. The time now is 03:55 AM.