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.

Issues when building release 2.00.00.07 (AM335x) using cygwin

Hi,

Just for reporting, I was not able to build any of the libraries (and consequently example codes) when trying to build Starterware release 2.00.00.07 using cygwin.

The archiver failed with the following cryptic error message:

CygwinOutput said:

arm-none-eabi-ar -c -r -v ./Debug/libsystem_config.a *.o*
C:\CodeSourcery\2011q3\bin\arm-none-eabi-ar.exe: ./Debug/libsystem_config.a: No error
makefile:71: recipe for target `debug' failed
make: *** [debug] Error 1

Running the archiver command from the prompt successfully built the library, therefore the error was in the makefile.

Since in the past I had success building these libraries in my cygwin environment with a previous version of Starterware, I ended up downloading version 2.00.00.05 and a comparison exposed an error in line 56 of the file makedefs of both releases 2.00.00.06 and 2.00.00.07:

makedefs said:

#
# Convert Windows native style filenames to POSIX style filenames
#
CYGPATH=cypath

The parameter in red above should be cygpath instead.

This is a very difficult error to track, as my cygwin environment has all necessary environment variables correctly set (including CYGPATH); therefore typing set in the cygwin prompt did not show any errors, as well as running make -p (which prints all the make's environment database).

Given the Starterware GSG already mentions the need to set this environment variable, in my opinion this should be removed from this file.

On a side note, if a developer is using a different version of the CodeSourcery compiler (my case), the version number in line 43 of the file makefdefs will cause errors trying to find libgcc.a, despite the path looks correct.

makedefs said:

LIB_GCC=${LIB_PATH}/lib/gcc/arm-none-eabi/4.3.3/

Obviously that the requirements mention CodeSourcery release 2009q1 (the release 4.3.3 above), but can I suggest mentioning this in the documentation? This could help others if, for some reason, they need to update their tools.

Thank you,

Rafael