Hi, Based on the previous discussion I was able to overcome that obstacle. Now while moving further, I am getting this error in bash_minimal: checking library dependencies... Library ldso_so_support COMPILE so_support.o MERGE ldso_so_support.lib.a Library libc CONVERT libc.symbols.s ASSEMBLE libc.symbols.o MERGE libc.abi.so Library noux MERGE noux.lib.a Library posix CONVERT posix.symbols.s ASSEMBLE posix.symbols.o MERGE posix.abi.so Library libm CONVERT libm.symbols.s ASSEMBLE libm.symbols.o MERGE libm.abi.so Program noux-pkg/bash-minimal/bash-minimal CONFIG bash-minimal BUILD bash-minimal [bash-minimal] [bash-minimal] *********************************************************** [bash-minimal] * * [bash-minimal] * GNU bash, version 4.4.18(1)-release (riscv64-unknown-elf) [bash-minimal] * * [bash-minimal] *********************************************************** [bash-minimal] [bash-minimal] making lib/intl/libintl.a in ./lib/intl [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:48.1-12: warning: POSIX Yacc does not support %pure_parser [-Wyacc] [bash-minimal] 48 | %pure_parser [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:48.1-12: warning: deprecated directive: ‘%pure_parser’, use ‘%define api.pure’ [-Wdeprecated] [bash-minimal] 48 | %pure_parser [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] | %define api.pure [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:49.1-7: warning: POSIX Yacc does not support %expect [-Wyacc] [bash-minimal] 49 | %expect 7 [bash-minimal] | ^~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y: warning: fix-its can be applied. Rerun with option '--update'. [-Wother] [bash-minimal] In file included from /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:37: [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: error: conflicting types for ‘libintl_gettextparse’ [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:42:25: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 42 | # define __gettextparse PLURAL_PARSE [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:204:5: note: in expansion of macro ‘__gettextparse’ [bash-minimal] 204 | int __gettextparse (void); [bash-minimal] | ^~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: note: previous declaration of ‘libintl_gettextparse’ was here [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:116:12: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 116 | extern int PLURAL_PARSE PARAMS ((void *arg)); [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: error: conflicting types for ‘libintl_gettextparse’ [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:42:25: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 42 | # define __gettextparse PLURAL_PARSE [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:67:25: note: in expansion of macro ‘__gettextparse’ [bash-minimal] 67 | #define yyparse __gettextparse [bash-minimal] | ^~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:1225:1: note: in expansion of macro ‘yyparse’ [bash-minimal] 1225 | yyparse (void) [bash-minimal] | ^~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: note: previous declaration of ‘libintl_gettextparse’ was here [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:116:12: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 116 | extern int PLURAL_PARSE PARAMS ((void *arg)); [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c: In function ‘libintl_gettextparse’: [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:68:25: error: too few arguments to function ‘__gettextlex’ [bash-minimal] 68 | #define yylex __gettextlex [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:1403:16: note: in expansion of macro ‘yylex’ [bash-minimal] 1403 | yychar = yylex (&yylval); [bash-minimal] | ^~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:68:25: note: declared here [bash-minimal] 68 | #define yylex __gettextlex [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:71:12: note: in expansion of macro ‘yylex’ [bash-minimal] 71 | static int yylex PARAMS ((YYSTYPE *lval, const char **pexp)); [bash-minimal] | ^~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:180:29: error: ‘arg’ undeclared (first use in this function) [bash-minimal] 180 | ((struct parse_args *) arg)->res = $1; [bash-minimal] | ^~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:180:29: note: each undeclared identifier is reported only once for each function it appears in [bash-minimal] make[9]: *** [Makefile:175: plural.o] Error 1 [bash-minimal] make[8]: *** [Makefile:668: lib/intl/libintl.a] Error 1 make[7]: *** [/home/pranab/MTP/r5/genode/depot/genodelabs/api/noux/2021-12-16/mk/ gnu_build.mk:181: built.tag] Error 2 make[6]: *** [var/libdeps:119: bash-minimal.prg] Error 2 make[5]: *** [Makefile:336: gen_deps_and_build_targets] Error 2 make[4]: *** [/home/pranab/MTP/r5/genode/tool/depot/mk/build_bin_archive:208: /home/pranab/MTP/r5/genode/depot/genodelabs/bin/riscv/bash-minimal/2023-02-15.build/bin] Error 1 make[3]: *** [/home/pranab/MTP/r5/genode/depot/var/build.mk:264: genodelabs/bin/riscv/bash-minimal/2023-02-15] Error 2 make[2]: *** [/home/pranab/MTP/r5/genode/tool/depot/build:136: execute_generated_build_mk_file] Error 2 make[1]: *** [/home/pranab/MTP/r5/genode/tool/depot/create:59: build] Error 2 make[1]: Leaving directory '/home/pranab/MTP/r5/genode/build/riscv'
I am trying to execute the run/sculpt for KERNEL=hw BOARD=virt_qemu_riscv. also this error persists while executing the run/sculpt_test also. Kindly tell whats the problem and How do I overcome this. I want to build the sculpt for RISC-V arch, but I dont have a board so I am doing it for virt_qemu_riscv. If you have any other resources to follow for this please let me know.
Regards, Pranab
On Tue, Feb 14, 2023 at 1:45 PM users-request@lists.genode.org wrote:
Date: Mon, 13 Feb 2023 20:40:20 +0100 From: Martin Stein martin.stein@genode-labs.com To: users@lists.genode.org Subject: Re: regarding Sculpt on virt_qemu_riscv Message-ID: 3cad7ef6-7b35-f63b-4f07-de2f47657fc2@genode-labs.com Content-Type: text/plain; charset=utf-8
Hi Pranab,
On 13.02.23 17:32, Pranab Kumar Rout cs21m045 wrote:
[init -> test-log] Test done.
and, Qemu popped up with a text "*Guest has not initialized the display yet*".
Please tell me if this is all what I should expect from 'make run/log' or if I have done something wrong ?
Yes, this can be considered a successful run of the log test. Why you had to download the firmware and run the image manually is out of my scope of knowledge.
P.S. /- /The drivers_interactive package for this platform (riscv), is not in /'repos/os/recipes/raw/' .... /rather its present in/'genode/repos/riscv/recipes/raw'./
On branch genodelabs/master the archives are located here:
repos/riscv/recipes/pkg/drivers_interactive-virt_qemu_riscv repos/riscv/recipes/raw/drivers_interactive-virt_qemu_riscv
I assume the problem is that your Sculpt configuration references the wrong recipe names (drivers_interactive-virt_riscv instead of drivers_interactive-virt_qemu_riscv).
All recipes related to riscv was not with genode, I had to add it into /'genode/repos/' /from github.
This is normal. the genodelabs repo contains only the basic OS framework. Other platforms like RISC-V have their own repository. In the end this is transparent to the build system because all repositories you select are seen like "combined" as a single source tree. You don't have to move stuff around from one repo to another!
I hope that helped?
Cheers, Martin
Hi Pranab,
I'm failing to reproduce your problem. When, on branch genodelabs/master, I do [1], the process finishes successfully. Do you use https://github.com/genodelabs/genode.git and https://github.com/genodelabs/genode-riscv.git with both at branch genodelabs/master or do you have another setup?
Cheers, Martin
[1] ./tool/depot/create local/bin/riscv/bash-minimal -j8 CCACHE=1 UPDATE_VERSIONS=1 FORCE=1 REBUILD=
On 15.02.23 08:25, Pranab Kumar Rout cs21m045 wrote:
Hi, Based on the previous discussion I was able to overcome that obstacle. Now while moving further, I am getting this error in bash_minimal: checking library dependencies... Library ldso_so_support COMPILE so_support.o MERGE ldso_so_support.lib.a Library libc CONVERT libc.symbols.s ASSEMBLE libc.symbols.o MERGE libc.abi.so http://libc.abi.so Library noux MERGE noux.lib.a Library posix CONVERT posix.symbols.s ASSEMBLE posix.symbols.o MERGE posix.abi.so http://posix.abi.so Library libm CONVERT libm.symbols.s ASSEMBLE libm.symbols.o MERGE libm.abi.so http://libm.abi.so Program noux-pkg/bash-minimal/bash-minimal CONFIG bash-minimal BUILD bash-minimal [bash-minimal] [bash-minimal] *********************************************************** [bash-minimal] * * [bash-minimal] * GNU bash, version 4.4.18(1)-release (riscv64-unknown-elf) [bash-minimal] * * [bash-minimal] *********************************************************** [bash-minimal] [bash-minimal] making lib/intl/libintl.a in ./lib/intl [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:48.1-12: warning: POSIX Yacc does not support %pure_parser [-Wyacc] [bash-minimal] 48 | %pure_parser [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:48.1-12: warning: deprecated directive: ‘%pure_parser’, use ‘%define api.pure’ [-Wdeprecated] [bash-minimal] 48 | %pure_parser [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] | %define api.pure [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:49.1-7: warning: POSIX Yacc does not support %expect [-Wyacc] [bash-minimal] 49 | %expect 7 [bash-minimal] | ^~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y: warning: fix-its can be applied. Rerun with option '--update'. [-Wother] [bash-minimal] In file included from /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:37: [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: error: conflicting types for ‘libintl_gettextparse’ [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:42:25: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 42 | # define __gettextparse PLURAL_PARSE [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:204:5: note: in expansion of macro ‘__gettextparse’ [bash-minimal] 204 | int __gettextparse (void); [bash-minimal] | ^~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: note: previous declaration of ‘libintl_gettextparse’ was here [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:116:12: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 116 | extern int PLURAL_PARSE PARAMS ((void *arg)); [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: error: conflicting types for ‘libintl_gettextparse’ [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:42:25: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 42 | # define __gettextparse PLURAL_PARSE [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:67:25: note: in expansion of macro ‘__gettextparse’ [bash-minimal] 67 | #define yyparse __gettextparse [bash-minimal] | ^~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:1225:1: note: in expansion of macro ‘yyparse’ [bash-minimal] 1225 | yyparse (void) [bash-minimal] | ^~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: note: previous declaration of ‘libintl_gettextparse’ was here [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:116:12: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 116 | extern int PLURAL_PARSE PARAMS ((void *arg)); [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c: In function ‘libintl_gettextparse’: [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:68:25: error: too few arguments to function ‘__gettextlex’ [bash-minimal] 68 | #define yylex __gettextlex [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:1403:16: note: in expansion of macro ‘yylex’ [bash-minimal] 1403 | yychar = yylex (&yylval); [bash-minimal] | ^~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:68:25: note: declared here [bash-minimal] 68 | #define yylex __gettextlex [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:71:12: note: in expansion of macro ‘yylex’ [bash-minimal] 71 | static int yylex PARAMS ((YYSTYPE *lval, const char **pexp)); [bash-minimal] | ^~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:180:29: error: ‘arg’ undeclared (first use in this function) [bash-minimal] 180 | ((struct parse_args *) arg)->res = $1; [bash-minimal] | ^~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:180:29: note: each undeclared identifier is reported only once for each function it appears in [bash-minimal] make[9]: *** [Makefile:175: plural.o] Error 1 [bash-minimal] make[8]: *** [Makefile:668: lib/intl/libintl.a] Error 1 make[7]: *** [/home/pranab/MTP/r5/genode/depot/genodelabs/api/noux/2021-12-16/mk/gnu_build.mk:181 http://gnu_build.mk:181: built.tag] Error 2 make[6]: *** [var/libdeps:119: bash-minimal.prg] Error 2 make[5]: *** [Makefile:336: gen_deps_and_build_targets] Error 2 make[4]: *** [/home/pranab/MTP/r5/genode/tool/depot/mk/build_bin_archive:208: /home/pranab/MTP/r5/genode/depot/genodelabs/bin/riscv/bash-minimal/2023-02-15.build/bin] Error 1 make[3]: *** [/home/pranab/MTP/r5/genode/depot/var/build.mk:264 http://build.mk:264: genodelabs/bin/riscv/bash-minimal/2023-02-15] Error 2 make[2]: *** [/home/pranab/MTP/r5/genode/tool/depot/build:136: execute_generated_build_mk_file] Error 2 make[1]: *** [/home/pranab/MTP/r5/genode/tool/depot/create:59: build] Error 2 make[1]: Leaving directory '/home/pranab/MTP/r5/genode/build/riscv' I am trying to execute the run/sculpt for KERNEL=hw BOARD=virt_qemu_riscv. also this error persists while executing the run/sculpt_test also. Kindly tell whats the problem and How do I overcome this. I want to build the sculpt for RISC-V arch, but I dont have a board so I am doing it for virt_qemu_riscv. If you have any other resources to follow for this please let me know.
Regards, Pranab
I already comment this problem couple weeks ago.
in short, you have too new bison version (probably 3.xx) which generated plural.c file this file (plural.c) is present in depot together with plural.y , and if you get rid of re-generation - it will be compiled.
or you need to install bison version 2.xx.
15 февр. 2023 г., в 11:34, Martin Stein martin.stein@genode-labs.com написал(а):
Hi Pranab,
I'm failing to reproduce your problem. When, on branch genodelabs/master, I do [1], the process finishes successfully. Do you use https://github.com/genodelabs/genode.git and https://github.com/genodelabs/genode-riscv.git with both at branch genodelabs/master or do you have another setup?
Cheers, Martin
[1] ./tool/depot/create local/bin/riscv/bash-minimal -j8 CCACHE=1 UPDATE_VERSIONS=1 FORCE=1 REBUILD=
On 15.02.23 08:25, Pranab Kumar Rout cs21m045 wrote:
Hi, Based on the previous discussion I was able to overcome that obstacle. Now while moving further, I am getting this error in bash_minimal: checking library dependencies... Library ldso_so_support COMPILE so_support.o MERGE ldso_so_support.lib.a Library libc CONVERT libc.symbols.s ASSEMBLE libc.symbols.o MERGE libc.abi.so http://libc.abi.so Library noux MERGE noux.lib.a Library posix CONVERT posix.symbols.s ASSEMBLE posix.symbols.o MERGE posix.abi.so http://posix.abi.so Library libm CONVERT libm.symbols.s ASSEMBLE libm.symbols.o MERGE libm.abi.so http://libm.abi.so Program noux-pkg/bash-minimal/bash-minimal CONFIG bash-minimal BUILD bash-minimal [bash-minimal] [bash-minimal]
[bash-minimal] * * [bash-minimal] * GNU bash, version 4.4.18(1)-release
(riscv64-unknown-elf) [bash-minimal] * * [bash-minimal]
[bash-minimal] [bash-minimal] making lib/intl/libintl.a in ./lib/intl [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:48.1-12: warning: POSIX Yacc does not support %pure_parser [-Wyacc] [bash-minimal] 48 | %pure_parser [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:48.1-12: warning: deprecated directive: ‘%pure_parser’, use ‘%define api.pure’ [-Wdeprecated] [bash-minimal] 48 | %pure_parser [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] | %define api.pure [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:49.1-7: warning: POSIX Yacc does not support %expect [-Wyacc] [bash-minimal] 49 | %expect 7 [bash-minimal] | ^~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y: warning: fix-its can be applied. Rerun with option '--update'. [-Wother] [bash-minimal] In file included from /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:37: [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: error: conflicting types for ‘libintl_gettextparse’ [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:42:25: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 42 | # define __gettextparse PLURAL_PARSE [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:204:5: note: in expansion of macro ‘__gettextparse’ [bash-minimal] 204 | int __gettextparse (void); [bash-minimal] | ^~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: note: previous declaration of ‘libintl_gettextparse’ was here [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:116:12: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 116 | extern int PLURAL_PARSE PARAMS ((void *arg)); [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: error: conflicting types for ‘libintl_gettextparse’ [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:42:25: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 42 | # define __gettextparse PLURAL_PARSE [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:67:25: note: in expansion of macro ‘__gettextparse’ [bash-minimal] 67 | #define yyparse __gettextparse [bash-minimal] | ^~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:1225:1: note: in expansion of macro ‘yyparse’ [bash-minimal] 1225 | yyparse (void) [bash-minimal] | ^~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: note: previous declaration of ‘libintl_gettextparse’ was here [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:116:12: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 116 | extern int PLURAL_PARSE PARAMS ((void *arg)); [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c: In function ‘libintl_gettextparse’: [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:68:25: error: too few arguments to function ‘__gettextlex’ [bash-minimal] 68 | #define yylex __gettextlex [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:1403:16: note: in expansion of macro ‘yylex’ [bash-minimal] 1403 | yychar = yylex (&yylval); [bash-minimal] | ^~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:68:25: note: declared here [bash-minimal] 68 | #define yylex __gettextlex [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:71:12: note: in expansion of macro ‘yylex’ [bash-minimal] 71 | static int yylex PARAMS ((YYSTYPE *lval, const char **pexp)); [bash-minimal] | ^~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:180:29: error: ‘arg’ undeclared (first use in this function) [bash-minimal] 180 | ((struct parse_args *) arg)->res = $1; [bash-minimal] | ^~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:180:29: note: each undeclared identifier is reported only once for each function it appears in [bash-minimal] make[9]: *** [Makefile:175: plural.o] Error 1 [bash-minimal] make[8]: *** [Makefile:668: lib/intl/libintl.a] Error 1 make[7]: *** [/home/pranab/MTP/r5/genode/depot/genodelabs/api/noux/2021-12-16/mk/gnu_build.mk:181 http://gnu_build.mk:181: built.tag] Error 2 make[6]: *** [var/libdeps:119: bash-minimal.prg] Error 2 make[5]: *** [Makefile:336: gen_deps_and_build_targets] Error 2 make[4]: *** [/home/pranab/MTP/r5/genode/tool/depot/mk/build_bin_archive:208: /home/pranab/MTP/r5/genode/depot/genodelabs/bin/riscv/bash-minimal/2023-02-15.build/bin] Error 1 make[3]: *** [/home/pranab/MTP/r5/genode/depot/var/build.mk:264 http://build.mk:264: genodelabs/bin/riscv/bash-minimal/2023-02-15] Error 2 make[2]: *** [/home/pranab/MTP/r5/genode/tool/depot/build:136: execute_generated_build_mk_file] Error 2 make[1]: *** [/home/pranab/MTP/r5/genode/tool/depot/create:59: build] Error 2 make[1]: Leaving directory '/home/pranab/MTP/r5/genode/build/riscv'
I am trying to execute the run/sculpt for KERNEL=hw BOARD=virt_qemu_riscv. also this error persists while executing the run/sculpt_test also. Kindly tell whats the problem and How do I overcome this. I want to build the sculpt for RISC-V arch, but I dont have a board so I am doing it for virt_qemu_riscv. If you have any other resources to follow for this please let me know.
Regards, Pranab
Genode users mailing list users@lists.genode.org https://lists.genode.org/listinfo/users
Hi, I am getting this error while doing:
make run/sculpt KERNEL=hw BOARD=virt_qemu_riscv
I don't have a different setup, I am using the master branch only.
As Alexander pointed out, it looks like I need to downgrade my gnu bison (which is now 3.5.1) to some 2.xx otherwise if its already present in depot, how do I skip the re-generation? Do I have to configure any file? Will it affect my process of building sculpt image? Please advise.
regards, Pranab
On Wed, Feb 15, 2023 at 2:38 PM Alexander Tormasov via users < users@lists.genode.org> wrote:
I already comment this problem couple weeks ago.
in short, you have too new bison version (probably 3.xx) which generated plural.c file this file (plural.c) is present in depot together with plural.y , and if you get rid of re-generation - it will be compiled.
or you need to install bison version 2.xx.
15 февр. 2023 г., в 11:34, Martin Stein martin.stein@genode-labs.com
написал(а):
Hi Pranab,
I'm failing to reproduce your problem. When, on branch genodelabs/master, I do [1], the process finishes successfully. Do you use https://github.com/genodelabs/genode.git and https://github.com/genodelabs/genode-riscv.git with both at branch genodelabs/master or do you have another setup?
Cheers, Martin
[1] ./tool/depot/create local/bin/riscv/bash-minimal -j8 CCACHE=1 UPDATE_VERSIONS=1 FORCE=1 REBUILD=
On 15.02.23 08:25, Pranab Kumar Rout cs21m045 wrote:
Hi, Based on the previous discussion I was able to overcome that obstacle. Now while moving further, I am getting this error in bash_minimal: checking library dependencies... Library ldso_so_support COMPILE so_support.o MERGE ldso_so_support.lib.a Library libc CONVERT libc.symbols.s ASSEMBLE libc.symbols.o MERGE libc.abi.so http://libc.abi.so Library noux MERGE noux.lib.a Library posix CONVERT posix.symbols.s ASSEMBLE posix.symbols.o MERGE posix.abi.so http://posix.abi.so Library libm CONVERT libm.symbols.s ASSEMBLE libm.symbols.o MERGE libm.abi.so http://libm.abi.so Program noux-pkg/bash-minimal/bash-minimal CONFIG bash-minimal BUILD bash-minimal [bash-minimal] [bash-minimal]
[bash-minimal] * * [bash-minimal] * GNU bash, version 4.4.18(1)-release
(riscv64-unknown-elf) [bash-minimal] * * [bash-minimal]
[bash-minimal] [bash-minimal] making lib/intl/libintl.a in ./lib/intl [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:48.1-12:
warning: POSIX Yacc does not support %pure_parser [-Wyacc] [bash-minimal] 48 | %pure_parser [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:48.1-12:
warning: deprecated directive: ‘%pure_parser’, use ‘%define api.pure’ [-Wdeprecated] [bash-minimal] 48 | %pure_parser [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] | %define api.pure [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:49.1-7:
warning: POSIX Yacc does not support %expect [-Wyacc] [bash-minimal] 49 | %expect 7 [bash-minimal] | ^~~~~~~ [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:
warning: fix-its can be applied. Rerun with option '--update'.
[-Wother]
[bash-minimal] In file included from
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:37:
[bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23:
error: conflicting types for ‘libintl_gettextparse’ [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:42:25:
note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 42 | # define __gettextparse PLURAL_PARSE [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:204:5:
note: in expansion of macro ‘__gettextparse’ [bash-minimal] 204 | int __gettextparse (void); [bash-minimal] | ^~~~~~~~~~~~~~ [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23:
note: previous declaration of ‘libintl_gettextparse’ was here [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:116:12:
note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 116 | extern int PLURAL_PARSE PARAMS ((void
*arg));
[bash-minimal] | ^~~~~~~~~~~~ [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23:
error: conflicting types for ‘libintl_gettextparse’ [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:42:25:
note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 42 | # define __gettextparse PLURAL_PARSE [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:67:25:
note: in expansion of macro ‘__gettextparse’ [bash-minimal] 67 | #define yyparse __gettextparse [bash-minimal] | ^~~~~~~~~~~~~~ [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:1225:1:
note: in expansion of macro ‘yyparse’ [bash-minimal] 1225 | yyparse (void) [bash-minimal] | ^~~~~~~ [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23:
note: previous declaration of ‘libintl_gettextparse’ was here [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:116:12:
note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 116 | extern int PLURAL_PARSE PARAMS ((void
*arg));
[bash-minimal] | ^~~~~~~~~~~~ [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:
In function ‘libintl_gettextparse’: [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:68:25:
error: too few arguments to function ‘__gettextlex’ [bash-minimal] 68 | #define yylex __gettextlex [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:1403:16:
note: in expansion of macro ‘yylex’ [bash-minimal] 1403 | yychar = yylex (&yylval); [bash-minimal] | ^~~~~ [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:68:25:
note: declared here [bash-minimal] 68 | #define yylex __gettextlex [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:71:12:
note: in expansion of macro ‘yylex’ [bash-minimal] 71 | static int yylex PARAMS ((YYSTYPE *lval, const char **pexp)); [bash-minimal] | ^~~~~ [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:180:29:
error: ‘arg’ undeclared (first use in this function) [bash-minimal] 180 | ((struct parse_args *) arg)->res = $1; [bash-minimal] | ^~~ [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:180:29:
note: each undeclared identifier is reported only once for each function it appears in [bash-minimal] make[9]: *** [Makefile:175: plural.o] Error 1 [bash-minimal] make[8]: *** [Makefile:668: lib/intl/libintl.a] Error 1 make[7]: *** [/home/pranab/MTP/r5/genode/depot/genodelabs/api/noux/2021-12-16/mk/
gnu_build.mk:181
http://gnu_build.mk:181: built.tag] Error 2 make[6]: *** [var/libdeps:119: bash-minimal.prg] Error 2 make[5]: *** [Makefile:336: gen_deps_and_build_targets] Error 2 make[4]: *** [/home/pranab/MTP/r5/genode/tool/depot/mk/build_bin_archive:208:
/home/pranab/MTP/r5/genode/depot/genodelabs/bin/riscv/bash-minimal/2023-02-15.build/bin]
Error 1 make[3]: *** [/home/pranab/MTP/r5/genode/depot/var/build.mk:264 http://build.mk:264: genodelabs/bin/riscv/bash-minimal/2023-02-15]
Error 2
make[2]: *** [/home/pranab/MTP/r5/genode/tool/depot/build:136: execute_generated_build_mk_file] Error 2 make[1]: *** [/home/pranab/MTP/r5/genode/tool/depot/create:59: build] Error 2 make[1]: Leaving directory '/home/pranab/MTP/r5/genode/build/riscv'
I am trying to execute the run/sculpt for KERNEL=hw
BOARD=virt_qemu_riscv.
also this error persists while executing the run/sculpt_test also. Kindly tell whats the problem and How do I overcome this. I want to build the sculpt for RISC-V arch, but I dont have a board so I am doing it for virt_qemu_riscv. If you have any other resources to follow for this please let me know.
Regards, Pranab
Genode users mailing list users@lists.genode.org https://lists.genode.org/listinfo/users
Genode users mailing list users@lists.genode.org https://lists.genode.org/listinfo/users
I suspect that if you just touch plural.c file it will not be regenerated. this should be done after depot download like find . -name plural.c -exec touch {} ;
15 февр. 2023 г., в 16:44, Pranab Kumar Rout cs21m045 cs21m045@smail.iitm.ac.in написал(а):
Hi, I am getting this error while doing:
make run/sculpt KERNEL=hw BOARD=virt_qemu_riscv
I don't have a different setup, I am using the master branch only.
As Alexander pointed out, it looks like I need to downgrade my gnu bison (which is now 3.5.1) to some 2.xx otherwise if its already present in depot, how do I skip the re-generation? Do I have to configure any file? Will it affect my process of building sculpt image? Please advise.
regards, Pranab
On Wed, Feb 15, 2023 at 2:38 PM Alexander Tormasov via users <users@lists.genode.orgmailto:users@lists.genode.org> wrote: I already comment this problem couple weeks ago.
in short, you have too new bison version (probably 3.xx) which generated plural.c file this file (plural.c) is present in depot together with plural.y , and if you get rid of re-generation - it will be compiled.
or you need to install bison version 2.xx.
15 февр. 2023 г., в 11:34, Martin Stein <martin.stein@genode-labs.commailto:martin.stein@genode-labs.com> написал(а):
Hi Pranab,
I'm failing to reproduce your problem. When, on branch genodelabs/master, I do [1], the process finishes successfully. Do you use https://github.com/genodelabs/genode.git and https://github.com/genodelabs/genode-riscv.git with both at branch genodelabs/master or do you have another setup?
Cheers, Martin
[1] ./tool/depot/create local/bin/riscv/bash-minimal -j8 CCACHE=1 UPDATE_VERSIONS=1 FORCE=1 REBUILD=
On 15.02.23 08:25, Pranab Kumar Rout cs21m045 wrote:
Hi, Based on the previous discussion I was able to overcome that obstacle. Now while moving further, I am getting this error in bash_minimal: checking library dependencies... Library ldso_so_support COMPILE so_support.o MERGE ldso_so_support.lib.a Library libc CONVERT libc.symbols.s ASSEMBLE libc.symbols.o MERGE libc.abi.sohttp://libc.abi.so/ <http://libc.abi.sohttp://libc.abi.so/> Library noux MERGE noux.lib.a Library posix CONVERT posix.symbols.s ASSEMBLE posix.symbols.o MERGE posix.abi.sohttp://posix.abi.so/ <http://posix.abi.sohttp://posix.abi.so/> Library libm CONVERT libm.symbols.s ASSEMBLE libm.symbols.o MERGE libm.abi.sohttp://libm.abi.so/ <http://libm.abi.sohttp://libm.abi.so/> Program noux-pkg/bash-minimal/bash-minimal CONFIG bash-minimal BUILD bash-minimal [bash-minimal] [bash-minimal]
[bash-minimal] * * [bash-minimal] * GNU bash, version 4.4.18(1)-release
(riscv64-unknown-elf) [bash-minimal] * * [bash-minimal]
[bash-minimal] [bash-minimal] making lib/intl/libintl.a in ./lib/intl [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:48.1-12: warning: POSIX Yacc does not support %pure_parser [-Wyacc] [bash-minimal] 48 | %pure_parser [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:48.1-12: warning: deprecated directive: ‘%pure_parser’, use ‘%define api.pure’ [-Wdeprecated] [bash-minimal] 48 | %pure_parser [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] | %define api.pure [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:49.1-7: warning: POSIX Yacc does not support %expect [-Wyacc] [bash-minimal] 49 | %expect 7 [bash-minimal] | ^~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y: warning: fix-its can be applied. Rerun with option '--update'. [-Wother] [bash-minimal] In file included from /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:37: [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: error: conflicting types for ‘libintl_gettextparse’ [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:42:25: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 42 | # define __gettextparse PLURAL_PARSE [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:204:5: note: in expansion of macro ‘__gettextparse’ [bash-minimal] 204 | int __gettextparse (void); [bash-minimal] | ^~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: note: previous declaration of ‘libintl_gettextparse’ was here [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:116:12: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 116 | extern int PLURAL_PARSE PARAMS ((void *arg)); [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: error: conflicting types for ‘libintl_gettextparse’ [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:42:25: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 42 | # define __gettextparse PLURAL_PARSE [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:67:25: note: in expansion of macro ‘__gettextparse’ [bash-minimal] 67 | #define yyparse __gettextparse [bash-minimal] | ^~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:1225:1: note: in expansion of macro ‘yyparse’ [bash-minimal] 1225 | yyparse (void) [bash-minimal] | ^~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: note: previous declaration of ‘libintl_gettextparse’ was here [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:116:12: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 116 | extern int PLURAL_PARSE PARAMS ((void *arg)); [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c: In function ‘libintl_gettextparse’: [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:68:25: error: too few arguments to function ‘__gettextlex’ [bash-minimal] 68 | #define yylex __gettextlex [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:1403:16: note: in expansion of macro ‘yylex’ [bash-minimal] 1403 | yychar = yylex (&yylval); [bash-minimal] | ^~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:68:25: note: declared here [bash-minimal] 68 | #define yylex __gettextlex [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:71:12: note: in expansion of macro ‘yylex’ [bash-minimal] 71 | static int yylex PARAMS ((YYSTYPE *lval, const char **pexp)); [bash-minimal] | ^~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:180:29: error: ‘arg’ undeclared (first use in this function) [bash-minimal] 180 | ((struct parse_args *) arg)->res = $1; [bash-minimal] | ^~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:180:29: note: each undeclared identifier is reported only once for each function it appears in [bash-minimal] make[9]: *** [Makefile:175: plural.o] Error 1 [bash-minimal] make[8]: *** [Makefile:668: lib/intl/libintl.a] Error 1 make[7]: *** [/home/pranab/MTP/r5/genode/depot/genodelabs/api/noux/2021-12-16/mk/gnu_build.mk:181http://gnu_build.mk:181/ <http://gnu_build.mk:181http://gnu_build.mk:181/>: built.tag] Error 2 make[6]: *** [var/libdeps:119: bash-minimal.prg] Error 2 make[5]: *** [Makefile:336: gen_deps_and_build_targets] Error 2 make[4]: *** [/home/pranab/MTP/r5/genode/tool/depot/mk/build_bin_archive:208: /home/pranab/MTP/r5/genode/depot/genodelabs/bin/riscv/bash-minimal/2023-02-15.build/bin] Error 1 make[3]: *** [/home/pranab/MTP/r5/genode/depot/var/build.mk:264http://build.mk:264/ <http://build.mk:264http://build.mk:264/>: genodelabs/bin/riscv/bash-minimal/2023-02-15] Error 2 make[2]: *** [/home/pranab/MTP/r5/genode/tool/depot/build:136: execute_generated_build_mk_file] Error 2 make[1]: *** [/home/pranab/MTP/r5/genode/tool/depot/create:59: build] Error 2 make[1]: Leaving directory '/home/pranab/MTP/r5/genode/build/riscv'
I am trying to execute the run/sculpt for KERNEL=hw BOARD=virt_qemu_riscv. also this error persists while executing the run/sculpt_test also. Kindly tell whats the problem and How do I overcome this. I want to build the sculpt for RISC-V arch, but I dont have a board so I am doing it for virt_qemu_riscv. If you have any other resources to follow for this please let me know.
Regards, Pranab
Genode users mailing list users@lists.genode.orgmailto:users@lists.genode.org https://lists.genode.org/listinfo/users
_______________________________________________ Genode users mailing list users@lists.genode.orgmailto:users@lists.genode.org https://lists.genode.org/listinfo/users _______________________________________________ Genode users mailing list users@lists.genode.org https://lists.genode.org/listinfo/users
Thanks a million for this tip, Alexander! I am using Debian unstable, and this has prevented me from building for months.
Now I am getting stopped by another error altogether:
... [Linux] /home/mainuser/Devel/genode_main/genode/depot/genodelabs/api/pc_linux/2023-01-23/src/linux/scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory [Linux] 21 | #include <openssl/bio.h> [Linux] | ^~~~~~~~~~~~~~~ [Linux] compilation terminated. ...
Does anyone have any thoughts on this?
Thanks!
John J. Karcher devuser@alternateapproach.com
On 2/15/23 10:54, Alexander Tormasov via users wrote:
I suspect that if you just touch plural.c file it will not be regenerated. this should be done after depot download like find . -name plural.c -exec touch {} ;
15 февр. 2023 г., в 16:44, Pranab Kumar Rout cs21m045 cs21m045@smail.iitm.ac.in написал(а):
Hi, I am getting this error while doing:
make run/sculpt KERNEL=hw BOARD=virt_qemu_riscv
I don't have a different setup, I am using the master branch only.
As Alexander pointed out, it looks like I need to downgrade my gnu bison (which is now 3.5.1) to some 2.xx otherwise if its already present in depot, how do I skip the re-generation? Do I have to configure any file? Will it affect my process of building sculpt image? Please advise.
regards, Pranab
Thanks a million for this tip, Alexander! I am using Debian unstable, and this has prevented me from building for months.
I spend couple days to fight with bison3 and fail finally… so, this trick is a workaround, not a solution probably original of bash distro in genode should be updated to newer version
Now I am getting stopped by another error altogether:
... [Linux] /home/mainuser/Devel/genode_main/genode/depot/genodelabs/api/pc_linux/2023-01-23/src/linux/scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory [Linux] 21 | #include <openssl/bio.h> [Linux] | ^~~~~~~~~~~~~~~ [Linux] compilation terminated. …
never saw this - while seems that this is related to too new version of libssl-dev package. try to downgrade them as well in stack overflow I saw same problem and recommendation to downgrade to 1.1.1b-1ubuntu2 from …2.1
Hi Genodians, After downgrading the bison to 2.7, I was able to overcome that error. Now while executing this,
I am getting a new fatal error. Please look into it and suggest something. I am unable identify the problem:
checking library dependencies... Library ldso_so_support COMPILE so_support.o MERGE ldso_so_support.lib.a Library ld CONVERT ld.symbols.s ASSEMBLE ld.symbols.o MERGE ld.abi.so Library base MERGE base.lib.a Library block_session MERGE block_session.lib.a Library config MERGE config.lib.a Library jitterentropy MERGE jitterentropy.lib.a Library os MERGE os.lib.a Program app/gpt_write/gpt_write COMPILE main.o COMPILE util.o In file included from /home/pranab/MTP/r5/genode/depot/genodelabs/api/jitterentropy/2022-11-16/include/jitterentropy/jitterentropy.h:46, from /home/pranab/MTP/r5/genode/depot/genodelabs/src/gpt_write/2022-11-28/src/app/gpt_write/util.cc:21: /home/pranab/MTP/r5/genode/depot/genodelabs/api/jitterentropy/2022-11-16/src/lib/jitterentropy/jitterentropy-base-genode.h:42:10: *fatal error*: jitterentropy-base-genode-nstime.h: No such file or directory 42 | #include *<jitterentropy-base-genode-nstime.h>* | * ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~* *compilation terminated.* make[7]: *** [/home/pranab/MTP/r5/genode/repos/base/mk/generic.mk:62: util.o] Error 1 make[6]: *** [var/libdeps:151: gpt_write.prg] Error 2 make[5]: *** [Makefile:336: gen_deps_and_build_targets] Error 2 make[4]: *** [/home/pranab/MTP/r5/genode/tool/depot/mk/build_bin_archive:208: /home/pranab/MTP/r5/genode/depot/genodelabs/bin/riscv/gpt_write/2022-11-28.build/bin] Error 1 make[3]: *** [/home/pranab/MTP/r5/genode/depot/var/build.mk:264: genodelabs/bin/riscv/gpt_write/2022-11-28] Error 2 make[2]: *** [/home/pranab/MTP/r5/genode/tool/depot/build:136: execute_generated_build_mk_file] Error 2 make[1]: *** [/home/pranab/MTP/r5/genode/tool/depot/create:59: build] Error 2
Thanks & Regards, Pranab
On Sat, Feb 18, 2023 at 3:57 PM Alexander Tormasov via users < users@lists.genode.org> wrote:
Thanks a million for this tip, Alexander! I am using Debian unstable,
and this has prevented me from building for months.
I spend couple days to fight with bison3 and fail finally… so, this trick is a workaround, not a solution probably original of bash distro in genode should be updated to newer version
Now I am getting stopped by another error altogether:
... [Linux]
/home/mainuser/Devel/genode_main/genode/depot/genodelabs/api/pc_linux/2023-01-23/src/linux/scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory
[Linux] 21 | #include <openssl/bio.h> [Linux] | ^~~~~~~~~~~~~~~ [Linux] compilation terminated. …
never saw this - while seems that this is related to too new version of libssl-dev package. try to downgrade them as well in stack overflow I saw same problem and recommendation to downgrade to 1.1.1b-1ubuntu2 from …2.1
Genode users mailing list users@lists.genode.org https://lists.genode.org/listinfo/users
Hello, Can anyone explain why this fatal error (jitterentropy-base-genode-nstime.h: *No such file or directory*) is being produced while running:
*make run/sculpt_test KERNEL=hw BOARD=virt_qemu_riscv*
Please provide some solution to deal with this problem. [pls ref to my prev email]
Thanks & regards, Pranab
On Mon, Feb 20, 2023 at 4:21 PM Pranab Kumar Rout cs21m045 < cs21m045@smail.iitm.ac.in> wrote:
Hi Genodians, After downgrading the bison to 2.7, I was able to overcome that error. Now while executing this,
I am getting a new fatal error. Please look into it and suggest something. I am unable identify the problem:
checking library dependencies... Library ldso_so_support COMPILE so_support.o MERGE ldso_so_support.lib.a Library ld CONVERT ld.symbols.s ASSEMBLE ld.symbols.o MERGE ld.abi.so Library base MERGE base.lib.a Library block_session MERGE block_session.lib.a Library config MERGE config.lib.a Library jitterentropy MERGE jitterentropy.lib.a Library os MERGE os.lib.a Program app/gpt_write/gpt_write COMPILE main.o COMPILE util.o In file included from /home/pranab/MTP/r5/genode/depot/genodelabs/api/jitterentropy/2022-11-16/include/jitterentropy/jitterentropy.h:46, from /home/pranab/MTP/r5/genode/depot/genodelabs/src/gpt_write/2022-11-28/src/app/gpt_write/util.cc:21: /home/pranab/MTP/r5/genode/depot/genodelabs/api/jitterentropy/2022-11-16/src/lib/jitterentropy/jitterentropy-base-genode.h:42:10: *fatal error*: jitterentropy-base-genode-nstime.h: No such file or directory 42 | #include *<jitterentropy-base-genode-nstime.h>* | * ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~* *compilation terminated.* make[7]: *** [/home/pranab/MTP/r5/genode/repos/base/mk/generic.mk:62: util.o] Error 1 make[6]: *** [var/libdeps:151: gpt_write.prg] Error 2 make[5]: *** [Makefile:336: gen_deps_and_build_targets] Error 2 make[4]: *** [/home/pranab/MTP/r5/genode/tool/depot/mk/build_bin_archive:208: /home/pranab/MTP/r5/genode/depot/genodelabs/bin/riscv/gpt_write/2022-11-28.build/bin] Error 1 make[3]: *** [/home/pranab/MTP/r5/genode/depot/var/build.mk:264: genodelabs/bin/riscv/gpt_write/2022-11-28] Error 2 make[2]: *** [/home/pranab/MTP/r5/genode/tool/depot/build:136: execute_generated_build_mk_file] Error 2 make[1]: *** [/home/pranab/MTP/r5/genode/tool/depot/create:59: build] Error 2
Thanks & Regards, Pranab
On Sat, Feb 18, 2023 at 3:57 PM Alexander Tormasov via users < users@lists.genode.org> wrote:
Thanks a million for this tip, Alexander! I am using Debian unstable,
and this has prevented me from building for months.
I spend couple days to fight with bison3 and fail finally… so, this trick is a workaround, not a solution probably original of bash distro in genode should be updated to newer version
Now I am getting stopped by another error altogether:
... [Linux]
/home/mainuser/Devel/genode_main/genode/depot/genodelabs/api/pc_linux/2023-01-23/src/linux/scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory
[Linux] 21 | #include <openssl/bio.h> [Linux] | ^~~~~~~~~~~~~~~ [Linux] compilation terminated. …
never saw this - while seems that this is related to too new version of libssl-dev package. try to downgrade them as well in stack overflow I saw same problem and recommendation to downgrade to 1.1.1b-1ubuntu2 from …2.1
Genode users mailing list users@lists.genode.org https://lists.genode.org/listinfo/users
Hi Pranab,
If you try enforcing your questions that fast, it might demotivate others to answer you.
You're getting a compile error because jitterentropy has not been enabled yet on riscv:
$ find repos/ -name *jitterentropy-base-genode-nstime.h* repos/libports/src/lib/jitterentropy/spec/arm_v8/jitterentropy-base-genode-nstime.h repos/libports/src/lib/jitterentropy/spec/x86_64/jitterentropy-base-genode-nstime.h repos/libports/src/lib/jitterentropy/spec/arm_v6/jitterentropy-base-genode-nstime.h repos/libports/src/lib/jitterentropy/spec/x86_32/jitterentropy-base-genode-nstime.h repos/libports/src/lib/jitterentropy/spec/arm_v7/jitterentropy-base-genode-nstime.h
However, you could try and enabling it yourself. Obviously, you'd need to create this header first:
repos/libports/src/lib/jitterentropy/spec/arm_v7/jitterentropy-base-genode-nstime.h
Then, you'd need to create the corresponding lib makefile...
repos/libports/lib/mk/spec/riscv/jitterentropy.mk
... and adapt the jitterentropy import file in order to consider riscv targets:
repos/libports/lib/import/import-jitterentropy.mk
Then, let see what fails next and let it guide you. If you get stuck, don't hesitate to ask the list.
Cheers, Martin
On 21.02.23 10:44, Pranab Kumar Rout cs21m045 wrote:
Hello, Can anyone explain why this fatal error (jitterentropy-base-genode-nstime.h: *No such file or directory*) is being produced while running:
/make run/sculpt_test KERNEL=hw BOARD=virt_qemu_riscv/
Please provide some solution to deal with this problem. [pls ref to my prev email]
Thanks & regards, Pranab
Hi Martin,
Thank you so much for your help and I apologize for being impatient. Will try to fix the issue as you have suggested.
Thanks
On Tue, 21 Feb, 2023, 4:05 pm Martin Stein, martin.stein@genode-labs.com wrote:
Hi Pranab,
If you try enforcing your questions that fast, it might demotivate others to answer you.
You're getting a compile error because jitterentropy has not been enabled yet on riscv:
$ find repos/ -name *jitterentropy-base-genode-nstime.h*
repos/libports/src/lib/jitterentropy/spec/arm_v8/jitterentropy-base-genode-nstime.h
repos/libports/src/lib/jitterentropy/spec/x86_64/jitterentropy-base-genode-nstime.h
repos/libports/src/lib/jitterentropy/spec/arm_v6/jitterentropy-base-genode-nstime.h
repos/libports/src/lib/jitterentropy/spec/x86_32/jitterentropy-base-genode-nstime.h
repos/libports/src/lib/jitterentropy/spec/arm_v7/jitterentropy-base-genode-nstime.h
However, you could try and enabling it yourself. Obviously, you'd need to create this header first:
repos/libports/src/lib/jitterentropy/spec/arm_v7/jitterentropy-base-genode-nstime.h
Then, you'd need to create the corresponding lib makefile...
repos/libports/lib/mk/spec/riscv/jitterentropy.mk
... and adapt the jitterentropy import file in order to consider riscv targets:
repos/libports/lib/import/import-jitterentropy.mk
Then, let see what fails next and let it guide you. If you get stuck, don't hesitate to ask the list.
Cheers, Martin
On 21.02.23 10:44, Pranab Kumar Rout cs21m045 wrote:
Hello, Can anyone explain why this fatal error (jitterentropy-base-genode-nstime.h: *No such file or directory*) is being produced while running:
/make run/sculpt_test KERNEL=hw BOARD=virt_qemu_riscv/
Please provide some solution to deal with this problem. [pls ref to my prev email]
Thanks & regards, Pranab
Genode users mailing list users@lists.genode.org https://lists.genode.org/listinfo/users
Hi Martin, Following your suggestion, I added these 2 files. 1. *repos/libports/src/lib/jitterentropy/spec/riscv/jitterentropy-base-genode-nstime.h* Its contents are:
/*
- \brief Time backend for jitterentropy library
- \author Josef Soentgen
- \date 2014-08-18
*/ /*
- Copyright (C) 2014-2017 Genode Labs GmbH
- This file is part of the Genode OS framework, which is distributed
- under the terms of the GNU Affero General Public License version 3.
*/ #ifndef _JITTERENTROPY_RISCV_BASE_GENODE_NSTIME_H_ #define _JITTERENTROPY_RISCV_BASE_GENODE_NSTIME_H_ static inline void jent_get_nstime(__u64 *out) { uint32_t t; asm volatile("mrc p15, 0, %0, c9, c13, 0" : "=r"(t)); *out = t; }
#endif
2. *repos/libports/lib/mk/spec/riscv/jitterentropy.mk http://jitterentropy.mk* Its contents:
INC_DIR += $(REP_DIR)/src/lib/jitterentropy/spec/riscv
include $(REP_DIR)/lib/mk/jitterentropy.inc
CC_CXX_WARN_STRICT =
And I updated the jitterentropy jitterentropy import file at
*repos/libports/lib/import/import-jitterentropy.mk http://import-jitterentropy.mk* Its contents are:
ifeq ($(filter-out $(SPECS),x86_32),) TARGET_CPUARCH=x86_32 else ifeq ($(filter-out $(SPECS),x86_64),) TARGET_CPUARCH=x86_64 else ifeq ($(filter-out $(SPECS),arm_v6),) TARGET_CPUARCH=arm_v6 else ifeq ($(filter-out $(SPECS),arm_v7),) TARGET_CPUARCH=arm_v7 else ifeq ($(filter-out $(SPECS),arm_v8),) TARGET_CPUARCH=arm_v8 else ifeq ($(filter-out $(SPECS),riscv),) TARGET_CPUARCH=riscv endif
JITTERENTROPY_DIR := $(call select_from_ports,jitterentropy)
ifeq ($(CONTRIB_DIR),) REP_INC_DIR += include/jitterentropy else INC_DIR += $(JITTERENTROPY_DIR)/include/jitterentropy endif
INC_DIR += $(call select_from_repositories,src/lib/jitterentropy) INC_DIR += $(call select_from_repositories,src/lib/jitterentropy/spec/$(TARGET_CPUARCH))
CC_OPT += -DJITTERENTROPY_GENODE
After running
*make run/sculpt KERNEL=hw BOARD=virt_qemu_riscv*
I am getting such error:
checking library dependencies... Library ldso_so_support COMPILE so_support.o MERGE ldso_so_support.lib.a Library ld CONVERT ld.symbols.s ASSEMBLE ld.symbols.o MERGE ld.abi.so Library base MERGE base.lib.a Library block_session MERGE block_session.lib.a Library config MERGE config.lib.a Library jitterentropy MERGE jitterentropy.lib.a Library os MERGE os.lib.a Program app/gpt_write/gpt_write COMPILE main.o COMPILE util.o LINK gpt_write /usr/local/genode/tool/21.05/bin/../lib/gcc/riscv64-unknown-elf/10.3.0/../../../../riscv64-unknown-elf/bin/ld: util.o: in function `Util::init_random(Genode::Allocator&)': /home/pranab/MTP/r5/genode/depot/genodelabs/src/gpt_write/2023-02-22-c/src/app/gpt_write/util.cc:39: *undefined reference* to `jitterentropy_init(Genode::Allocator&)' /usr/local/genode/tool/21.05/bin/../lib/gcc/riscv64-unknown-elf/10.3.0/../../../../riscv64-unknown-elf/bin/ld: /home/pranab/MTP/r5/genode/depot/genodelabs/src/gpt_write/2023-02-22-c/src/app/gpt_write/util.cc:41: *undefined reference* to `jent_entropy_init' /usr/local/genode/tool/21.05/bin/../lib/gcc/riscv64-unknown-elf/10.3.0/../../../../riscv64-unknown-elf/bin/ld: /home/pranab/MTP/r5/genode/depot/genodelabs/src/gpt_write/2023-02-22-c/src/app/gpt_write/util.cc:48: *undefined reference* to `jent_entropy_collector_alloc' /usr/local/genode/tool/21.05/bin/../lib/gcc/riscv64-unknown-elf/10.3.0/../../../../riscv64-unknown-elf/bin/ld: util.o: in function `void Genode::Log::output<char const (&) [52]>(Genode::Log::Type, char const (&) [52])': /home/pranab/MTP/r5/genode/depot/genodelabs/api/base/2022-11-28/include/base/log.h:70: *undefined reference* to `jent_read_entropy' collect2: error: ld returned 1 exit status make[7]: *** [/home/pranab/MTP/r5/genode/repos/base/mk/prg.mk:218: gpt_write] Error 1 make[6]: *** [var/libdeps:151: gpt_write.prg] Error 2 make[5]: *** [Makefile:336: gen_deps_and_build_targets] Error 2 make[4]: *** [/home/pranab/MTP/r5/genode/tool/depot/mk/build_bin_archive:208: /home/pranab/MTP/r5/genode/depot/genodelabs/bin/riscv/gpt_write/2023-02-22-c.build/bin] Error 1 make[3]: *** [/home/pranab/MTP/r5/genode/depot/var/build.mk:264: genodelabs/bin/riscv/gpt_write/2023-02-22-c] Error 2 make[2]: *** [/home/pranab/MTP/r5/genode/tool/depot/build:136: execute_generated_build_mk_file] Error 2 make[1]: *** [/home/pranab/MTP/r5/genode/tool/depot/create:59: build] Error 2 make[1]: Leaving directory '/home/pranab/MTP/r5/genode/build/riscv'
I am not able to fix this. Please help me understand the issues.
Thanks & Regards, Pranab
On Tue, Feb 21, 2023 at 4:05 PM Martin Stein martin.stein@genode-labs.com wrote:
Hi Pranab,
If you try enforcing your questions that fast, it might demotivate others to answer you.
You're getting a compile error because jitterentropy has not been enabled yet on riscv:
$ find repos/ -name *jitterentropy-base-genode-nstime.h*
repos/libports/src/lib/jitterentropy/spec/arm_v8/jitterentropy-base-genode-nstime.h
repos/libports/src/lib/jitterentropy/spec/x86_64/jitterentropy-base-genode-nstime.h
repos/libports/src/lib/jitterentropy/spec/arm_v6/jitterentropy-base-genode-nstime.h
repos/libports/src/lib/jitterentropy/spec/x86_32/jitterentropy-base-genode-nstime.h
repos/libports/src/lib/jitterentropy/spec/arm_v7/jitterentropy-base-genode-nstime.h
However, you could try and enabling it yourself. Obviously, you'd need to create this header first:
repos/libports/src/lib/jitterentropy/spec/arm_v7/jitterentropy-base-genode-nstime.h
Then, you'd need to create the corresponding lib makefile...
repos/libports/lib/mk/spec/riscv/jitterentropy.mk
... and adapt the jitterentropy import file in order to consider riscv targets:
repos/libports/lib/import/import-jitterentropy.mk
Then, let see what fails next and let it guide you. If you get stuck, don't hesitate to ask the list.
Cheers, Martin
On 21.02.23 10:44, Pranab Kumar Rout cs21m045 wrote:
Hello, Can anyone explain why this fatal error (jitterentropy-base-genode-nstime.h: *No such file or directory*) is being produced while running:
/make run/sculpt_test KERNEL=hw BOARD=virt_qemu_riscv/
Please provide some solution to deal with this problem. [pls ref to my prev email]
Thanks & regards, Pranab
Genode users mailing list users@lists.genode.org https://lists.genode.org/listinfo/users
Hello,
On 2/22/23 12:27, Pranab Kumar Rout cs21m045 wrote:
[/home/pranab/MTP/r5/genode/tool/depot/mk/build_bin_archive:208: /home/pranab/MTP/r5/genode/depot/genodelabs/bin/riscv/gpt_write/2023-02-22-c.build/bin] Error 1
the error happens during the build of the depot archive bin/gpt_write, which apparently uses the 'jitterentropy' api, according to [1].
[1] https://github.com/genodelabs/genode/blob/master/repos/gems/recipes/src/gpt_...
This makes me wondering if you may possibly have missed to update the recipe for the jitterentopy API [2] that is used to assemble the content in depot/<user>/api/jitterentropy/<version>/?
[2] https://github.com/genodelabs/genode/blob/master/repos/libports/recipes/api/...
To cross-check, have you tried building 'app/gpt_write' directly from within your build directory? If that works, the error is merely the packaging issue as suspected above.
Cheers Norman
Hi Pranab,
These errors indicate that your version of jitterentropy declares jitterentropy_init and jent_entropy_collector_alloc but doesn't implement them. I'd suggest you to lookup the where the other versions (arm, x86) implement the functions and whether the implementations are generic or platform specific. If the latter is the case, you either find an existing riscv implementation in the contrib code (contrib/jitterentropy*) or you have to implement the functions for riscv yourself. If the former is the case, you're probably just missed to add the corresponding compilation unit to your makefile (SRC_C variable).
PS: Please don't re-use the file headers (brief, author, copyright) of Genode Labs.
Cheers, Martin
On 22.02.23 12:27, Pranab Kumar Rout cs21m045 wrote:
Hi Martin, Following your suggestion, I added these 2 files.
*repos/libports/src/lib/jitterentropy/spec/riscv/jitterentropy-base-genode-nstime.h**
Its contents are:
/* * \brief Time backend for jitterentropy library * \author Josef Soentgen * \date 2014-08-18 */ /* * Copyright (C) 2014-2017 Genode Labs GmbH * * This file is part of the Genode OS framework, which is distributed * under the terms of the GNU Affero General Public License version 3. */ #ifndef _JITTERENTROPY_RISCV_BASE_GENODE_NSTIME_H_ #define _JITTERENTROPY_RISCV_BASE_GENODE_NSTIME_H_ static inline void jent_get_nstime(__u64 *out) { uint32_t t; asm volatile("mrc p15, 0, %0, c9, c13, 0" : "=r"(t)); *out = t; } #endif
2. *repos/libports/lib/mk/spec/riscv/jitterentropy.mk http://jitterentropy.mk* Its contents:
INC_DIR += $(REP_DIR)/src/lib/jitterentropy/spec/riscv include $(REP_DIR)/lib/mk/jitterentropy.inc CC_CXX_WARN_STRICT =
And I updated the jitterentropy jitterentropy import file at *repos/libports/lib/import/import-jitterentropy.mk http://import-jitterentropy.mk
Its contents are:
ifeq ($(filter-out $(SPECS),x86_32),) TARGET_CPUARCH=x86_32 else ifeq ($(filter-out $(SPECS),x86_64),) TARGET_CPUARCH=x86_64 else ifeq ($(filter-out $(SPECS),arm_v6),) TARGET_CPUARCH=arm_v6 else ifeq ($(filter-out $(SPECS),arm_v7),) TARGET_CPUARCH=arm_v7 else ifeq ($(filter-out $(SPECS),arm_v8),) TARGET_CPUARCH=arm_v8 else ifeq ($(filter-out $(SPECS),riscv),) TARGET_CPUARCH=riscv endif JITTERENTROPY_DIR := $(call select_from_ports,jitterentropy) ifeq ($(CONTRIB_DIR),) REP_INC_DIR += include/jitterentropy else INC_DIR += $(JITTERENTROPY_DIR)/include/jitterentropy endif INC_DIR += $(call select_from_repositories,src/lib/jitterentropy)these INC_DIR += $(call select_from_repositories,src/lib/jitterentropy/spec/$(TARGET_CPUARCH)) CC_OPT += -DJITTERENTROPY_GENODE
After running
/make run/sculpt KERNEL=hw BOARD=virt_qemu_riscv/
I am getting such error:
checking library dependencies... Library ldso_so_support COMPILE so_support.o MERGE ldso_so_support.lib.a Library ld CONVERT ld.symbols.s ASSEMBLE ld.symbols.o MERGE ld.abi.so <http://ld.abi.so> Library base MERGE base.lib.a Library block_session MERGE block_session.lib.a Library config MERGE config.lib.a Library jitterentropy MERGE jitterentropy.lib.a Library os MERGE os.lib.a Program app/gpt_write/gpt_write COMPILE main.o COMPILE util.o LINK gpt_write /usr/local/genode/tool/21.05/bin/../lib/gcc/riscv64-unknown-elf/10.3.0/../../../../riscv64-unknown-elf/bin/ld: util.o: in function `Util::init_random(Genode::Allocator&)': /home/pranab/MTP/r5/genode/depot/genodelabs/src/gpt_write/2023-02-22-c/src/app/gpt_write/util.cc:39: *undefined reference* to `jitterentropy_init(Genode::Allocator&)' /usr/local/genode/tool/21.05/bin/../lib/gcc/riscv64-unknown-elf/10.3.0/../../../../riscv64-unknown-elf/bin/ld: /home/pranab/MTP/r5/genode/depot/genodelabs/src/gpt_write/2023-02-22-c/src/app/gpt_write/util.cc:41: *undefined reference* to `jent_entropy_init' /usr/local/genode/tool/21.05/bin/../lib/gcc/riscv64-unknown-elf/10.3.0/../../../../riscv64-unknown-elf/bin/ld: /home/pranab/MTP/r5/genode/depot/genodelabs/src/gpt_write/2023-02-22-c/src/app/gpt_write/util.cc:48: *undefined reference* to `jent_entropy_collector_alloc' /usr/local/genode/tool/21.05/bin/../lib/gcc/riscv64-unknown-elf/10.3.0/../../../../riscv64-unknown-elf/bin/ld: util.o: in function `void Genode::Log::output<char const (&) [52]>(Genode::Log::Type, char const (&) [52])': /home/pranab/MTP/r5/genode/depot/genodelabs/api/base/2022-11-28/include/base/log.h:70: *undefined reference* to `jent_read_entropy' collect2: error: ld returned 1 exit status make[7]: *** [/home/pranab/MTP/r5/genode/repos/base/mk/prg.mk:218 <http://prg.mk:218>: gpt_write] Error 1 make[6]: *** [var/libdeps:151: gpt_write.prg] Error 2 make[5]: *** [Makefile:336: gen_deps_and_build_targets] Error 2 make[4]: *** [/home/pranab/MTP/r5/genode/tool/depot/mk/build_bin_archive:208: /home/pranab/MTP/r5/genode/depot/genodelabs/bin/riscv/gpt_write/2023-02-22-c.build/bin] Error 1 make[3]: *** [/home/pranab/MTP/r5/genode/depot/var/build.mk:264 <http://build.mk:264>: genodelabs/bin/riscv/gpt_write/2023-02-22-c] Error 2 make[2]: *** [/home/pranab/MTP/r5/genode/tool/depot/build:136: execute_generated_build_mk_file] Error 2 make[1]: *** [/home/pranab/MTP/r5/genode/tool/depot/create:59: build] Error 2 make[1]: Leaving directory '/home/pranab/MTP/r5/genode/build/riscv'
I am not able to fix this. Please help me understand the issues.
Thanks & Regards, Pranab
... Nevermind, I just found that the implementations should be added through lib/mk/jitterentropy.inc. So, I supsect it's the packaging issue that Norman described.
Cheers, Martin
On 23.02.23 10:13, Martin Stein wrote:
Hi Pranab,
These errors indicate that your version of jitterentropy declares jitterentropy_init and jent_entropy_collector_alloc but doesn't implement them. I'd suggest you to lookup the where the other versions (arm, x86) implement the functions and whether the implementations are generic or platform specific. If the latter is the case, you either find an existing riscv implementation in the contrib code (contrib/jitterentropy*) or you have to implement the functions for riscv yourself. If the former is the case, you're probably just missed to add the corresponding compilation unit to your makefile (SRC_C variable).
PS: Please don't re-use the file headers (brief, author, copyright) of Genode Labs.
Cheers, Martin
On 22.02.23 12:27, Pranab Kumar Rout cs21m045 wrote:
Hi Martin, Following your suggestion, I added these 2 files.
*repos/libports/src/lib/jitterentropy/spec/riscv/jitterentropy-base-genode-nstime.h**
Its contents are:
/* * \brief Time backend for jitterentropy library * \author Josef Soentgen * \date 2014-08-18 */ /* * Copyright (C) 2014-2017 Genode Labs GmbH * * This file is part of the Genode OS framework, which is distributed * under the terms of the GNU Affero General Public License version 3. */ #ifndef _JITTERENTROPY_RISCV_BASE_GENODE_NSTIME_H_ #define _JITTERENTROPY_RISCV_BASE_GENODE_NSTIME_H_ static inline void jent_get_nstime(__u64 *out) { uint32_t t; asm volatile("mrc p15, 0, %0, c9, c13, 0" : "=r"(t)); *out = t; } #endif
2. *repos/libports/lib/mk/spec/riscv/jitterentropy.mk http://jitterentropy.mk* Its contents:
INC_DIR += $(REP_DIR)/src/lib/jitterentropy/spec/riscv include $(REP_DIR)/lib/mk/jitterentropy.inc CC_CXX_WARN_STRICT =
And I updated the jitterentropy jitterentropy import file at *repos/libports/lib/import/import-jitterentropy.mk http://import-jitterentropy.mk
Its contents are:
ifeq ($(filter-out $(SPECS),x86_32),) TARGET_CPUARCH=x86_32 else ifeq ($(filter-out $(SPECS),x86_64),) TARGET_CPUARCH=x86_64 else ifeq ($(filter-out $(SPECS),arm_v6),) TARGET_CPUARCH=arm_v6 else ifeq ($(filter-out $(SPECS),arm_v7),) TARGET_CPUARCH=arm_v7 else ifeq ($(filter-out $(SPECS),arm_v8),) TARGET_CPUARCH=arm_v8 else ifeq ($(filter-out $(SPECS),riscv),) TARGET_CPUARCH=riscv endif JITTERENTROPY_DIR := $(call select_from_ports,jitterentropy) ifeq ($(CONTRIB_DIR),) REP_INC_DIR += include/jitterentropy else INC_DIR += $(JITTERENTROPY_DIR)/include/jitterentropy endif INC_DIR += $(call select_from_repositories,src/lib/jitterentropy)these INC_DIR += $(call select_from_repositories,src/lib/jitterentropy/spec/$(TARGET_CPUARCH)) CC_OPT += -DJITTERENTROPY_GENODE
After running
/make run/sculpt KERNEL=hw BOARD=virt_qemu_riscv/
I am getting such error:
checking library dependencies... Library ldso_so_support COMPILE so_support.o MERGE ldso_so_support.lib.a Library ld CONVERT ld.symbols.s ASSEMBLE ld.symbols.o MERGE ld.abi.so <http://ld.abi.so> Library base MERGE base.lib.a Library block_session MERGE block_session.lib.a Library config MERGE config.lib.a Library jitterentropy MERGE jitterentropy.lib.a Library os MERGE os.lib.a Program app/gpt_write/gpt_write COMPILE main.o COMPILE util.o LINK gpt_write /usr/local/genode/tool/21.05/bin/../lib/gcc/riscv64-unknown-elf/10.3.0/../../../../riscv64-unknown-elf/bin/ld: util.o: in function `Util::init_random(Genode::Allocator&)': /home/pranab/MTP/r5/genode/depot/genodelabs/src/gpt_write/2023-02-22-c/src/app/gpt_write/util.cc:39: *undefined reference* to `jitterentropy_init(Genode::Allocator&)' /usr/local/genode/tool/21.05/bin/../lib/gcc/riscv64-unknown-elf/10.3.0/../../../../riscv64-unknown-elf/bin/ld: /home/pranab/MTP/r5/genode/depot/genodelabs/src/gpt_write/2023-02-22-c/src/app/gpt_write/util.cc:41: *undefined reference* to `jent_entropy_init' /usr/local/genode/tool/21.05/bin/../lib/gcc/riscv64-unknown-elf/10.3.0/../../../../riscv64-unknown-elf/bin/ld: /home/pranab/MTP/r5/genode/depot/genodelabs/src/gpt_write/2023-02-22-c/src/app/gpt_write/util.cc:48: *undefined reference* to `jent_entropy_collector_alloc' /usr/local/genode/tool/21.05/bin/../lib/gcc/riscv64-unknown-elf/10.3.0/../../../../riscv64-unknown-elf/bin/ld: util.o: in function `void Genode::Log::output<char const (&) [52]>(Genode::Log::Type, char const (&) [52])': /home/pranab/MTP/r5/genode/depot/genodelabs/api/base/2022-11-28/include/base/log.h:70: *undefined reference* to `jent_read_entropy' collect2: error: ld returned 1 exit status make[7]: *** [/home/pranab/MTP/r5/genode/repos/base/mk/prg.mk:218 <http://prg.mk:218>: gpt_write] Error 1 make[6]: *** [var/libdeps:151: gpt_write.prg] Error 2 make[5]: *** [Makefile:336: gen_deps_and_build_targets] Error 2 make[4]: *** [/home/pranab/MTP/r5/genode/tool/depot/mk/build_bin_archive:208: /home/pranab/MTP/r5/genode/depot/genodelabs/bin/riscv/gpt_write/2023-02-22-c.build/bin] Error 1 make[3]: *** [/home/pranab/MTP/r5/genode/depot/var/build.mk:264 <http://build.mk:264>: genodelabs/bin/riscv/gpt_write/2023-02-22-c] Error 2 make[2]: *** [/home/pranab/MTP/r5/genode/tool/depot/build:136: execute_generated_build_mk_file] Error 2 make[1]: *** [/home/pranab/MTP/r5/genode/tool/depot/create:59: build] Error 2 make[1]: Leaving directory '/home/pranab/MTP/r5/genode/build/riscv'
I am not able to fix this. Please help me understand the issues.
Thanks & Regards, Pranab
On 2/18/23 05:27, Alexander Tormasov via users wrote:
Thanks a million for this tip, Alexander! I am using Debian unstable, and this has prevented me from building for months.
I spend couple days to fight with bison3 and fail finally… so, this trick is a workaround, not a solution probably original of bash distro in genode should be updated to newer version
I'll take the workaround for now! :^)
Now I am getting stopped by another error altogether:
... [Linux] /home/mainuser/Devel/genode_main/genode/depot/genodelabs/api/pc_linux/2023-01-23/src/linux/scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory [Linux] 21 | #include <openssl/bio.h> [Linux] | ^~~~~~~~~~~~~~~ [Linux] compilation terminated. …
never saw this - while seems that this is related to too new version of libssl-dev package. try to downgrade them as well in stack overflow I saw same problem and recommendation to downgrade to 1.1.1b-1ubuntu2 from …2.1
This one turned out to be me just being stupid - I somehow forgot to install libssl at all. Now it builds again. Can't wait to test it!
Thanks two million!
John J. Karcher devuser@alternateapproach.com
Hello John,
On 2/17/23 18:06, John J. Karcher wrote:
Thanks a million for this tip, Alexander! I am using Debian unstable, and this has prevented me from building for months.
Now I am getting stopped by another error altogether:
... [Linux] /home/mainuser/Devel/genode_main/genode/depot/genodelabs/api/pc_linux/2023-01-23/src/linux/scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory [Linux] 21 | #include <openssl/bio.h> [Linux] | ^~~~~~~~~~~~~~~ [Linux] compilation terminated. ...
Does anyone have any thoughts on this?
The pc_linux API should not be built for RISC-V. It's meant for x86 drivers. There are no ported Linux drivers for RISC-V at the moment. Or do you build for x86? For x86 you would probably need the "libssl-dev" Debian package.
Regards,
Sebastian
On 2/20/23 06:28, Sebastian Sumpf wrote:
Hello John,
On 2/17/23 18:06, John J. Karcher wrote:
Thanks a million for this tip, Alexander! I am using Debian unstable, and this has prevented me from building for months.
Now I am getting stopped by another error altogether:
... [Linux] /home/mainuser/Devel/genode_main/genode/depot/genodelabs/api/pc_linux/2023-01-23/src/linux/scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory [Linux] 21 | #include <openssl/bio.h> [Linux] | ^~~~~~~~~~~~~~~ [Linux] compilation terminated. ...
Does anyone have any thoughts on this?
The pc_linux API should not be built for RISC-V. It's meant for x86 drivers. There are no ported Linux drivers for RISC-V at the moment. Or do you build for x86? For x86 you would probably need the "libssl-dev" Debian package.
Sorry for wasting your time. I was building for x86_64, but cut out the context above, and forgot to change the subject line. And on top of that, the problem was simply that I forgot to install the libssl-dev package. It works now!
Thanks!
John J. Karcher devuser@alternateapproach.com
Hi Pranab,
I just added an artificial compile error to my plugin.c and did [1]. Once I got the error, I removed the bug and did [1] again. The second attempt was successful and didn't take much time. Note that the last three arguments of the command line are equivalent to putting [2] in your etc/build.conf when a run script uses the depot (e.g. run/sculpt). It produces the "official" least amount of re-compilation.
Cheers, Martin
[1] ./tool/depot/create local/bin/riscv/bash-minimal -j8 CCACHE=1 UPDATE_VERSIONS=1 FORCE=1 REBUILD= [2] RUN_OPT += --depot-auto-update
On 15.02.23 14:44, Pranab Kumar Rout cs21m045 wrote:
Hi, I am getting this error while doing:
make run/sculpt KERNEL=hw BOARD=virt_qemu_riscv
I don't have a different setup, I am using the master branch only.
As Alexander pointed out, it looks like I need to downgrade my gnu bison (which is now 3.5.1) to some 2.xx otherwise if its already present in depot, how do I skip the re-generation? Do I have to configure any file? Will it affect my process of building sculpt image? Please advise.
regards, Pranab
Hi Alexander,
On 2/15/23 10:06, Alexander Tormasov via users wrote:
I already comment this problem couple weeks ago.
in short, you have too new bison version (probably 3.xx) which generated plural.c file this file (plural.c) is present in depot together with plural.y , and if you get rid of re-generation - it will be compiled.
The plural.c is distributed with Bash itself and as you say below produced by bison2. It looks like no one ever creates it from the plural.y file. Which will not work with bison3. The problems with plural.y have been experienced in many projects (gcc, glibc ...) and been solved there. So I think the way to go is to find out why the build system thinks the plural.c has to be created again (something must be wrong with the date). Out of curiosity I have attached a patch I have found which should be applied to "contrib/bash-<hash>/src/noux-pkg/bash/plural.y". Does this build with bison3 and work for you?
Regards,
Sebastian
or you need to install bison version 2.xx.
15 февр. 2023 г., в 11:34, Martin Stein martin.stein@genode-labs.com написал(а):
Hi Pranab,
I'm failing to reproduce your problem. When, on branch genodelabs/master, I do [1], the process finishes successfully. Do you use https://github.com/genodelabs/genode.git and https://github.com/genodelabs/genode-riscv.git with both at branch genodelabs/master or do you have another setup?
Cheers, Martin
[1] ./tool/depot/create local/bin/riscv/bash-minimal -j8 CCACHE=1 UPDATE_VERSIONS=1 FORCE=1 REBUILD=
On 15.02.23 08:25, Pranab Kumar Rout cs21m045 wrote:
Hi, Based on the previous discussion I was able to overcome that obstacle. Now while moving further, I am getting this error in bash_minimal: checking library dependencies... Library ldso_so_support COMPILE so_support.o MERGE ldso_so_support.lib.a Library libc CONVERT libc.symbols.s ASSEMBLE libc.symbols.o MERGE libc.abi.so http://libc.abi.so Library noux MERGE noux.lib.a Library posix CONVERT posix.symbols.s ASSEMBLE posix.symbols.o MERGE posix.abi.so http://posix.abi.so Library libm CONVERT libm.symbols.s ASSEMBLE libm.symbols.o MERGE libm.abi.so http://libm.abi.so Program noux-pkg/bash-minimal/bash-minimal CONFIG bash-minimal BUILD bash-minimal [bash-minimal] [bash-minimal]
[bash-minimal] * * [bash-minimal] * GNU bash, version 4.4.18(1)-release
(riscv64-unknown-elf) [bash-minimal] * * [bash-minimal]
[bash-minimal] [bash-minimal] making lib/intl/libintl.a in ./lib/intl [bash-minimal]
/home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:48.1-12: warning: POSIX Yacc does not support %pure_parser [-Wyacc] [bash-minimal] 48 | %pure_parser [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:48.1-12: warning: deprecated directive: ‘%pure_parser’, use ‘%define api.pure’ [-Wdeprecated] [bash-minimal] 48 | %pure_parser [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] | %define api.pure [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:49.1-7: warning: POSIX Yacc does not support %expect [-Wyacc] [bash-minimal] 49 | %expect 7 [bash-minimal] | ^~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y: warning: fix-its can be applied. Rerun with option '--update'. [-Wother] [bash-minimal] In file included from /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:37: [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: error: conflicting types for ‘libintl_gettextparse’ [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:42:25: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 42 | # define __gettextparse PLURAL_PARSE [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:204:5: note: in expansion of macro ‘__gettextparse’ [bash-minimal] 204 | int __gettextparse (void); [bash-minimal] | ^~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: note: previous declaration of ‘libintl_gettextparse’ was here [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:116:12: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 116 | extern int PLURAL_PARSE PARAMS ((void *arg)); [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: error: conflicting types for ‘libintl_gettextparse’ [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:42:25: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 42 | # define __gettextparse PLURAL_PARSE [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:67:25: note: in expansion of macro ‘__gettextparse’ [bash-minimal] 67 | #define yyparse __gettextparse [bash-minimal] | ^~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:1225:1: note: in expansion of macro ‘yyparse’ [bash-minimal] 1225 | yyparse (void) [bash-minimal] | ^~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:104:23: note: previous declaration of ‘libintl_gettextparse’ was here [bash-minimal] 104 | # define PLURAL_PARSE libintl_gettextparse [bash-minimal] | ^~~~~~~~~~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural-exp.h:116:12: note: in expansion of macro ‘PLURAL_PARSE’ [bash-minimal] 116 | extern int PLURAL_PARSE PARAMS ((void *arg)); [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c: In function ‘libintl_gettextparse’: [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:68:25: error: too few arguments to function ‘__gettextlex’ [bash-minimal] 68 | #define yylex __gettextlex [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:1403:16: note: in expansion of macro ‘yylex’ [bash-minimal] 1403 | yychar = yylex (&yylval); [bash-minimal] | ^~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.c:68:25: note: declared here [bash-minimal] 68 | #define yylex __gettextlex [bash-minimal] | ^~~~~~~~~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:71:12: note: in expansion of macro ‘yylex’ [bash-minimal] 71 | static int yylex PARAMS ((YYSTYPE *lval, const char **pexp)); [bash-minimal] | ^~~~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:180:29: error: ‘arg’ undeclared (first use in this function) [bash-minimal] 180 | ((struct parse_args *) arg)->res = $1; [bash-minimal] | ^~~ [bash-minimal] /home/pranab/MTP/r5/genode/depot/genodelabs/src/bash-minimal/2023-02-15/src/noux-pkg/bash/lib/intl/plural.y:180:29: note: each undeclared identifier is reported only once for each function it appears in [bash-minimal] make[9]: *** [Makefile:175: plural.o] Error 1 [bash-minimal] make[8]: *** [Makefile:668: lib/intl/libintl.a] Error 1 make[7]: *** [/home/pranab/MTP/r5/genode/depot/genodelabs/api/noux/2021-12-16/mk/gnu_build.mk:181 http://gnu_build.mk:181: built.tag] Error 2 make[6]: *** [var/libdeps:119: bash-minimal.prg] Error 2 make[5]: *** [Makefile:336: gen_deps_and_build_targets] Error 2 make[4]: *** [/home/pranab/MTP/r5/genode/tool/depot/mk/build_bin_archive:208: /home/pranab/MTP/r5/genode/depot/genodelabs/bin/riscv/bash-minimal/2023-02-15.build/bin] Error 1 make[3]: *** [/home/pranab/MTP/r5/genode/depot/var/build.mk:264 http://build.mk:264: genodelabs/bin/riscv/bash-minimal/2023-02-15] Error 2 make[2]: *** [/home/pranab/MTP/r5/genode/tool/depot/build:136: execute_generated_build_mk_file] Error 2 make[1]: *** [/home/pranab/MTP/r5/genode/tool/depot/create:59: build] Error 2 make[1]: Leaving directory '/home/pranab/MTP/r5/genode/build/riscv'
I am trying to execute the run/sculpt for KERNEL=hw BOARD=virt_qemu_riscv. also this error persists while executing the run/sculpt_test also. Kindly tell whats the problem and How do I overcome this. I want to build the sculpt for RISC-V arch, but I dont have a board so I am doing it for virt_qemu_riscv. If you have any other resources to follow for this please let me know.
Regards, Pranab
Genode users mailing list users@lists.genode.org https://lists.genode.org/listinfo/users
Genode users mailing list users@lists.genode.org https://lists.genode.org/listinfo/users