This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3352: SDK 09.01.00.001 cross compilation issue

Part Number: AM3352

Hello,

We are trying to move to SDK version 09.01.00.001 but we are having some issues when trying to compile the kernel.

We are following instructions from https://software-dl.ti.com/processor-sdk-linux/esd/AM335X/09_01_00_001/exports/docs/linux/Foundational_Components_Kernel_Users_Guide.html#getting-the-kernel-source-code

- Install SDK

- export PATH=/opt/crosstool/ti-processor-sdk-linux-am335x-evm-09.01.00.001/external-toolchain-dir/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin:$PATH

- make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- distclean

- make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- multi_v7_defconfig ti_multi_v7_prune.config no_smp.config

- make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- zImage

 SYNC    include/config/auto.conf.cmd
 SYSHDR  arch/arm/include/generated/uapi/asm/unistd-oabi.h
 SYSHDR  arch/arm/include/generated/uapi/asm/unistd-eabi.h
 HOSTCC  scripts/dtc/dtc.o
 HOSTCC  scripts/dtc/flattree.o
 HOSTCC  scripts/dtc/fstree.o
 HOSTCC  scripts/dtc/data.o
 HOSTCC  scripts/dtc/livetree.o
 HOSTCC  scripts/dtc/treesource.o
 HOSTCC  scripts/dtc/srcpos.o
 HOSTCC  scripts/dtc/checks.o
 HOSTCC  scripts/dtc/util.o
 LEX     scripts/dtc/dtc-lexer.lex.c
 YACC    scripts/dtc/dtc-parser.tab.[ch]
 HOSTCC  scripts/dtc/dtc-lexer.lex.o
 HOSTCC  scripts/dtc/dtc-parser.tab.o
 HOSTLD  scripts/dtc/dtc
 HOSTCC  scripts/dtc/libfdt/fdt.o
 HOSTCC  scripts/dtc/libfdt/fdt_ro.o
 HOSTCC  scripts/dtc/libfdt/fdt_wip.o
 HOSTCC  scripts/dtc/libfdt/fdt_sw.o
 HOSTCC  scripts/dtc/libfdt/fdt_rw.o
 HOSTCC  scripts/dtc/libfdt/fdt_strerror.o
 HOSTCC  scripts/dtc/libfdt/fdt_empty_tree.o
 HOSTCC  scripts/dtc/libfdt/fdt_addresses.o
 HOSTCC  scripts/dtc/libfdt/fdt_overlay.o
 HOSTCC  scripts/dtc/fdtoverlay.o
 HOSTLD  scripts/dtc/fdtoverlay
 HOSTCXX scripts/gcc-plugins/arm_ssp_per_task_plugin.so
In file included from scripts/gcc-plugins/gcc-common.h:95,
                from scripts/gcc-plugins/arm_ssp_per_task_plugin.c:3:
/mnt/SDA/opt/crosstool/ti-processor-sdk-linux-am335x-evm-09.01.00.001/external-toolchain-dir/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/11.3.1/plugin/include/builtins.h:23:10: fatal error: mpc.h:
No existe el archivo o el directorio
  23 | #include <mpc.h>

We had not this issue before, could you please help us with this issue?

Best regards and thank you

  • Hi,

    Thanks for your query.

    Our expert will look into this and get back to you.

    Regards

  • Hello,
    can we try "apt-get install libgmp3-dev"?
    Best,
    -Hong

  • Hello,

    Thank you for your help.

    I have installed this package:

    apt list --installed | grep libgmp3

    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

    libgmp3-dev/focal-updates,focal-security,now 2:6.2.0+dfsg-4ubuntu0.1 amd64 [instalado]

    But still have the same issue:

    make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- zImage -j11

    SYNC include/config/auto.conf.cmd
    SYSHDR arch/arm/include/generated/uapi/asm/unistd-oabi.h
    SYSHDR arch/arm/include/generated/uapi/asm/unistd-eabi.h
    WRAP arch/arm/include/generated/uapi/asm/kvm_para.h
    WRAP arch/arm/include/generated/uapi/asm/bitsperlong.h
    WRAP arch/arm/include/generated/uapi/asm/bpf_perf_event.h
    WRAP arch/arm/include/generated/uapi/asm/errno.h
    WRAP arch/arm/include/generated/uapi/asm/ioctl.h
    WRAP arch/arm/include/generated/uapi/asm/ipcbuf.h
    WRAP arch/arm/include/generated/uapi/asm/msgbuf.h
    WRAP arch/arm/include/generated/uapi/asm/param.h
    WRAP arch/arm/include/generated/uapi/asm/poll.h
    WRAP arch/arm/include/generated/uapi/asm/resource.h
    WRAP arch/arm/include/generated/uapi/asm/sembuf.h
    WRAP arch/arm/include/generated/uapi/asm/shmbuf.h
    WRAP arch/arm/include/generated/uapi/asm/siginfo.h
    WRAP arch/arm/include/generated/uapi/asm/socket.h
    WRAP arch/arm/include/generated/uapi/asm/sockios.h
    WRAP arch/arm/include/generated/uapi/asm/termbits.h
    WRAP arch/arm/include/generated/uapi/asm/termios.h
    HOSTCC scripts/dtc/dtc.o
    HOSTCC scripts/dtc/flattree.o
    HOSTCC scripts/dtc/fstree.o
    HOSTCC scripts/dtc/data.o
    HOSTCC scripts/dtc/livetree.o
    HOSTCC scripts/dtc/treesource.o
    HOSTCC scripts/dtc/srcpos.o
    HOSTCC scripts/dtc/checks.o
    HOSTCC scripts/dtc/util.o
    WRAP arch/arm/include/generated/asm/early_ioremap.h
    WRAP arch/arm/include/generated/asm/extable.h
    WRAP arch/arm/include/generated/asm/flat.h
    WRAP arch/arm/include/generated/asm/parport.h
    WRAP arch/arm/include/generated/asm/compat.h
    WRAP arch/arm/include/generated/asm/dma-mapping.h
    WRAP arch/arm/include/generated/asm/emergency-restart.h
    WRAP arch/arm/include/generated/asm/exec.h
    WRAP arch/arm/include/generated/asm/irq_regs.h
    WRAP arch/arm/include/generated/asm/kdebug.h
    WRAP arch/arm/include/generated/asm/kmap_size.h
    WRAP arch/arm/include/generated/asm/local.h
    WRAP arch/arm/include/generated/asm/local64.h
    WRAP arch/arm/include/generated/asm/mmiowb.h
    WRAP arch/arm/include/generated/asm/msi.h
    WRAP arch/arm/include/generated/asm/preempt.h
    WRAP arch/arm/include/generated/asm/rwonce.h
    WRAP arch/arm/include/generated/asm/serial.h
    WRAP arch/arm/include/generated/asm/simd.h
    WRAP arch/arm/include/generated/asm/softirq_stack.h
    LEX scripts/dtc/dtc-lexer.lex.c
    WRAP arch/arm/include/generated/asm/trace_clock.h
    WRAP arch/arm/include/generated/asm/unaligned.h
    YACC scripts/dtc/dtc-parser.tab.[ch]
    UPD include/generated/uapi/linux/version.h
    HOSTCC scripts/dtc/libfdt/fdt.o
    HOSTCC scripts/dtc/libfdt/fdt_ro.o
    HOSTCC scripts/dtc/libfdt/fdt_wip.o
    HOSTCC scripts/dtc/libfdt/fdt_sw.o
    UPD include/config/kernel.release
    HOSTCC scripts/dtc/libfdt/fdt_rw.o
    HOSTCC scripts/dtc/libfdt/fdt_strerror.o
    UPD include/generated/compile.h
    HOSTCC scripts/dtc/libfdt/fdt_empty_tree.o
    HOSTCC scripts/dtc/libfdt/fdt_addresses.o
    UPD include/generated/utsrelease.h
    HOSTCC scripts/dtc/libfdt/fdt_overlay.o
    HOSTCC scripts/dtc/fdtoverlay.o
    HOSTCC scripts/dtc/dtc-lexer.lex.o
    HOSTCC scripts/dtc/dtc-parser.tab.o
    HOSTLD scripts/dtc/fdtoverlay
    HOSTLD scripts/dtc/dtc
    HOSTCC scripts/kallsyms
    HOSTCC scripts/sorttable
    HOSTCC scripts/asn1_compiler
    HOSTCXX scripts/gcc-plugins/arm_ssp_per_task_plugin.so
    In file included from scripts/gcc-plugins/gcc-common.h:95,
    from scripts/gcc-plugins/arm_ssp_per_task_plugin.c:3:
    /mnt/SDA/opt/crosstool/ti-processor-sdk-linux-am335x-evm-09.01.00.001/external-toolchain-dir/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/../lib/gcc/arm-none-linux-gnueabihf/11.3.1/plugin/include/builtins.h:23:10: fatal error: mpc.h: No existe el archivo o el directorio
    23 | #include <mpc.h>
    | ^~~~~~~
    compilation terminated.
    make[2]: *** [scripts/gcc-plugins/Makefile:54: scripts/gcc-plugins/arm_ssp_per_task_plugin.so] Error 1
    make[1]: *** [scripts/Makefile.build:502: scripts/gcc-plugins] Error 2

    Best regards and thank you

  • Hello,
    I misread your original post.
    Can we try "sudo apt install libmpfr-dev libmpc-dev"?
    Best,
    -Hong

  • Hello,

    Great, that works, thank you very much for your help.

    Best regards