Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

compiation of altera bare metal failed with g++ not found

I'm a bit frustrated with the soceds tool. even I tried to compile the examples in the altera installation folder, it pop up some strange tool chain issues like g++ not found . Any one know how to fix this tool chain breakage? the axample is Altera-SoCFPGA-HelloWorld-Baremetal-GNU.tar

13 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    I'm experiencing the same Error on a Linux machine. I want to get started with programming the ARM in my DE1-SoC, so I downloaded the SoC EDS Community Edition. I chosed the Altera-SoCFPGA-HelloWorld-Baremetal-GNU Project for starting with the Altera Baremetal GCC Toolchain, but I get the same g++ not found error when I try to compile the Project. I started Eclipse via Command Shell (is there any different option under Linux?).

    I read that using the original ARM Bare Metal compiler needs a license, but am I right that using the GNU Baremetal GCC Compiler should be possible with the Community Edition, without any additional license? Or may this be the source of my problem?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    @J_FHMS, you need to use the Embedded Command Shell script/file and then run "eclipse" inside that shell. The shell gives environment variables like which compiler to use when building the HWLIB examples.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    @J_FHMS, you need to use the Embedded Command Shell script/file and then run "eclipse" inside that shell.

    --- Quote End ---

    That's the way I did it.