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.

  • TI Thinks Resolved

Compiler: Building MSP430 gcc from sources on CentOS 7 for Windows

Tool/software: TI C/C++ Compiler

Hi,

I would like to build msp430 gcc from sources on CentOS 7 for Windows and I tried to follow your instructions on this website: processors.wiki.ti.com/.../Building_MSP430-GCC_From_Sources but I have got few problems. I think that the instructions are old or not complete because

  • the current sources on your website does not contain general 'configure' file
  • the link to the sources does not work
  • 'i686-pc-mingw32' is not available anymore

Am I right or I am mixing some things? If the instructions are not correct could you please correct them? Then I could try to compile it again.

Many thanks,

Karolina

  • Please use the directions in the chapter titled Building MSP430 GCC From Sources in the MSP430 GCC compiler manual.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click This Resolved My Issue on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

  • In reply to George Mock:

    Hi George,

    Thank you for the information. I haven't seen this document before.

    I tried to compile it according to this documentation and unfortunately I still have a problem. During the build process it cannot find msp430-elf-gcc even though I have it in the path. What I did is I moved the 'install' and 'build' folder after building the native toolchain to another location and then I added 'bin' folder from the 'install' folder to the path. When I execute 'msp430-elf-gcc --version' it is recognized. Any idea why msp430-gcc is not recognized during the build? Should I add something more to the path? Can you tell me exactly the folder structure I should have?

    Many thanks,

    Karolina

  • In reply to George Mock:

    Hi George,

    Thank you for the information. I haven't seen this document before.

    I tried to compile it according to this documentation and unfortunately I still have a problem. During the build process it cannot find msp430-elf-gcc even though I have it in the PATH (I can call it from whatever place I want and it is there).

    More details what I did:

    What I did is I moved the 'install' and 'build' folder after building the native toolchain to another location and then I added 'bin' folder from the 'install' folder to the PATH. When I execute 'msp430-elf-gcc --version' it IS recognized. Any idea why msp430-gcc is not recognized during the build? Should I add something more to the path? Can you tell me exactly the folder structure I should have?

    Many thanks,

    Karolina

  • In reply to Karolina Wojcik:

    Unfortunately, the person best able to help is out until next week.  As a placeholder til then, I filed MSPGCC-94 in the SDOWP system. It reports an error in the MSP430 GCC manual.  I'm not sure that is the case.  Even so, it is a good way to make sure this issue does not get lost.  You are welcome to follow this issue with the SDOWP link below in my signature.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click This Resolved My Issue on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

  • In reply to Karolina Wojcik:

    Hi Karolina,

    I would check that when you added the "bin" directory to path, it is the full absolute path, not relative.

    So if you moved "install" to "install-native", make sure you set up the path as follows:

    export PATH=/home/jozef/msp430-gcc-7.3.1.24-source-full/install-native/usr/local/bin:$PATH

    The following is wrong and will not work when GCC changes directories to perform the build:

    export PATH=install-native/usr/local/bin:$PATH

    Although, you say that you can call msp430-elf-gcc from anywhere and it works. So, if you have set up PATH correctly and still have an error where msp430-elf-gcc can't be found please upload the config log file from build/gcc/config.log.

    You can also check yourself if the build script found msp430-elf-gcc, by searching config.log for "checking for msp430-elf-gcc".

    Here is what is in my config file:

    configure:9957: checking for msp430-elf-gcc
    configure:9973: found /home/jozef/msp430-gcc-7.3.1.24_linux64/bin/msp430-elf-gcc
    configure:9984: result: msp430-elf-gcc


    Jozef Lawrynowicz
    MSP430-GCC Developer
    www.mittosystems.com

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.