Forum Discussion
Altera_Forum
Honored Contributor
11 years agoWell, I'm not sure if this is the best solution, but commenting out line 14 of ~/altera/13.1/embedded/ds-5/bin/arm-linux-gnueabihf-gcc (the line that calls the offending script) solved the issue:
# ! /bin/sh
# Copyright (C) 2013 ARM Ltd. All rights reserved.
case "$0" in
/*) full=$0;;
*) full=`pwd`"/$0";;
esac
full_dir=`dirname "${full}"`
SUITE_INSTALL_DIR=`cd "${full_dir}"/..; pwd`
# POSIX sh does not set positional parameters when using .
set -- "${SUITE_INSTALL_DIR}" "$@"
. "${SUITE_INSTALL_DIR}/sw/ARM_DS-5/env.sh"
if ; then
set -- "$HOME/.arm/ARM_DS-5/env.ini" "$@"
# . "${SUITE_INSTALL_DIR}/sw/ARM_DS-5/userenv.sh"# This line was causing compilation errors, and commenting it out solves the issue...
shift
fi
shift
exec "${SUITE_INSTALL_DIR}/sw/gcc/bin/arm-linux-gnueabihf-gcc" "$@"