I rebased my branch. https://github.com/garasubo/frankenlibc/tree/stable-arm
In this branch, I met another error as follow: /usr/lib/gcc/arm-none-eabi/4.9.2/../../../../arm-none-eabi/bin/ld: error: rumpkernel.o uses VFP register arguments, virtif_user.o does not /usr/lib/gcc/arm-none-eabi/4.9.2/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file virtif_user.o collect2: error: ld returned 1 exit status It seems to be from building src/lib/libipsec. 2015-05-18 18:46 GMT+09:00 Justin Cormack <[email protected]>: > On 18 May 2015 at 09:49, Takumi Shimada <[email protected]> wrote: > > Hi, > > > > I'm working on Cortex-A7 board. > > This Cortex-A7 board has FPU. Therefore I tried to remove codes for > software > > floating point. > > 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? > > You need to set the flags either on the command line > ./build.sh -F CFLAGS=-mfpu=neon > or in the EXTRA_CFLAGS/EXTRA_AFLAGS in the platform.sh file > > Remove the EXTRA_CPPFLAGS="-U__VFP_FP__" line from the config, that is > just to work around the compiler getting things wrong for the soft > float target. > > I think the following is what you need though in platform.sh - seems > to build as far as I can see > appendvar EXTRA_CFLAGS "-mcpu=cortex-a7 -mfloat-abi=hard" > appendvar EXTRA_AFLAGS "-mcpu=cortex-a7 -mfloat-abi=hard" > > (can you rebase to master, I fixed the argument parsing with spaces as > well) > > Justin >
