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.

Linux/AM5728: IPC examples build issues

Part Number: AM5728

Tool/software: Linux

I am still having issues building the IPC examples. When I run `make ti-ipc-linux` in the root of the SDK installation I now get the following error:

=================================
Configuring IPC
=================================
SDK_INSTALL_PATH=/media/alex/d10c6511-1a24-48b5-a9a1-c1f6142f48bd/rtos_sdk_install source /media/alex/d10c6511-1a24-48b5-a9a1-c1f6142f48bd/rtos_sdk_install/processor_sdk_rtos_am57xx_4_03_00_05/setupenv.sh > /dev/null; \
. /media/alex/d10c6511-1a24-48b5-a9a1-c1f6142f48bd/linux_sdk_install/linux-devkit/environment-setup; \
cd ${IPC_INSTALL_PATH}; \
        ./configure ${CONFIGURE_FLAGS} \
	CC=${CC} \
	--prefix=/usr \
	PLATFORM=${IPC_PLATFORM} \
	KERNEL_INSTALL_DIR=/media/alex/d10c6511-1a24-48b5-a9a1-c1f6142f48bd/linux_sdk_install/board-support/linux-4.9.69+gitAUTOINC+9ce43c71ae-g9ce43c71ae
/bin/sh: 1: source: not found
/bin/sh: 4: ./configure: not found
Makefile:784: recipe for target 'ti-ipc-linux-config' failed
make: *** [ti-ipc-linux-config] Error 127

What could be the cause of this?

  • Hi,

    Could it be related to your shell? What shell are you using? dash or bash?

    regards,
  • I use bash, I was reading that since the source command is built into bash, it won't work with sudo. But I don't know how to resolve this and be able to build the ipc examples.
  • Ok. I found the same problem in my Ubuntu install and the reason was that the default shell for ubuntu is dash.

    You can check what shell is going to use typing:

    $ ls -la /bin/sh

    /bin/sh is a link to the actual shell. If it is dash, you can change it typing:
    $ sudo dpkg-reconfigure dash

    and selecting no in the menu that appears.

    That worked for me.
  • Thanks for pointing out that the shell configuration, that allowed $ make ti-ipc-linux to build properly.

    Now when I tried $ make ti-ipc-linux-examples I get a bunch of errors, however. The first seems to be `/bin/sh: /bin/armcl: No such file or directory`. Is there a `armcl` compiler that I am supposed to install? If so where do I find that/how do I install it?
  • Hi,

    Yes. It is supposed to be installed with the TI rtos sdk (software-dl.ti.com/.../index_FDS.html) .

    It is placed in the folder:

    <path_to_ti_rtos_sdk>/ti-cgt-arm_16.9.3.LTS/bin/armcl


    I encountered some issues with my Ubuntu installation when trying to install the rtos sdk. It prompted some errors at the end of the installation process related with cgt and other tools. I could finally resolve the installation issues adding the libc6 package in Ubuntu and then reinstalling the sdk.


    Hope it helps
  • Alex,

    Please follow the instruction in IPC Quick Start Guide, software-dl.ti.com/.../Foundational_Components.html

    ti-cgt-arm toolchain is included in Processor RTOS SDK.

    Rex
  • @alex, 

    Thanks for pointing out the install location of the compiler. I'm currently working on a VM and using non-standard install directories so some of this is a mess. I tried symlinking the compiler to the /bin/ directory but now I get a compilation error:

    # Making lib/debug/obj/MachVis_skel.oem4 ...
    /bin/armcl -c --endian=little -mv7M4 --float_support=vfplib --abi=eabi -Dxdc_target_types__="ti/targets/arm/elf/std.h" -Dxdc_target_name__=M4 -qq -pdsw225 -ppd=lib/debug/obj/MachVis_skel.oem4.dep -ppa -D_DEBUG_=1 --symdebug:dwarf -I. -I/packages -I/media/alex/d10c6511-1a24-48b5-a9a1-c1f6142f48bd/rtos_sdk_install/ipc_3_47_01_00/packages -I/media/alex/d10c6511-1a24-48b5-a9a1-c1f6142f48bd/rtos_sdk_install/xdctools_3_50_03_33_core/packages -I/include --output_file=lib/debug/obj/MachVis_skel.oem4 -fc MachVis_skel.c
    exec() error spawning armacpia: No such file or directory
    
    >> Compilation failure
    ipu.mak:66: recipe for target 'lib/debug/obj/MachVis_skel.oem4' failed
    make[5]: *** [lib/debug/obj/MachVis_skel.oem4] Error 1


    @Rex
    I have been following that guide, but I am having issues that are not discussed.

  • Hi, Alex,

    Non-standard install directories of the SDK is not an issue as long as environment variables are set to point to the right place.

    As the Get Started Guide indicates, there are many ways to get access to a linux host, we can't validate all possibilities. We only focus on validating using as the host linux distribution. We don't know what issues are involved when using VM. I would suggest you to use a Ubuntu Linux host as the build machine. If you can use Ubuntu host machine to validate the SDK, it would be the smoothest path and we will be able to help you more when you run into problems.

    Rex
  • Hi Alex,

    Were you able to resolve your issue with /bin/armcl not being found?

    I have the same issue trying to build the ti-ipc-linux-examples using SDK 4.03 - I didn't have this issue when using SDK 4.01 but I switched over to SDK 4.03 because the big-data-ipc example wouldn't run properly when built from SDK 4.01.

    So, I'd love to know if you resolved this issue.

    I originally used this thread https://e2e.ti.com/support/arm/sitara_arm/f/791/p/650433/2390389 for the build steps since the official documentation is a little vague and looks as though sections have been written by different people and not cross-reference checked.

    Thanks,

    Dermot

  • Hey Alex,

    Before you do any more troubleshooting, take a look at this thread:
    e2e.ti.com/.../2607667

    Looks like there are bugs in the top level makefile - use the new makefile made available on this thread and you should be Ok building the IPC examples including the Big Data IPC example.

    Thank to Sahin Okur for noting this issue and providing the Makefile.

    Regards,
    Dermot
  • Thanks Dermont,

    I finally got a native environment, but I still needed to use that makefile to compile the IPC example binaries successfully.