Problem in building Pulp-SDK("make all" error)
#1
Hello,
I'm going to create the pulp platform.When I followed the instructions to building the SDK, an error occurred.I found on the forums that some people had similar problems, but their solutions didn't solve mine.
I started by installing the new Ubuntu 16.04, in the sequence of steps:

1.root@cp1-VirtualBox:/home/cp1# mkdir riscv
2.root@cp1-VirtualBox:/home/cp1/riscv# git clone https://github.com/pulp-platform/pulp
3.Connecting to GitHub with SSH successfully
4.sudo apt install git python3-pip python-pip gawk texinfo libgmp-dev libmpfr-dev libmpc-dev swig3.0 libjpeg-dev lsb-core doxygen python-sphinx sox graphicsmagick-libmagick-dev-compat libsdl2-dev libswitch-perl libftdi1-dev cmake scons libsndfile1-dev
5.sudo pip3 install artifactory twisted prettytable sqlalchemy pyelftools openpyxl xlsxwriter pyyaml numpy configparser pyvcd
6.sudo pip2 install configparser
root@cp1-VirtualBox:/home/cp1# pip --versionpip 19.3.1 from /usr/local/lib/python3.5/dist-packages/pip (python 3.5)
root@cp1-VirtualBox:/home/cp1# python3 --versionPython 3.5.2
7.root@cp1-VirtualBox:/home/cp1/riscv# git clone --recursive https://github.com/pulp-platform/pulp-ri...-toolchain
8.sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev
9.root@cp1-VirtualBox:/home/cp1/riscv/pulp-riscv-gnu-toolchain# ./configure --prefix=/opt/riscv --with-arch=rv32imc --with-cmodel=medlow --enable-multilib
10.make
11.root@cp1-VirtualBox:/home/cp1/riscv/pulp-riscv-gnu-toolchain# export PULP_RISCV_GCC_TOOLCHAIN=/home/cp1/riscv/pulp-riscv-gnu-toolchain
12.root@cp1-VirtualBox:/home/cp1/riscv/pulp# export VSIM_PATH=/home/cp1/riscv/pulp/sim
13.root@cp1-VirtualBox:/home/cp1/riscv# git clone https://github.com/pulp-platform/pulp-sdk.git -b master
14.export PULP_GITHUB_SSH=1
15.root@cp1-VirtualBox:/home/cp1/riscv/pulp-sdk# source configs/platform-rtl.sh
16.make all


Submodule path 'pulp-tools': checked out 'aa9ad5cd9f6fa75b80cbc91a4c2c8e5db737d7ce'
source init.sh && ./pulp-tools/bin/plpbuild --p sdk checkout build env --stdout
Configuring Pulp project at /home/cp1/riscv/pulp-sdk
Traceback (most recent call last):
  File "./pulp-tools/bin/plpbuild", line 3, in <module>
    import plptools as plp
  File "/home/cp1/riscv/pulp-sdk/pulp-tools/bin/plptools.py", line 27, in <module>
    from plpobjects import *
  File "/home/cp1/riscv/pulp-sdk/pulp-tools/bin/plpobjects.py", line 32, in <module>
    from openpyxl import Workbook
  File "/usr/local/lib/python3.5/dist-packages/openpyxl/__init__.py", line 6, in <module>
    from openpyxl.workbook import Workbook
  File "/usr/local/lib/python3.5/dist-packages/openpyxl/workbook/__init__.py", line 4, in <module>
    from .workbook import Workbook
  File "/usr/local/lib/python3.5/dist-packages/openpyxl/workbook/workbook.py", line 7, in <module>
    from openpyxl.worksheet.worksheet import Worksheet
  File "/usr/local/lib/python3.5/dist-packages/openpyxl/worksheet/worksheet.py", line 392
    return f"{get_column_letter(min_col)}{min_row}:{get_column_letter(max_col)}{max_row}"
                                                                                        ^
SyntaxError: invalid syntax
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 1


Thank you so much for your prompt answer.
best wishes,
chen
Reply
#2
Hi,

Please, find enclosed the complete sequence of steps I have followed starting from a clean Ubuntu 16.04 installation:

0 - sudo -s

1 - apt install git python3-pip python-pip gawk texinfo libgmp-dev libmpfr-dev libmpc-dev swig3.0 libjpeg-dev lsb-core doxygen python-sphinx sox graphicsmagick-libmagick-dev-compat libsdl2-dev libswitch-perl libftdi1-dev cmake scons libsndfile1-dev

2 - pip3 install twisted prettytable artifactory sqlalchemy pyelftools xlsxwriter pyyaml numpy configparser pyvcd

3 - pip2 install configparser

4 - cd /opt

5 - mkdir riscv

6 - cd riscv

7 - git clone https://github.com/pulp-platform/pulp-ri...-toolchain

8 - cd pulp-riscv-gnu-toolchain

9 - git submodule update --init --recursive

10 - apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev

11 - ./configure --prefix=/opt/riscv --with-arch=rv32imc --with-cmodel=medlow --enable-multilib

12 - make

13 - export PATH=$PATH:/opt/riscv/bin

14 - export PULP_RISCV_GCC_TOOLCHAIN=/opt/riscv

15 - export VSIM_PATH=/opt/riscv/pulpissimo/sim


—— Install PULP-SDK

16 - cd /opt/riscv

17 - git clone https://github.com/pulp-platform/pulp-builder.git

18 - cd pulp-builder

19 - source configs/pulpissimo.sh

20 - ./scripts/clean

21 - ./scripts/update-runtime

22 - ./scripts/build-gvsoc

23 - ./scripts/build-runtime

24 - source sdk-setup.sh

25 - cd /opt/riscv

26 - pip3 install openpyxl==2.6.4

27 - git clone https://github.com/pulp-platform/pulp-sdk.git -b master

28 - cd pulp-sdk

29 - source configs/pulpissimo.sh

30 - make all

31 - export PULP_SDK_HOME=/opt/riscv/pulp-sdk

—— Install Simulation and implementation



32 - Install QuestaSim



33 - cd /opt/riscv



34 - git clone https://github.com/pulp-platform/pulpissimo.git



35 - cd pulpissimo



36 - ./update-ips



37 - source setup/vsim.sh



38 - make clean build



—— Install Micoprocessor programming and debugging



39 - Verify that the following packages are installed with the proper version:



- autoconf >= 2.64

- automake >= 1.14

- texinfo

- make

- libtool

- pkg-config >= 0.23 (or compatible)

- libusb-1.0

- libftdi

- libusb-0.1 or libusb-compat-0.1 for some older drivers



40 - cd /opt/riscv/pulp-sdk


41 - source sourceme.sh && ./pulp-tools/bin/plpbuild checkout build --p openocd --stdout

This has worked for me. I wish your installation will succeed to.

Best regards,

Manuel
Reply
#3
Thank you so much for your prompt answer.
In fact,I am building pulp platform.
https://github.com/pulp-platform/pulp
It seems different between pulp platform and pulpissimo.
Do you have any experience in building pulp platform?
Reply
#4
Now it occurs new problems.

Makefile:114: recipe for target 'build_all' failed
make[1]: *** [build_all] Error 2
make[1]: Leaving directory '/opt/riscv/pulp-sdk/runtime/pulp-rt'
Reached EOF with exit status 2
FATAL ERROR: the command 'build' has failed
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 255
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)