ManticoreRTL / manticore-compiler

MIT License
4 stars 0 forks source link

Subject: Extraneous Text After else Directive in Makefile #1

Open aiiiii96 opened 3 weeks ago

aiiiii96 commented 3 weeks ago

Hello,

I am very happy that your group has made this great work! But I'm currently working with the Makefile for manticore, and I encountered an issue while running it:

Makefile:119: Extraneous text after else directive Makefile:211: Extraneous text after else directive Makefile:217: Extraneous text after else directive Makefile:217: *** only one else per conditional. Stop.

I tried to modify it by “else /return line ifeq", and then met the error: "make: *** No rule to make target top-all', needed byall'. Stop.". I doubt that it was caused by complex if control.

my envirmental is cmake version 3.29.0-rc2. GNU Make version 3.79

Looking forward to your reply!

i

sahandKashani commented 2 weeks ago

Hi,

I just re-built the project on an Ubuntu 20.04.4 LTS machine using the instructions below and it goes through the makefiles.

bsh ❯ mkdir manticore
bsh ❯ cd manticore/
bsh ❯ curl -s "https://get.sdkman.io" | bash
bsh ❯ source "$HOME/.sdkman/bin/sdkman-init.sh"
bsh ❯ sdk install sbt 1.6.2
bsh ❯ sdk install scala 2.13.8
bsh ❯ sudo apt-get install build-essential         \
                           clang                   \
                           bison                   \
                           flex                    \
                           libreadline-dev         \
                           gawk                    \
                           tcl-dev                 \
                           libffi-dev              \
                           git                     \
                           graphviz                \
                           xdot                    \
                           pkg-config              \
                           python3                 \
                           libboost-system-dev     \
                           libboost-python-dev     \
                           libboost-filesystem-dev \
                           zlib1g-dev              
bsh ❯ sudo apt install verilator
bsh ❯ git clone git@github.com:ManticoreRTL/manticore-compiler.git
bsh ❯ cd manticore-compiler/
bsh ❯ git submodule update --init --recursive
bsh ❯ make -C frontend -j 4
bsh ❯ pushd hardware
bsh ❯ sbt publishLocal
bsh ❯ popd
bsh ❯ sudo apt install cmake
bsh ❯ sudo apt install libboost-all-dev
bsh ❯ mkdir -p runtime/build
bsh ❯ cmake -S runtime -B runtime/build

The cmake version is the following:

bsh ❯ cmake --version
cmake version 3.19.4

Perhaps something has changed in more recent versions of cmake. Could you try to use v3.19.4 and re-check?