Skip to content

Commit

Permalink
Update clang from 11 to 14 in impl.containerfile
Browse files Browse the repository at this point in the history
According to @SGSSGene to solve the issue f4pga/prjxray#2472
Clang must be updated, in this case from 11 to 14
See jbeder/yaml-cpp#1334 for more info

Thanks to Simon Gene Gottlieb
  • Loading branch information
Unike267 committed Dec 24, 2024
1 parent a2e49ae commit f1e876b
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions .github/impl.containerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
# Author:
# Unai Sainz-Estebanez
# Email:
# <[email protected]>
#
# Licensed under the GNU General Public License v3.0;
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.gnu.org/licenses/gpl-3.0.html

FROM ghcr.io/hdl/impl/icestorm

MAINTAINER <[email protected]>

RUN apt-get update -qq \
&& apt-get install -y git \
&& apt-get install -y python3 python3-pip python3-yaml cmake\
&& apt-get install -y cython3
&& apt-get install -y git python3 python3-pip python3-yaml cmake cython3 lsb-release wget software-properties-common gnupg

# Clone prjxray repository and build
RUN git clone --recursive https://github.com/SymbiFlow/prjxray.git \
# Temporary fix as a consequence of the issue https://github.com/f4pga/prjxray/issues/2472
&& cd prjxray/third_party/yaml-cpp \
&& git checkout 84459a7f982ea4d10e943237b2e9c71afdab6a45 \
&& cd ../.. \
&& sed -i '42s/^/#/' Makefile \
# (When the issue is fixed these three commands should be removed)
# According to SGSSGene's proposal (see jbeder/yaml-cpp/issues/1334), to solve the issue f4pga/prjxray/issues/2472 clang must be updated, in this case from 11 to 14
&& apt-get purge -y clang-11 \
&& curl -L -o llvm.sh https://apt.llvm.org/llvm.sh \
&& chmod +x llvm.sh \
&& ./llvm.sh 14 \
&& cd /usr/lib/llvm-14/bin \
&& for f in *; do rm -f /usr/bin/$f; ln -s ../lib/llvm-14/bin/$f /usr/bin/$f; done \
&& clang --version \
&& cd ../../../../prjxray \
&& make ALLOW_ROOT=1 build \
&& python3 setup.py install \
&& cd third_party/fasm \
Expand Down Expand Up @@ -43,4 +56,3 @@ RUN apt-get install -y libeigen3-dev \
&& python3 xilinx/python/bbaexport.py --device xc7a100tcsg324-1 --bba xilinx/xc7a100t.bba \
&& ./build/bba/bbasm --l xilinx/xc7a100t.bba xilinx/xc7a100t.bin \
&& cp xilinx/xc7a100t.bin /usr/local/share/nextpnr/xilinx-chipdb/

0 comments on commit f1e876b

Please sign in to comment.