Forum Discussion

CAlex's avatar
CAlex
Icon for Contributor rankContributor
2 years ago

HWlib with linaro compiler issue

Hi,

I'm working on this example with cyclone V soc dev kit:

Hardware Library (HWLibs) | Documentation | RocketBoards.org

I did the exact the same steps with different location of setup.sh.

I've tried with Msys2,Msys,and WSL(ubuntu) with/without using SOC EDS environemt.

The errors happened when comkpile the u-boot-socfpga with
make socfpag_defconfig using cross_compiler arm-eabi.

WSL2(ubuntu) with/without SOC EDS

or

Msys2/Msys with/without SOC EDS

I added the PATH and checked the toolchain location:

I've tried download the linaro gcc 7.2.0/7.5.0 myself,

I added the D:\board\cyclone_V_soc\intel-socfpga-hwlib\tools\gcc\bin in every PATH I could add but IT JUST DONT WORK.

So what's the issue, how can I fix it?

Do please offer some help,

I was stick on this problem for 10 hours.

Reguards.

Alex

6 Replies

  • CAlex's avatar
    CAlex
    Icon for Contributor rankContributor

    Also the files are 100% in the correct folder:

    But when I do arm-eabi-gcc -v

    It said no such file

  • KennyT_altera's avatar
    KennyT_altera
    Icon for Super Contributor rankSuper Contributor

    Hi,


    Kindly take note that they will be some slowness on the first reply due to the public holiday, we will get back to you as soon as possible.

    Thanks




  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi Alex


    Could you please run the "./generate_doxygen.sh" script, it should be located in the same path as the install script.


    After that run the following command to explicitly set the gcc path.

    export PATH=`pwd`/gcc/bin:$PATH


    Regards

    Jingyang, Teh


    • CAlex's avatar
      CAlex
      Icon for Contributor rankContributor

      Thank you for your help,

      It turns out run ./setup.sh will install i686(x86_32) linaro, I installed x86_64 arch tool chain and added the <path to toolchain/bin> to the PATH to solve this problem.

      Also MSYS 1 can solve the problem as well.But MSYS2 can't if your computer is arch x86_64

  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi Alex


    Thanks for the solution!

    Great that now your problem is solved.


    Do you have any more enquiries regarding the HWlib compiler?


    Regards

    Jingyang, Teh


  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi


    Since this thread been resolve, I shall set this thread to close pending. If you still need further assistance, you are welcome reopen this thread within 20days or open a new thread, some one will be right with you. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.


    If you happened to close this thread you might receive a survey. If you think you would rank your support experience less than 10 out of 10, please allow me to correct it before closing or if the problem can’t be corrected, please let me know the cause so that I may improve your future service experience.


    Regards

    Jingyang, Teh