mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Buildroot fails with gcc14
This commit is contained in:
parent
165c4d6ba4
commit
0c338c590a
@ -107,7 +107,7 @@ case "$FAMILY" in
|
|||||||
SPIKE_PACKAGES+=(dtc libboost_regex1_75_0-devel libboost_system1_75_0-devel)
|
SPIKE_PACKAGES+=(dtc libboost_regex1_75_0-devel libboost_system1_75_0-devel)
|
||||||
VERILATOR_PACKAGES+=(gperftools perl-doc)
|
VERILATOR_PACKAGES+=(gperftools perl-doc)
|
||||||
BUILDROOT_PACKAGES+=(ncurses-utils ncurses-devel ncurses5-devel gcc-fortran) # gcc-fortran is only needed for compiling spec benchmarks on buildroot linux
|
BUILDROOT_PACKAGES+=(ncurses-utils ncurses-devel ncurses5-devel gcc-fortran) # gcc-fortran is only needed for compiling spec benchmarks on buildroot linux
|
||||||
OTHER_PACKAGES+=(gcc14 gcc14-c++ cpp14) # Newer version of gcc needed for many tools. Default is gcc7
|
OTHER_PACKAGES+=(gcc13 gcc13-c++ cpp13) # Newer version of gcc needed for many tools. Default is gcc7
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -192,11 +192,11 @@ fi
|
|||||||
if [ "$FAMILY" == rhel ]; then
|
if [ "$FAMILY" == rhel ]; then
|
||||||
source /opt/rh/gcc-toolset-13/enable
|
source /opt/rh/gcc-toolset-13/enable
|
||||||
elif [ "$FAMILY" == suse ]; then
|
elif [ "$FAMILY" == suse ]; then
|
||||||
mkdir -p "$RISCV"/gcc-14/bin
|
mkdir -p "$RISCV"/gcc-13/bin
|
||||||
for f in gcc cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool lto-dump; do
|
for f in gcc cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool lto-dump; do
|
||||||
ln -vsf /usr/bin/$f-14 "$RISCV"/gcc-14/bin/$f
|
ln -vsf /usr/bin/$f-13 "$RISCV"/gcc-13/bin/$f
|
||||||
done
|
done
|
||||||
export PATH="$RISCV"/gcc-14/bin:$PATH
|
export PATH="$RISCV"/gcc-13/bin:$PATH
|
||||||
elif (( UBUNTU_VERSION == 20 )); then
|
elif (( UBUNTU_VERSION == 20 )); then
|
||||||
mkdir -p "$RISCV"/gcc-10/bin
|
mkdir -p "$RISCV"/gcc-10/bin
|
||||||
for f in gcc cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool lto-dump; do
|
for f in gcc cpp g++ gcc-ar gcc-nm gcc-ranlib gcov gcov-dump gcov-tool lto-dump; do
|
||||||
|
@ -77,8 +77,8 @@ fi
|
|||||||
# Use newer gcc version for older distros
|
# Use newer gcc version for older distros
|
||||||
if [ -e /opt/rh/gcc-toolset-13/enable ]; then
|
if [ -e /opt/rh/gcc-toolset-13/enable ]; then
|
||||||
source /opt/rh/gcc-toolset-13/enable # Red Hat Family
|
source /opt/rh/gcc-toolset-13/enable # Red Hat Family
|
||||||
elif [ -e $RISCV/gcc-14 ]; then
|
elif [ -e $RISCV/gcc-13 ]; then
|
||||||
export PATH=$RISCV/gcc-14/bin:$PATH # SUSE Family
|
export PATH=$RISCV/gcc-13/bin:$PATH # SUSE Family
|
||||||
elif [ -e $RISCV/gcc-10 ]; then
|
elif [ -e $RISCV/gcc-10 ]; then
|
||||||
export PATH=$RISCV/gcc-10/bin:$PATH # Ubuntu 20.04 LTS
|
export PATH=$RISCV/gcc-10/bin:$PATH # Ubuntu 20.04 LTS
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user