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.

Cannot compile AM3359 application with GCC on Windows

I started to compile examples of AM335X_StarterWare_02_00_00_05 with gcc on a windows PC, but I cannot compile.
I followed the instruction shown at
What I did for it is shown below,
1. Installed "arm-2009q1-161-arm-none-eabi.exe" to "C:\gcc" and add PATH
2. rename cs-make.exe to make.exe.
3. Installed Cygwin to "C:\cygwin"
4. Installed "AM335X_StarterWare_02_00_00_05_Setup.exe"
5. Added "export CYGPATH=c:/cygwin/bin/cygpath" to .bashrc
6. Copied "AM335X_StarterWare_02_00_00_05" to the home directory of cygwin
7. cd ~/AM335X_StarterWare_02_00_00_05/build/armv7a/gcc/am335x/drivers
8. make (Finished without any error)
9. cd ~/AM335X_StarterWare_02_00_00_05/build/armv7a/gcc/am335x/beaglebone/demo
10. make
Then, make finished with errors as following.
----------------------------------------------------------------------------------------------------------
cygpath: error converting "C:GCC/arm-none-eabi/lib/\libc.a" - Bad address
cygpath: error converting "C:GCC/arm-none-eabi/lib/\libc.a" - Bad address
C:\gcc\bin\arm-none-eabi-ld.exe: cannot find -lc
make: *** [bin] Error 1
----------------------------------------------------------------------------------------------------------
Other demo applications cannot be compiled as well.

What should I do to complete building them?

  • Hi Yuji,

    It looks like you may not have set the LIB_PATH variable, which should point to the root of your CodeSourcery installation.  You can either export it as an environment variable or explicitly set it in the makedefs file in your StarterWare directory under /build/armv7a/gcc/.


    -Stephen