gustavonihei commented on pull request #3836: URL: https://github.com/apache/incubator-nuttx/pull/3836#issuecomment-854926356
> I am currently stuck with quickfeather/nsh config. If anyone knows anything about this configuration please help. > > ``` > /tools/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: error: /github/workspace/sources/nuttx/staging/libsched.a(exit.o) uses VFP register arguments, /github/workspace/sources/nuttx/nuttx does not > /tools/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /github/workspace/sources/nuttx/staging/libsched.a(exit.o) > /tools/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: error: /github/workspace/sources/nuttx/staging/libsched.a(nx_start.o) uses VFP register arguments, /github/workspace/sources/nuttx/nuttx does not > /tools/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /github/workspace/sources/nuttx/staging/libsched.a(nx_start.o) > ``` > > I also tried to change ld to gcc on mips, renesas, x86 and x86-64, but failed to build. I can completely rewrite makefiles, but i don't know why they were written as they were written. It seems that `quickfeather` is missing `-nostartfiles` and `-nodefaultlibs` flags. Besides the changes you've already applied, I got to make it build by applying the following patch: ```patch diff --git a/boards/arm/eoss3/quickfeather/scripts/Make.defs b/boards/arm/eoss3/quickfeather/scripts/Make.defs index 0f9a6105d0..d551850980 100644 --- a/boards/arm/eoss3/quickfeather/scripts/Make.defs +++ b/boards/arm/eoss3/quickfeather/scripts/Make.defs @@ -63,6 +63,8 @@ CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS) CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) AFLAGS := $(CFLAGS) -D__ASSEMBLY__ -NXFLATLDFLAGS1 = -r -d -warn-common +LDFLAGS := -nostartfiles -nodefaultlibs + +NXFLATLDFLAGS1 = -r -Wl,-d -Wl,-warn-common NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-pcrel.ld -no-check-sections LDNXFLATFLAGS = -e main -s 2048 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org