RISCV-GNU-TOOLCHAIN install error

3,638 views
Skip to first unread message

Monir Zaman

unread,
Oct 20, 2016, 1:13:13 PM10/20/16
to RISC-V SW Dev
Hello,
I moved to the Linux x86_64 server (see below) to build the necessary tools for the ROCKET Chip generator.
ace:riscv-tools} uname -a
Linux ace.u.edu 2.6.32-573.8.1.el6.x86_64 #1 SMP Tue Nov 10 18:01:38 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

I am using GCC 4.8 to build the tools. But when it stars building the "riscv-gnu-toolchain", I see errors which I am not sure I understand properly:

{ace:riscv-tools} CC=gcc4.8 CXX=g++4.8 ./build.sh
Starting RISC-V Toolchain build process

Removing existing riscv-fesvr/build directory
Configuring project riscv-fesvr
Building project riscv-fesvr
Installing project riscv-fesvr
mkdir
//proj/rocket-chip/riscv-tools/include
mkdir
//proj/rocket-chip/riscv-tools/bin
mkdir
//proj/rocket-chip/riscv-tools/lib
mkdir
//proj/rocket-chip/riscv-tools/lib
mkdir
//proj/rocket-chip/riscv-tools/include/fesvr
mkdir
: cannot create directory `//proj/rocket-chip/riscv-tools/lib': File exists
mkdir //proj/rocket-chip/riscv-tools/lib/pkgconfig

Configuring project riscv-isa-sim
Building project riscv-isa-sim
../spike_main/disasm.cc: In constructor ‘disassembler_t::disassembler_t(int)’:
../spike_main/disasm.cc:257:1: note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without
 disassembler_t::disassembler_t(int xlen)
 ^
Installing project riscv-isa-sim
mkdir //proj/rocket-chip/riscv-tools/include/spike

Configuring project riscv-gnu-toolchain
Building project riscv-gnu-toolchain
cat: /var/cache/distfiles/newlib-2.2.0.tar.gz: No such file or directory
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0 15.7M    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/riscv-binutils-gdb/missing: line 81: makeinfo: command not found
  5 15.7M    5  942k    0     0   396k      0  0:00:40  0:00:02  0:00:38  528kconfigure: WARNING:
*** Makeinfo is missing. Info documentation will not be built.
 12 15.7M   12 2094k    0     0   480k      0  0:00:33  0:00:04  0:00:29  555kconfigure: WARNING: decimal float is not supported for this target, ignored
 71 15.7M   71 11.2M    0     0   848k      0  0:00:19  0:00:13  0:00:06  921k/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/../riscv-binutils-gdb/sim/riscv/configure: line 13590: SIM_AC_OPTION_HOSTENDIAN: command not found
100 15.7M  100 15.7M    0     0   854k      0  0:00:18  0:00:18 --:--:--  759k
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/riscv-binutils-gdb/missing: line 81: makeinfo: command not found
WARNING: 'makeinfo' is missing on your system.
         You should only need it if you modified a '.texi' file, or
         any other file indirectly affecting the aspect of the manual.
         You might want to install the Texinfo package:
         <http://www.gnu.org/software/texinfo/>
         The spurious makeinfo call might also be the consequence of
         using a buggy 'make' (AIX, DU, IRIX), in which case you might
         want to install GNU make:
         <http://www.gnu.org/software/make/>
gmake[4]: *** [bfd.info] Error 127
gmake[3]: *** [info-recursive] Error 1
gmake[2]: *** [all-bfd] Error 2
gmake[1]: *** [all] Error 2
gmake: *** [stamps/build-binutils-newlib] Error 2
gmake: *** Waiting for unfinished jobs....


{ace:riscv-tools} echo $RISCV
/proj/rocket-chip/riscv-tools

Your help is much appreciated for pointing me to the right direction.

/monir

Kimura Masayuki

unread,
Oct 20, 2016, 8:01:02 PM10/20/16
to Monir Zaman, RISC-V SW Dev
Hi Minor,

It seems that makeinfo command is missing. Did you try install texinfo package?

In my Ubuntu case, at first I install these packages:
autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf gcc libc6-dev pkg-config bridge-utils uml-utilities zlib1g-dev libglib2.0-dev autoconf automake libtool libsdl1.2-dev emacs git 

Thanks.
Masayuki Kimura


2016年10月21日(金) 2:13 Monir Zaman <monir....@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/d0ac7014-558a-4124-89c6-706f9027feec%40groups.riscv.org.

Monir Zaman

unread,
Oct 21, 2016, 12:24:27 AM10/21/16
to RISC-V SW Dev
Hello,
Yes, I figured the makeinfo was missing, which has been installed now. But then there is a new error now: (snippet)

Enter code Building project riscv-gnu-toolchain
cat
: /var/cache/distfiles/newlib-2.2.0.tar.gz: No such file or directory
 
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 
Dload  Upload   Total   Spent    Left  Speed

 
11 15.7M   11 1868k    0     0   457k      0  0:00:35  0:00:04  0:00:31  518kconfigure: WARNING: decimal float is not supported for this target, ignored
 
70 15.7M   70 11.1M    0     0   864k      0  0:00:18  0:00:13  0:00:05 1025k/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/../riscv-binutils-gdb/sim/riscv/configure: line 13590: SIM_AC_OPTION_HOSTENDIAN: command not found
100 15.7M  100 15.7M    0     0   843k      0  0:00:19  0:00:19 --:--:--  799k
conflicts
: 1 shift/reduce
conflicts
: 27 shift/reduce
conflicts
: 58 shift/reduce, 10 reduce/reduce
conflicts
: 1 shift/reduce
conflicts
: 76 shift/reduce
mkdir
: cannot create directory `ldscripts': File exists
configure: WARNING: expat is missing or unusable; some features may be unavailable.
configure: WARNING: linux/perf_event.h missing or too old; some features may be unavailable.
configure: WARNING: libipt is missing or unusable; some features may be unavailable.
configure: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data.
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/../riscv-binutils-gdb/sim/riscv/../common/sim-profile.c: In function ‘profile_pc_init’:
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/../riscv-binutils-gdb/sim/riscv/../common/sim-profile.c:566:4: warning: left shift count >= width of type [enabled by default]
    ((1 << sizeof (sim_cia) * (8 - 1))
    ^
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/../riscv-binutils-gdb/sim/riscv/../common/sim-profile.c:585:3: warning: left shift count >= width of type [enabled by default]
   bucket_size = ((1 << ((sizeof (sim_cia) * 8) - 1))
   ^
Creating observer.htmp
Creating observer.itmp
conflicts: 39 shift/reduce, 53 reduce/reduce
conflicts: 34 shift/reduce
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/../riscv-binutils-gdb/gdb/m2-exp.y:301.25-44: warning: rule useless in parser due to conflicts: $@2: /* empty */
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/../riscv-binutils-gdb/gdb/doc/gdb.texinfo:26482: warning: `
.' or `,' must follow @xref, not `f'.
*** This configuration is not supported in the following subdirectories:
     target-libquadmath target-libatomic target-libcilkrts target-libitm target-libsanitizer target-libvtv target-libmpx gnattools gotools target-libada target-libgfortran target-libbacktrace target-libgo target-libffi target-zlib target-libjava target-libobjc target-libgomp target-liboffloadmic target-libssp target-boehm-gc
    (Any other directories should still work fine.)

configure: WARNING: decimal float is not supported for this target, ignored
libtool: install: warning: remember to run `libtool --finish /proj/rocket-chip/riscv-tools/libexec/gcc/riscv64-unknown-elf/6.1.0'

configure: WARNING: decimal float is not supported for this target, ignored
configure: WARNING: fixed-point is not supported for this target, ignored
Links are now set up to build a cross-compiler
 from x86_64-pc-linux-gnu to riscv64-unknown-elf.
/proj/rocket-chip/riscv-tools/riscv64-unknown-elf/bin/as: unrecognized option '--64'
gmake[3]: *** [build/version.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: *** wait: No child processes.  Stop.
gmake[2]: *** [all-gcc] Error 2
gmake[2]: *** Waiting for unfinished jobs....

gmake[1]: *** [all] Error 2
gmake: *** [stamps/build-gcc-newlib] Error 2
here...

Monir Zaman

unread,
Nov 1, 2016, 3:08:42 PM11/1/16
to RISC-V SW Dev
Hello,
any suggestion for the error I am seeing in order to install the RISC-V Tools on the server?


On Thursday, October 20, 2016 at 12:13:13 PM UTC-5, Monir Zaman wrote:

Monir Zaman

unread,
Nov 2, 2016, 3:06:32 PM11/2/16
to RISC-V SW Dev
Got the installation to work by following the thread : https://groups.google.com/a/groups.riscv.org/forum/#!topic/sw-dev/G0MJSSQzZpE

Now when I try to test my code using "spike" i get error:

{ace3:RISC-V} ./bin/spike /proj/RISC-V/riscv64-unknown-elf/pk hello
./bin/spike: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by //proj/RISC-V/lib/libriscv.so)
./bin/spike: /usr/lib64/libstdc++.so.6: version `
GLIBCXX_3.4.14' not found (required by //proj/RISC-V/lib/libfesvr.so)



On Thursday, October 20, 2016 at 12:13:13 PM UTC-5, Monir Zaman wrote:

Andrew Waterman

unread,
Nov 2, 2016, 3:09:56 PM11/2/16
to Monir Zaman, RISC-V SW Dev
Looks like you built Spike with a different version of gcc/libstdc++
than is available at runtime. Or you have something insidious in your
LD_LIBRARY_PATH.
> --
> You received this message because you are subscribed to the Google Groups
> "RISC-V SW Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sw-dev+un...@groups.riscv.org.
> To post to this group, send email to sw-...@groups.riscv.org.
> Visit this group at
> https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
> To view this discussion on the web visit
> https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/8469349b-c36a-4961-909a-8a724c608f96%40groups.riscv.org.
Message has been deleted

Monir Zaman

unread,
Nov 2, 2016, 3:21:10 PM11/2/16
to RISC-V SW Dev, monir....@gmail.com
******Had to delete previous post because of incomplete code, fixing it now******

I am not expert in the build process. I shall go through the logs generated to find the "libstc" being used by "spike". In the meantime, for recording purpose, (and anyone else facing the same problem like me), I am posting the logs and the command used the "build" the tools:
{txace3:riscv-tools} CC=gcc4.8 CXX=g++4.8 ./build.sh
Starting RISC-V Toolchain build process

Removing existing riscv-fesvr/build directory
Configuring project riscv-fesvr
Building project riscv-fesvr
Installing project riscv-
fesvr
mkdir
//proj/RISC-V/include
mkdir
//proj/RISC-V/lib
mkdir
//proj/RISC-V/bin
mkdir
//proj/RISC-V/lib
mkdir
//proj/RISC-V/include/fesvr
mkdir
: cannot create directory `//proj/RISC-V/lib': File exists
mkdir //proj/RISC-V/lib/pkgconfig

Removing existing riscv-isa-sim/build directory

Configuring project riscv-isa-sim
Building project riscv-isa-sim
../spike_main/disasm.cc: In constructor ‘disassembler_t::disassembler_t(int)’:
../spike_main/disasm.cc:257:1: note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without
 disassembler_t::disassembler_t(int xlen)
 ^
Installing project riscv-isa-sim
mkdir //proj/RISC-V/include/spike

Removing existing riscv-gnu-toolchain/build directory

Configuring project riscv-gnu-toolchain
Building project riscv-gnu-toolchain
cat: /var/cache/distfiles/newlib-2.2.0.tar.gz: No such file or directory
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 10 15.7M   10 1740k    0     0   426k      0  0:00:37  0:00:04  0:00:33  435kconfigure: WARNING: decimal float is not supported for this target, ignored
 71 15.7M   71 11.2M    0     0   878k      0  0:00:18  0:00:13  0:00:05 1041k/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/../riscv-binutils-gdb/sim/riscv/configure: line 13590: SIM_AC_OPTION_HOSTENDIAN: command not found
100 15.7M  100 15.7M    0     0   867k      0  0:00:18  0:00:18 --:--:--  760k

conflicts: 1 shift/reduce
conflicts: 27 shift/reduce
conflicts: 58 shift/reduce, 10 reduce/reduce
conflicts: 1 shift/reduce
conflicts: 76 shift/reduce
configure: WARNING: expat is missing or unusable; some features may be unavailable.
configure: WARNING: python is missing or unusable; some features may be unavailable.

configure: WARNING: linux/perf_event.h missing or too old; some features may be unavailable.
configure: WARNING: libipt is missing or unusable; some features may be unavailable.
configure: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data.
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/../riscv-binutils-gdb/sim/riscv/../common/sim-profile.c: In function ‘profile_pc_init’:
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/../riscv-binutils-gdb/sim/riscv/../common/sim-profile.c:566:4: warning: left shift count >= width of type [enabled by default]
    ((1 << sizeof (sim_cia) * (8 - 1))
    ^
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/../riscv-binutils-gdb/sim/riscv/../common/sim-profile.c:585:3: warning: left shift count >= width of type [enabled by default]
   bucket_size = ((1 << ((sizeof (sim_cia) * 8) - 1))
   ^
Creating observer.htmp
Creating observer.itmp
conflicts: 39 shift/reduce, 53 reduce/reduce
conflicts: 34 shift/reduce
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/../riscv-binutils-gdb/gdb/m2-exp.y:301.25-44: warning: rule useless in parser due to conflicts: $@2: /* empty */
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/../riscv-binutils-gdb/gdb/doc/gdb.texinfo:26571: warning: `.' or `,' must follow @xref, not `f'.

*** This configuration is not supported in the following subdirectories:
     target-libquadmath target-libatomic target-libcilkrts target-libitm target-libsanitizer target-libvtv target-libmpx gnattools gotools target-libada target-libgfortran target-libbacktrace target-libgo target-libffi target-zlib target-libjava target-libobjc target-libgomp target-liboffloadmic target-libssp target-boehm-gc
    (Any other directories should still work fine.)
configure: WARNING: decimal float is not supported for this target, ignored
libtool: install: warning: remember to run `libtool --finish /proj/RISC-V/libexec/gcc/riscv64-unknown-elf/6.1.0'

configure: WARNING: decimal float is not supported for this target, ignored
configure: WARNING: fixed-point is not supported for this target, ignored
Links are now set up to build a cross-compiler
 from x86_64-pc-linux-gnu to riscv64-unknown-elf.
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/config/riscv/riscv.md:2253: warning: operand 0 missing mode?
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/config/riscv/riscv.md:2273: warning: operand 1 missing mode?
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/config/riscv/riscv.md:2283: warning: operand 1 missing mode?
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/config/riscv/riscv.md:2307: warning: operand 0 missing mode?
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/config/riscv/riscv.md:2329: warning: operand 1 missing mode?
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/config/riscv/riscv.md:2341: warning: operand 1 missing mode?
Statistics for recog:
  Number of decisions:   1489
  longest path:            29 (code:    264)
  longest backtrack:        6 (code:    272)
Statistics for split_insns:
  Number of decisions:    101
  longest path:            30 (code:     23)
  longest backtrack:        3 (code:     23)
Statistics for peephole2_insns:
  Number of decisions:     46
  longest path:            33 (code:      4)
  longest backtrack:        1 (code:      3)
Shared 936 out of 2560 states by creating 272 new states, saving 664
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/langhooks.c: In function ‘void lhd_print_error_function(diagnostic_context*, const char*, diagnostic_info*)’:
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/langhooks.c:450:41: warning: unknown conversion type character ‘r’ in format [-Wformat=]
        "locus", s.file, s.line, s.column);
                                         ^
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/langhooks.c:450:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘const char*’ [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/langhooks.c:450:41: warning: unknown conversion type character ‘R’ in format [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/langhooks.c:450:41: warning: too many arguments for format [-Wformat-extra-args]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/langhooks.c:455:31: warning: unknown conversion type character ‘r’ in format [-Wformat=]
        "locus", s.file, s.line);
                               ^
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/langhooks.c:455:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘const char*’ [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/langhooks.c:455:31: warning: unknown conversion type character ‘R’ in format [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/langhooks.c:455:31: warning: too many arguments for format [-Wformat-extra-args]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/tree-vect-loop.c: In function ‘bool vect_determine_vectorization_factor(loop_vec_info)’:
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/tree-vect-loop.c:515:62: warning: ‘scalar_type’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        vf_vectype = get_vectype_for_scalar_type (scalar_type);
                                                              ^
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/diagnostic.c: In function ‘void diagnostic_report_current_module(diagnostic_context*, location_t)’:
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/diagnostic.c:532:53: warning: unknown conversion type character ‘r’ in format [-Wformat=]
     LAST_SOURCE_LINE (map), LAST_SOURCE_COLUMN (map));
                                                     ^
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/diagnostic.c:532:53: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘const char*’ [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/diagnostic.c:532:53: warning: unknown conversion type character ‘R’ in format [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/diagnostic.c:532:53: warning: too many arguments for format [-Wformat-extra-args]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/diagnostic.c:536:47: warning: unknown conversion type character ‘r’ in format [-Wformat=]
     LINEMAP_FILE (map), LAST_SOURCE_LINE (map));
                                               ^
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/diagnostic.c:536:47: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘const char*’ [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/diagnostic.c:536:47: warning: unknown conversion type character ‘R’ in format [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/diagnostic.c:536:47: warning: too many arguments for format [-Wformat-extra-args]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/diagnostic.c:542:49: warning: unknown conversion type character ‘r’ in format [-Wformat=]
       LINEMAP_FILE (map), LAST_SOURCE_LINE (map));
                                                 ^
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/diagnostic.c:542:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘const char*’ [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/diagnostic.c:542:49: warning: unknown conversion type character ‘R’ in format [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/diagnostic.c:542:49: warning: too many arguments for format [-Wformat-extra-args]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c: In function ‘void cp_print_error_function(diagnostic_context*, diagnostic_info*)’:
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3252:41: warning: unknown conversion type character ‘r’ in format [-Wformat=]
        "locus", s.file, s.line, s.column);
                                         ^
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3252:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘const char*’ [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3252:41: warning: unknown conversion type character ‘R’ in format [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3252:41: warning: too many arguments for format [-Wformat-extra-args]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3257:31: warning: unknown conversion type character ‘r’ in format [-Wformat=]
        "locus", s.file, s.line);
                               ^
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3257:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘const char*’ [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3257:31: warning: unknown conversion type character ‘R’ in format [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3257:31: warning: too many arguments for format [-Wformat-extra-args]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c: In function ‘void print_instantiation_partial_context_line(diagnostic_context*, const tinst_level*, location_t, bool)’:
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3342:46: warning: unknown conversion type character ‘r’ in format [-Wformat=]
    "locus", xloc.file, xloc.line, xloc.column);
                                              ^
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3342:46: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘const char*’ [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3342:46: warning: unknown conversion type character ‘R’ in format [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3342:46: warning: too many arguments for format [-Wformat-extra-args]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3345:33: warning: unknown conversion type character ‘r’ in format [-Wformat=]
    "locus", xloc.file, xloc.line);
                                 ^
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3345:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘const char*’ [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3345:33: warning: unknown conversion type character ‘R’ in format [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3345:33: warning: too many arguments for format [-Wformat-extra-args]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c: In function ‘void print_instantiation_partial_context(diagnostic_context*, tinst_level*, location_t)’:
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3422:53: warning: unknown conversion type character ‘r’ in format [-Wformat=]
     "locus", xloc.file, xloc.line, xloc.column, skip);
                                                     ^
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3422:53: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘const char*’ [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3422:53: warning: unknown conversion type character ‘R’ in format [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3422:53: warning: too many arguments for format [-Wformat-extra-args]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3428:40: warning: unknown conversion type character ‘r’ in format [-Wformat=]
     "locus", xloc.file, xloc.line, skip);
                                        ^
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3428:40: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘const char*’ [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3428:40: warning: unknown conversion type character ‘R’ in format [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3428:40: warning: too many arguments for format [-Wformat-extra-args]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c: In function ‘void maybe_print_constexpr_context(diagnostic_context*)’:
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3480:53: warning: unknown conversion type character ‘r’ in format [-Wformat=]
        "locus", xloc.file, xloc.line, xloc.column, s);
                                                     ^
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3480:53: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘const char*’ [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3480:53: warning: unknown conversion type character ‘R’ in format [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3480:53: warning: format ‘%s’ expects argument of type ‘char*’, but argument 6 has type ‘int’ [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3480:53: warning: too many arguments for format [-Wformat-extra-args]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3484:40: warning: unknown conversion type character ‘r’ in format [-Wformat=]
        "locus", xloc.file, xloc.line, s);
                                        ^
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3484:40: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘const char*’ [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3484:40: warning: unknown conversion type character ‘R’ in format [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3484:40: warning: format ‘%s’ expects argument of type ‘char*’, but argument 5 has type ‘int’ [-Wformat=]
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/gcc/cp/error.c:3484:40: warning: too many arguments for format [-Wformat-extra-args]
GIMPLE decision tree has 1432 leafs, maximum depth 10 and a total number of 5516 nodes
removed 736 duplicate tails
GENERIC decision tree has 1432 leafs, maximum depth 10 and a total number of 5516 nodes
removed 736 duplicate tails
gimple-match.c:775:1: warning: unused parameter ‘valueize’ [-Wunused-parameter]
 gimple_double_value_p (tree t, tree (*valueize)(tree))
 ^
gimple-match.c:792:1: warning: unused parameter ‘valueize’ [-Wunused-parameter]
 gimple_float_value_p (tree t, tree (*valueize)(tree))
 ^

configure: WARNING: decimal float is not supported for this target, ignored
Makefile:1476: warning: overriding commands for target `lib_a-mbtowc_r.o'
Makefile:820: warning: ignoring old commands for target `lib_a-mbtowc_r.o'
Makefile:1922: warning: overriding commands for target `
lib_a-vfwscanf.o'
Makefile:1624: warning: ignoring old commands for target `lib_a-vfwscanf.o'

/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/newlib/doc/makedoc.c: In function push_number’:
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/newlib/doc/makedoc.c:273:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     
*isp = (int)(*pc);
           
^
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/newlib/doc/makedoc.c: In function bang’:
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/newlib/doc/makedoc.c:1341:2: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 
*(int *)((isp[0])) = isp[-1];
 
^
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/newlib/doc/makedoc.c: In function atsign’:
/proj/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/src/newlib-gcc/newlib/doc/makedoc.c:1349:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     isp
[0] = *(int *)(isp[0]);
               
^
/proj/RISC-V/riscv64-unknown-elf/bin/ar: creating libnosys.a
configure
: WARNING: No native atomic operations are provided for this platform.
configure
: WARNING: They cannot be faked when thread support is disabled.
configure
: WARNING: Thread-safety of certain classes is not guaranteed.
Makefile:1476: warning: overriding commands for target `lib_a-mbtowc_r.o'
Makefile:820: warning: ignoring old commands for target `
lib_a-mbtowc_r.o'
mkdir /proj/RISC-V/riscv64-unknown-elf/include
mkdir /proj/RISC-V/riscv64-unknown-elf/include/machine
Makefile:1476: warning: overriding commands for target `lib_a-mbtowc_r.o'

Makefile:820: warning: ignoring old commands for target `lib_a-mbtowc_r.o'
Makefile:1922: warning: overriding commands for target `
lib_a-vfwscanf.o'
Makefile:1624: warning: ignoring old commands for target `lib_a-vfwscanf.o'

Makefile:1922: warning: overriding commands for target `lib_a-vfwscanf.o'
Makefile:1624: warning: ignoring old commands for target `
lib_a-vfwscanf.o'
Installing project riscv-gnu-toolchain

Configuring project riscv-pk
Building project riscv-pk
Installing project riscv-pk
mkdir //proj/RISC-V/riscv64-unknown-elf/include/riscv-pk
mkdir //proj/RISC-V/riscv64-unknown-elf/lib/riscv-pk

Configuring project riscv-tests
configure: WARNING: using cross tools not prefixed with host triplet
Building project riscv-tests
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone.c:20:1: warning: return type defaults to '
int' [-Wimplicit-int]
 Proc_6 (Enum_Val_Par, Enum_Ref_Par)
 ^~~~~~
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone.c: In function '
Proc_6':
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone.c:29:9: warning: implicit declaration of function '
Func_3' [-Wimplicit-function-declaration]
   if (! Func_3 (Enum_Val_Par))
         ^~~~~~
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone.c: At top level:
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone.c:54:1: warning: return type defaults to '
int' [-Wimplicit-int]
 Proc_7 (Int_1_Par_Val, Int_2_Par_Val, Int_Par_Ref)
 ^~~~~~
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone.c:74:1: warning: return type defaults to '
int' [-Wimplicit-int]
 Proc_8 (Arr_1_Par_Ref, Arr_2_Par_Ref, Int_1_Par_Val, Int_2_Par_Val)
 ^~~~~~
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c: In function '
main':
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:166:7: warning: implicit declaration of function '
Proc_5' [-Wimplicit-function-declaration]
       Proc_5();
       ^~~~~~
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:167:7: warning: implicit declaration of function '
Proc_4' [-Wimplicit-function-declaration]
       Proc_4();
       ^~~~~~
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:173:21: warning: implicit declaration of function '
Func_2' [-Wimplicit-function-declaration]
       Bool_Glob = ! Func_2 (Str_1_Loc, Str_2_Loc);
                     ^~~~~~
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:179:2: warning: implicit declaration of function '
Proc_7' [-Wimplicit-function-declaration]
  Proc_7 (Int_1_Loc, Int_2_Loc, &Int_3_Loc);
  ^~~~~~
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:184:7: warning: implicit declaration of function '
Proc_8' [-Wimplicit-function-declaration]
       Proc_8 (Arr_1_Glob, Arr_2_Glob, Int_1_Loc, Int_3_Loc);
       ^~~~~~
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:186:7: warning: implicit declaration of function '
Proc_1' [-Wimplicit-function-declaration]
       Proc_1 (Ptr_Glob);
       ^~~~~~
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:193:4: warning: implicit declaration of function '
Proc_6' [-Wimplicit-function-declaration]
    Proc_6 (Ident_1, &Enum_Loc);
    ^~~~~~
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:204:7: warning: implicit declaration of function '
Proc_2' [-Wimplicit-function-declaration]
       Proc_2 (&Int_1_Loc);
       ^~~~~~
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c: At top level:
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:288:1: warning: return type defaults to '
int' [-Wimplicit-int]
 Proc_1 (Ptr_Val_Par)
 ^~~~~~
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c: In function '
Proc_1':
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:304:3: warning: implicit declaration of function '
Proc_3' [-Wimplicit-function-declaration]
   Proc_3 (&Next_Record->Ptr_Comp);
   ^~~~~~
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c: At top level:
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:322:1: warning: return type defaults to '
int' [-Wimplicit-int]
 Proc_2 (Int_Par_Ref)
 ^~~~~~
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:345:1: warning: return type defaults to '
int' [-Wimplicit-int]
 Proc_3 (Ptr_Ref_Par)
 ^~~~~~
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:360:1: warning: return type defaults to '
int' [-Wimplicit-int]
 Proc_4 () /* without parameters */
 ^~~~~~
/proj/rocket-chip/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:372:1: warning: return type defaults to '
int' [-Wimplicit-int]
 Proc_5 () /* without parameters */
 ^~~~~~
/proj/rocket-chip/riscv-tools/riscv-tests/build/../isa/rv32mi/shamt.S: Assembler messages:
/proj/rocket-chip/riscv-tools/riscv-tests/build/../isa/rv32mi/shamt.S:20: Warning: Improper shift amount (32)
Installing project riscv-tests

RISC-V Toolchain installation completed!

Kito Cheng

unread,
Nov 2, 2016, 10:29:03 PM11/2/16
to Monir Zaman, RISC-V SW Dev
Hi Monir:

You can append -static-libstdc++ to CXX, it's can make libstdc++ link statically.

For example:
CC=gcc4.8 CXX="g++4.8 -static-libstdc++" ./build.sh

To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.

To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.

Monir Zaman

unread,
Nov 2, 2016, 11:35:29 PM11/2/16
to RISC-V SW Dev, monir....@gmail.com
Kito,
I don't think it is working for me. I removed the whole "rocket-chip" folder and tried to recompile. Here is the error:

CC=gcc4.8 CXX="g++4.8 -static-libstdc++" ./build.sh
Starting RISC-V Toolchain build process

Configuring project riscv-fesvr
Building project riscv-fesvr
Installing project riscv-fesvr

Configuring project riscv-isa-sim
Building project riscv-isa-sim
/usr/lib/../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `
main'
collect2: error: ld returned 1 exit status
gmake: *** [insn_template.h.gch] Error 1

gmake: *** Waiting for unfinished jobs....

Monir Zaman

unread,
Nov 3, 2016, 5:16:37 PM11/3/16
to RISC-V SW Dev, monir....@gmail.com
Ok, I think i got the "spike" to work after setting hte LD_LIBRARY_PATH to the GCC4.8.2 (that I am using).

But now, i tyr to compile the $rocket/vsim, and getting the error:

Generating code for _VCSgd_e5bx5
recompiling
module DebugTransportModuleJtag
Generating code for _VCSgd_H8dUg
recompiling
module JTAGVPI
Generating code for _VCSgd_JuKAH
recompiling
module AsyncResetReg
All of 134 modules done
make
[1]: Entering directory `/proj/rocket-chip/vsim/csrc'
cc1: error: unrecognized command line option "-std=c++11"
make[1]: *** [rmapats.o] Error 1
make[1]: Leaving directory `
/proj/rocket-chip/vsim/csrc'
Error: Failed to make rmapats.so @ ./simv-rocketchip-DefaultConfig.daidir/rmapats.so
make: *** [simv-rocketchip-DefaultConfig] Error 1


I guess I need to make change to the compiler somewhere in teh Makefile.

J Osmany

unread,
Nov 4, 2016, 4:41:00 AM11/4/16
to Monir Zaman, RISC-V SW Dev

Hi Monir


I am having similar problems, but when trying to get risc-v tests installed.


So i have used the following:


git clone https://github.com/riscv/riscv-tools.git
  pushd riscv-tools/
  git submodule update --init --recursive

  jsub --cmd xterm // to launch an xterm on one of the grid machines since these are CentOS7 machines, with the latest tools
  bash  // to be running the bash shell script
  export RISCV=/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/opt_riscv
  export GCC=/vl/edatools/intern/gcc/4.9.3/gcc/bin
  export GCCLIB=/vl/edatools/intern/gcc/4.9.3/gcc
  export PATH=$GCC:$GCCLIB:$PATH:$RISCV/bin
  export LD_LIBRARY_PATH=$GCCLIB:$LD_LIBRARY_PATH
  bash-4.1$ echo $LD_LIBRARY_PATH

    /vl/edatools/intern/gcc/4.9.3/gcc:/vl/edatools/tools/leapfmi/object/LINUX:/vl/edatools/lib/Linux
  ./build.sh


But installation of riscv-tests fails:


Installing project riscv-gnu-toolchain

Configuring project riscv-pk
configure: WARNING: using cross tools not prefixed with host triplet
Building project riscv-pk
Installing project riscv-pk
mkdir //user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/opt_riscv/riscv64-unknown-elf/include/riscv-pk
mkdir //user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/opt_riscv/riscv64-unknown-elf/lib/riscv-pk


Configuring project riscv-tests
configure: WARNING: using cross tools not prefixed with host triplet
Building project riscv-tests
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c: In function 'main':
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:166:7: warning: implicit declaration of function 'Proc_5' [-Wimplicit-function-declaration]
       Proc_5();
       ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:167:7: warning: implicit declaration of function 'Proc_4' [-Wimplicit-function-declaration]
       Proc_4();
       ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:173:21: warning: implicit declaration of function 'Func_2' [-Wimplicit-function-declaration]

       Bool_Glob = ! Func_2 (Str_1_Loc, Str_2_Loc);
                     ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:179:2: warning: implicit declaration of function 'Proc_7' [-Wimplicit-function-declaration]

  Proc_7 (Int_1_Loc, Int_2_Loc, &Int_3_Loc);
  ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:184:7: warning: implicit declaration of function 'Proc_8' [-Wimplicit-function-declaration]

       Proc_8 (Arr_1_Glob, Arr_2_Glob, Int_1_Loc, Int_3_Loc);
       ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:186:7: warning: implicit declaration of function 'Proc_1' [-Wimplicit-function-declaration]
       Proc_1 (Ptr_Glob);
       ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:193:4: warning: implicit declaration of function 'Proc_6' [-Wimplicit-function-declaration]
    Proc_6 (Ident_1, &Enum_Loc);
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:204:7: warning: implicit declaration of function 'Proc_2' [-Wimplicit-function-declaration]
       Proc_2 (&Int_1_Loc);
       ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c: At top level:
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:288:1: warning: return type defaults to 'int' [-Wimplicit-int]
 Proc_1 (Ptr_Val_Par)
 ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c: In function 'Proc_1':
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:304:3: warning: implicit declaration of function 'Proc_3' [-Wimplicit-function-declaration]
   Proc_3 (&Next_Record->Ptr_Comp);
   ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c: At top level:
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:322:1: warning: return type defaults to 'int' [-Wimplicit-int]
 Proc_2 (Int_Par_Ref)
 ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:345:1: warning: return type defaults to 'int' [-Wimplicit-int]
 Proc_3 (Ptr_Ref_Par)
 ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:360:1: warning: return type defaults to 'int' [-Wimplicit-int]

 Proc_4 () /* without parameters */
 ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone_main.c:372:1: warning: return type defaults to 'int' [-Wimplicit-int]

 Proc_5 () /* without parameters */
 ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone.c:20:1: warning: return type defaults to 'int' [-Wimplicit-int]
 Proc_6 (Enum_Val_Par, Enum_Ref_Par)
 ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone.c: In function 'Proc_6':
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone.c:29:9: warning: implicit declaration of function 'Func_3' [-Wimplicit-function-declaration]

   if (! Func_3 (Enum_Val_Par))
         ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone.c: At top level:
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone.c:54:1: warning: return type defaults to 'int' [-Wimplicit-int]

 Proc_7 (Int_1_Par_Val, Int_2_Par_Val, Int_Par_Ref)
 ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-tests/build/../benchmarks/dhrystone/dhrystone.c:74:1: warning: return type defaults to 'int' [-Wimplicit-int]

 Proc_8 (Arr_1_Par_Ref, Arr_2_Par_Ref, Int_1_Par_Val, Int_2_Par_Val)
 ^
elf2hex: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by //user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/opt_riscv/lib/libfesvr.so)
elf2hex: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by //user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/opt_riscv/lib/libfesvr.so)
gmake[1]: *** [median.riscv.hex] Error 1
gmake: *** [benchmarks] Error 2


Can you please share how you set the LD_LIBRARY_PATH variable?


Best Regards

J.Osmany



From: Monir Zaman <monir....@gmail.com>
Sent: 03 November 2016 21:16
To: RISC-V SW Dev
Cc: monir....@gmail.com
Subject: Re: [sw-dev] Re: RISCV-GNU-TOOLCHAIN install error
 

PEYRET Thomas

unread,
Nov 4, 2016, 5:58:54 AM11/4/16
to J Osmany, Monir Zaman, RISC-V SW Dev

Hi,

 

I believe this line is not correct : export GCCLIB=/vl/edatools/intern/gcc/4.9.3/gcc

Try with : export GCCLIB=/vl/edatools/intern/gcc/4.9.3/gcc/lib

 

I also have set other variables in my environment (don’t known if needed) : LD_RUN_PATH=$GCCLIB:$LD_RUN_PATH ; C_INCLUDE_PATH=$GCCLIB/../include:$ C_INCLUDE_PATH and also the CFLAG/CPPFLAG to  -I$GCCLIB/../include

 

Hope it will help.

 

Thomas

 

De : J Osmany [mailto:liv...@hotmail.co.uk]
Envoyé : vendredi 4 novembre 2016 09:41
À : Monir Zaman <monir....@gmail.com>; RISC-V SW Dev <sw-...@groups.riscv.org>
Objet : Re: [sw-dev] Re: RISCV-GNU-TOOLCHAIN install error

J Osmany

unread,
Nov 4, 2016, 6:20:22 AM11/4/16
to PEYRET Thomas, Monir Zaman, RISC-V SW Dev

Hi


Thank you for the correction and subsequent pointers.


Will update and re-run the riscv tool installation again.


Best Regards

J.Osmany



From: PEYRET Thomas <THOMAS...@cea.fr>
Sent: 04 November 2016 09:58
To: J Osmany; Monir Zaman; RISC-V SW Dev
Subject: RE: [sw-dev] Re: RISCV-GNU-TOOLCHAIN install error
 

Hi,

 

I believe this line is not correct : export GCCLIB=/vl/edatools/intern/gcc/4.9.3/gcc

Try with : export GCCLIB=/vl/edatools/intern/gcc/4.9.3/gcc/lib

 

I also have set other variables in my environment (don’t known if needed) : LD_RUN_PATH=$GCCLIB:$LD_RUN_PATH ; C_INCLUDE_PATH=$GCCLIB/../include:$ C_INCLUDE_PATH and also the CFLAG/CPPFLAG to  -I$GCCLIB/../include

 

Hope it will help.

 

Thomas

 

De : J Osmany [mailto:liv...@hotmail.co.uk]
Envoyé : vendredi 4 novembre 2016 09:41
À : Monir Zaman <monir....@gmail.com>; RISC-V SW Dev <sw-...@groups.riscv.org>
Objet : Re: [sw-dev] Re: RISCV-GNU-TOOLCHAIN install error

 

Hi Monir

 

I am having similar problems, but when trying to get risc-v tests installed.

 

So i have used the following:

 

git clone https://github.com/riscv/riscv-tools.git

riscv-tools - RISC-V Tools (GNU Toolchain, ISA Simulator, Tests)

J Osmany

unread,
Nov 4, 2016, 9:06:22 AM11/4/16
to PEYRET Thomas, Monir Zaman, RISC-V SW Dev

Hi Peyret



Have tried the following options. Unfortunatley both fail but in different ways.


1. Option 1


export RISCV=/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/opt_riscv
  export GCC=/vl/edatools/intern/gcc/4.9.3/gcc/bin
  export GCCLIB=/vl/edatools/intern/gcc/4.9.3/gcc/lib
  export PATH=$GCC:$PATH:$RISCV/bin
  export LD_LIBRARY_PATH=$GCCLIB:$LD_LIBRARY_PATH
  ./build.sh

This fails in the same way as previously when trying to install riscv-tests:


elf2hex: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by //user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/opt_riscv/lib/libfesvr.so)
elf2hex: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by //user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/opt_riscv/lib/libfesvr.so)
gmake[1]: *** [median.riscv.hex] Error 1
gmake: *** [benchmarks] Error 2

2. Option 2 - not sure if the CFLAG/CPPFLAG seetings i have used are correct.


export RISCV=/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/opt_riscv
  export GCC=/vl/edatools/intern/gcc/4.9.3/gcc/bin
  export GCCLIB=/vl/edatools/intern/gcc/4.9.3/gcc/lib
  export PATH=$GCC:$PATH:$RISCV/bin
  export LD_LIBRARY_PATH=$GCCLIB:$LD_LIBRARY_PATH
 export LD_RUN_PATH=$GCCLIB:$LD_RUN_PATH

 export CFLAG=-I$GCCLIB/..include:$CFLAG            <= Looks like this make not be correct.
 export CPPFLAG=-I$GCCLIB/..include:$CPPFLAG  <= Looks like this may not be correct.

 ./build.sh


This now fails much earlier:


Removing existing riscv-gnu-toolchain/build directory
Configuring project riscv-gnu-toolchain
Building project riscv-gnu-toolchain
cat: /var/cache/distfiles/gcc-5.3.0.tar.gz: No such file or directory

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  117M  100  117M    0     0   777k      0  0:02:34  0:02:34 --:--:-- 1935k

cat: /var/cache/distfiles/newlib-2.2.0.tar.gz: No such file or directory
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15.7M  100 15.7M    0     0  1197k      0  0:00:13  0:00:13 --:--:-- 1485k
cat: /var/cache/distfiles/binutils-2.25.1.tar.gz: No such file or directory

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 31.3M  100 31.3M    0     0   965k      0  0:00:33  0:00:33 --:--:-- 1076k
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-gnu-toolchain/build/src/binutils/bfd/dwarf2.c:3797:1: warning: no previous prototype for '_bfd_dwarf2_find_symbol_bias' [-Wmissing-prototypes]
 _bfd_dwarf2_find_symbol_bias (asymbol ** symbols, void ** pinfo)
 ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-gnu-toolchain/build/src/binutils/gas/as.c: In function 'print_version_id':
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-gnu-toolchain/build/src/binutils/gas/as.c:224:14: error: 'TARGET_ALIAS' undeclared (first use in this function)
     VERSION, TARGET_ALIAS, BFD_VERSION_STRING);
              ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-gnu-toolchain/build/src/binutils/gas/as.c:224:14: note: each undeclared identifier is reported only once for each function it appears in
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-gnu-toolchain/build/src/binutils/gas/as.c: In function 'parse_args':
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-gnu-toolchain/build/src/binutils/gas/as.c:635:5: error: 'TARGET_ALIAS' undeclared (first use in this function)
     TARGET_ALIAS);

     ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-gnu-toolchain/build/src/binutils/gas/as.c:649:44: error: 'TARGET_CANONICAL' undeclared (first use in this function)
    fprintf (stderr, _("canonical = %s\n"), TARGET_CANONICAL);

                                            ^
/user/jdo.tmp2/risc-v/sw_tools_3_Nov_2016_riscv_original_gcc_4.9.3/riscv-tools/riscv-gnu-toolchain/build/src/binutils/gas/as.c:650:43: error: 'TARGET_CPU' undeclared (first use in this function)
    fprintf (stderr, _("cpu-type = %s\n"), TARGET_CPU);

                                           ^
gmake[5]: *** [as.o] Error 1
gmake[4]: *** [all-recursive] Error 1
gmake[3]: *** [all] Error 2
gmake[2]: *** [all-gas] Error 2

gmake[1]: *** [all] Error 2
gmake: *** [stamps/build-binutils-newlib] Error 2



Best Regards

J.Osmany



From: J Osmany <liv...@hotmail.co.uk>
Sent: 04 November 2016 10:20
To: PEYRET Thomas; Monir Zaman; RISC-V SW Dev
Subject: Re: [sw-dev] Re: RISCV-GNU-TOOLCHAIN install error
 

Monir Zaman

unread,
Nov 4, 2016, 11:49:11 AM11/4/16
to J Osmany, PEYRET Thomas, RISC-V SW Dev

J.Osmany,

You may want to add the following to your GCCLIB:

 

Export GCCLIB=/vl/edatools/intern/gcc/4.9.3/gcc/lib64

 

I think I am able to run “spike” now. But I am now having trouble compiling the “vsim” and the “emulator”. In vsim, I get No Top Module define in the VCS command.

 

Thanks

Monir

J Osmany

unread,
Nov 4, 2016, 11:54:35 AM11/4/16
to Monir Zaman, PEYRET Thomas, RISC-V SW Dev

Hi Monir


Thanks for the pointer. I will give it a try.


WRT vcs the problem is related to the "-I" option being passed to vcs. The "-I" must be followed by the option value without any space. Ie "-I<option_value>" and not "-I <option_value>".


Best Regards

J.Osmany



From: Monir Zaman <monir....@gmail.com>
Sent: 04 November 2016 15:49
To: J Osmany; PEYRET Thomas; RISC-V SW Dev

J Osmany

unread,
Nov 4, 2016, 1:13:44 PM11/4/16
to Monir Zaman, PEYRET Thomas, RISC-V SW Dev

Hi Monir


I applied the fix you suggested and finally the RISC-V toolchain installation in my world has completed!!. Thanks again for the pointer.


Now to try running spike on the "Hello_World" program to complete the pipe flush.


Best Regards

J.Osmany



From: J Osmany <liv...@hotmail.co.uk>
Sent: 04 November 2016 15:54
To: Monir Zaman; PEYRET Thomas; RISC-V SW Dev

Monir Zaman

unread,
Nov 4, 2016, 1:22:03 PM11/4/16
to J Osmany, PEYRET Thomas, RISC-V SW Dev

Monir Zaman

unread,
Nov 4, 2016, 3:48:39 PM11/4/16
to J Osmany, PEYRET Thomas, RISC-V SW Dev

I looked up at the “Makefrag” file in “vsim” folder. I don’t see any space after –I option.

 

 

      11 sim_vsrcs = \

     12         $(generated_dir)/$(long_name).v \

     13         $(generated_dir)/$(long_name).behav_srams.v \

     14         $(generated_dir)/consts.$(CONFIG).vh \

     15         $(base_dir)/vsrc/$(TB).v \

     16         $(base_dir)/vsrc/SimDTM.v \

     17         $(bb_vsrcs)

     18

     19 # C sources

     20

     21 sim_csrcs = \

     22         $(base_dir)/csrc/SimDTM.cc \

     23         $(base_dir)/csrc/jtag_vpi.c

     24

     25 #--------------------------------------------------------------------

     26 # Build Verilog

     27 #--------------------------------------------------------------------

     28

     29 verilog: $(sim_vsrcs)

     30

     31 .PHONY: verilog

     32

     33 #--------------------------------------------------------------------

     34 # Build rules

     35 #--------------------------------------------------------------------

     36

     37 VCS = vcs -full64

     38

     39 VCS_OPTS = -notice -line +lint=all,noVCDE,noONGS,noUI -error=PCWM-L -timescale=1ns/10ps -quiet \

     40         +rad +v2k +vcs+lic+wait \

     41         +vc+list -CC "-I$(VCS_HOME)/include" \

     42         -CC "-I$(RISCV)/include" \

     43 #------ -CC "-std=c++11" \

     44         -CC "-std=c++0x" \

     45         -CC "-Wl,-rpath,$(RISCV)/lib" \

     46         -CC "-include $(consts_header)" \

     47         $(RISCV)/lib/libfesvr.so \

     48         -sverilog \

     49         +incdir+$(generated_dir) \

     50         +define+CLOCK_PERIOD=1.0 $(sim_vsrcs) $(sim_csrcs) \

     51         +define+PRINTF_COND=$(TB).printf_cond \

     52         +define+STOP_COND=!$(TB).reset \

     53         +define+RANDOMIZE_MEM_INIT \

     54         +define+RANDOMIZE_REG_INIT \

     55         +define+RANDOMIZE_GARBAGE_ASSIGN \

     56         +define+RANDOMIZE_INVALID_ASSIGN \

     57         +libext+.v \

     58

     59 VCS_OPTS += +vpi

     60 VCS_OPTS += -P $(base_dir)/vsrc/jtag_vpi.tab

     61 VCS_OPTS += -CC "-DVCS_VPI"

     62

     63

     64 #--------------------------------------------------------------------

     65 # Build the simulator

     66 #--------------------------------------------------------------------

     67

     68 simv = $(sim_dir)/simv-$(PROJECT)-$(CONFIG)

     69 $(simv) : $(sim_vsrcs) $(sim_csrcs) $(consts_header)

     70         cd $(sim_dir) && \

     71         rm -rf csrc && \

     72         $(VCS) $(VCS_OPTS) -o $(simv) \

     73         -debug_pp \

 

 

And this is the error I get:

 

make

cd . && \

                rm -rf csrc && \

                vcs -full64 -notice -line +lint=all,noVCDE,noONGS,noUI -error=PCWM-L -timescale=1ns/10ps -quiet +rad +v2k +vcs+lic+wait +vc+list -CC "-I/proj/cad/synopsys/synopsys-2016.lnx86_64_vcs-mx_vL-2016.06-SP1-1/include" -CC "-I/proj/txace/mxm084100/RISC-V/include"  +vpi -P /proj/txace/mxm084100/rocket-chip/vsrc/jtag_vpi.tab -CC "-DVCS_VPI" -o ./simv-rocketchip-DefaultConfig \

                -debug_pp \

 

 

Error-[NTMES] No TopModule/Entity supplied

  No TopModule/Entity supplied on 'vcs' command line.

  Usage: vcs [libname.]<Design Unit> [-o output] [other compile opts] or vcs

  -help

 

make: *** [simv-rocketchip-DefaultConfig] Error 1

 

Any idea?

Colin Schmidt

unread,
Nov 4, 2016, 8:03:00 PM11/4/16
to Monir Zaman, J Osmany, PEYRET Thomas, RISC-V SW Dev
You can't put comments in-line in those make variable definitions. You can see how it stopped adding arguments at the commented line.

To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.

--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.

To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.

--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.

To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.

--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.

To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.

--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.

To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.

--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.

To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.

Monir Zaman

unread,
Nov 5, 2016, 2:52:43 AM11/5/16
to RISC-V SW Dev, monir....@gmail.com, liv...@hotmail.co.uk, THOMAS...@cea.fr, col...@eecs.berkeley.edu
Thanks Collin and Osmany.

Now I am getting No Rule to Make Target error.

[info] [7.915] Done elaborating.
[success] Total time: 16 s, completed Nov 5, 2016 1:44:42 AM
mkdir
-p /proj/rocket-chip/vsim/generated-src/
java
-Xmx2G -Xss8M -XX:MaxPermSize=256M -cp /proj/rocket-chip/firrtl/utils/bin/firrtl.jar firrtl.Driver -i /proj/rocket-chip/vsim/generated-src/rocketchip.DefaultConfig.fir -o /proj/rocket-chip/vsim/generated-src/rocketchip.DefaultConfig.v -X verilog --infer-rw TestHarness --repl-seq-mem -c:TestHarness:-o:/proj/rocket-chip/vsim/generated-src/rocketchip.DefaultConfig.conf
cd
/proj/rocket-chip/vsim/generated-src && \
        rm
-f /proj/rocket-chip/vsim/generated-src/rocketchip.DefaultConfig.behav_srams.v && \
       
/proj/rocket-chip/vsim/vlsi_mem_gen /proj/rocket-chip/vsim/generated-src/rocketchip.DefaultConfig.conf >> /proj/rocket-chip/vsim/generated-src/rocketchip.DefaultConfig.behav_srams.v.tmp && \
        mv
/proj/rocket-chip/vsim/generated-src/rocketchip.DefaultConfig.behav_srams.v.tmp /proj/rocket-chip/vsim/generated-src/rocketchip.DefaultConfig.behav_srams.v
echo
"\`ifndef CONST_VH" > /proj/rocket-chip/vsim/generated-src/consts.DefaultConfig.vh
echo
"\`define CONST_VH" >> /proj/rocket-chip/vsim/generated-src/consts.DefaultConfig.vh
sed
-r 's/\(([A-Za-z0-9_]+),([A-Za-z0-9_]+)\)/`define \1 \2/' /proj/rocket-chip/vsim/generated-src/rocketchip.DefaultConfig.prm >> /proj/rocket-chip/vsim/generated-src/consts.DefaultConfig.vh
echo
"\`endif // CONST_VH" >> /proj/rocket-chip/vsim/generated-src/consts.DefaultConfig.vh
make
: *** No rule to make target `-I/proj/rocket-chip/csrc/SimDTM.cc', needed by `simv-rocketchip-DefaultConfig'.  Stop.


...

Colin Schmidt

unread,
Nov 5, 2016, 2:30:49 PM11/5/16
to Monir Zaman, RISC-V SW Dev, J Osmany, PEYRET Thomas
Somethings gone wrong in your makefile/makefrag. It should be trying to make

/proj/rocket-chip/csrc/SimDTM.cc

as a dependency not

-I/proj/rocket-chip/csrc/SimDTM.cc

notice the -I at the front. Its hard to tell why this is the case without seeing the files.

Monir Zaman

unread,
Nov 5, 2016, 3:07:00 PM11/5/16
to RISC-V SW Dev, monir....@gmail.com, liv...@hotmail.co.uk, THOMAS...@cea.fr, col...@eecs.berkeley.edu
Collin,
Here are the Make files in teh vsim directory attached.

I don't remember of changing anything in the Makefile other than the CXXFLAGS=c++0x in the Makefilefrag.

Thanks in advance.
...
Makefile
Makefrag
Makefrag-verilog

Colin Schmidt

unread,
Nov 5, 2016, 3:26:38 PM11/5/16
to Monir Zaman, RISC-V SW Dev, J Osmany, PEYRET Thomas
On line 68 of the Makefrag you have a "-I" in front of $(sim_csrcs).

Monir Zaman

unread,
Mar 3, 2017, 3:28:25 PM3/3/17
to RISC-V SW Dev, monir....@gmail.com, liv...@hotmail.co.uk, THOMAS...@cea.fr, col...@eecs.berkeley.edu
Hello,
I am able to do "make verilog".

But when I do "make run" to run the tests, I get error:

{txace:vsim} make run
cd
. && \
    rm
-rf csrc && \
    vcs
-full64 -notice -line +lint=all,noVCDE,noONGS,noUI -error=PCWM-L -timescale=1ns/10ps -quiet +rad +v2k +vcs+lic+wait +vc+list -CC "-I/proj/cad/synopsys/vcs-mx_vL-2016.06-SP1-1/include" -CC "-I/proj/txace/RISC-V/include" \        +vpi -P /proj/txace/mxm084100/rocket-chip/vsrc/jtag_vpi.tab -CC "-DVCS_VPI" -o ./simv-rocketchip-DefaultConfig \
   
-debug_pp

Error-[PRS_OPT] Illegal use of parse only options
 
There is no source file specified or the specified source files cannot be
  opened
, hence VCS is running in UUM mode.
 
In UUM mode, the parse only option ' +v2k' can only be used with vlogan.
 
If VCS is intended to be run in non-UUM mode, Please check the specified
  source files
; Otherwise, please pass the option to vlogan command-line or
  check
'vlogan -help' for additional details.


make
: *** [simv-rocketchip-DefaultConfig] Error 1



Any idea?
...
Reply all
Reply to author
Forward
0 new messages