Skip to content

[HELP] <title>Failed to build module example with mips-linux-gnu- toolchain. #19178

@wangtao13

Description

@wangtao13

Description

I am working on nuttx-12.13 for a MIPS SOC, I just want to try module in nuttx, so I enable the module example in menuconfig and make it.
Finally, I got an error as follows,

LD: nuttx
/home/t/develop/nuttx/staging/libc.a(elf_bind.o): In function `libelf_relocate':
elf/elf_bind.c:(.text+0x898): undefined reference to `up_relocate'
/home/t/develop/nuttx/staging/libc.a(elf_bind.o): In function `libelf_relocateadd':
elf/elf_bind.c:(.text+0xee4): undefined reference to `up_relocateadd'
/home/t/develop/nuttx/staging/libc.a(elf_bind.o): In function `libelf_relocatedyn':
elf/elf_bind.c:(.text+0x187c): undefined reference to `up_relocate'
/home/t/develop/nuttx/staging/libc.a(elf_verify.o): In function `libelf_verifyheader':
elf/elf_verify.c:(.text+0xb4): undefined reference to `up_checkarch'
make[1]: *** [Makefile:109: nuttx] Error 1

The toolchain of mips-linux-gnu does NOT include libraries for ELF, so I am wondering how to fix it and make module example be built well.

And I did NOT find any definition of up_checkarch() in arch/, what is this function??

Thanks,

Verification

  • I have verified before submitting the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions