Forum Discussion
Altera_Forum
Honored Contributor
21 years agoI have just tried to build the tools, and have not experienced any problems (newlib builds just fine). The only thing I've done different from the HOWTO I posted was to build only C and C++ for gcc by using: --enable-languages=c,c++. As you say you have to run stripcr() on autogenerated files, maybe that CRs is your problem. Here is an updated version of the stripcr.sh script:
# !/bin/bash# Strips CRs (Cygwin ......) from all Makefiles and sourcefiles # stripcr binary STRIPCR="/usr/local/bin/stripcr" SRCDIR=$PWD echo "Stripping CR in "$SRCDIR # Config find $SRCDIR \( -name 'config.*' -o -name 'configure.*' -o -name 'configure' \) -exec $STRIPCR {} \; # Scripts + templates find $SRCDIR \( -name '*.sc' -o -name '*.sh' \) -exec $STRIPCR {} \; # Makefiles find $SRCDIR \( -name 'Makefile' -o -name 'Makefile.*' \) -exec $STRIPCR {} \; # Source files find $SRCDIR \( -name '*.c' -o -name '*.h' -o -name '*.S' -o -name '*.s' \) -exec $STRIPCR {} \; # Linker scripts find $SRCDIR \( -name '*.ld' \) -exec $STRIPCR {} \; # Awk, sed and perl scripts find $SRCDIR \( -name '*.awk' -o -name '*.sed' -o -name '*.pl' \) -exec $STRIPCR {} \; # Other find $SRCDIR \( -name '*.md' \) -exec $STRIPCR {} \;