Hi,

I'm working on Cortex-A7 board.
This Cortex-A7 board has FPU. Therefore I tried to remove codes for
software floating point.

I changed platform.sh to set flags as follow:
https://github.com/garasubo/frankenlibc/commit/304d106829767ac51434c90ed982d84ae2588f6b

But When I executed build.sh, it failed as follow:
>> done installing headers
/tmp/ccbs04oU.s: Assembler messages:
/tmp/ccbs04oU.s:34: Error: selected processor does not support ARM mode
`vmrs r0,fpscr'
--- fpgetround.o ---
*** [fpgetround.o] Error code 1

nbmake[1]: stopped in /home/garasubo/workspace/frankenlibc/src/lib/libc
/tmp/cchoHylU.s: Assembler messages:
/tmp/cchoHylU.s:37: Error: selected processor does not support ARM mode
`vmrs r3,fpscr'
/tmp/cchoHylU.s:49: Error: selected processor does not support ARM mode
`vmsr fpscr,r3'
--- fpsetround.o ---
*** [fpsetround.o] Error code 1

It seems to occur on building src/lib/libc.
When I compiled a small code including `vmrs r0,fpscr` with
`arm-none-eabi-gcc -g -Wall -mcpu=cortex-a7 -mfpu=neon -marm
-mthumb-interwork -nostdlib -fno-builtin`,
the compilation was successful.
I'm afraid the compilation of src/lib/libc doesn't use my flags.

Could you tell me how to fix them?

Thanks,

Takumi

Reply via email to