Re: regarding Sculpt on virt_qemu_riscv

2023-02-23 Thread Martin Stein
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.
> 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
> *
> 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
> 
> *
> 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 
>   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 [52]>(Genode::Log::Type, char const (&) [52])':
> 
> /home/pranab/MTP/r5/genode/depot/genodelabs/api/b

Re: regarding Sculpt on virt_qemu_riscv

2023-02-23 Thread Martin Stein
... 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.
>> 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
>> *
>> 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
>> 
>> *
>> 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 
>>   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_wr

Re: regarding Sculpt on virt_qemu_riscv

2023-02-22 Thread Norman Feske

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_write/used_apis


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//api/jitterentropy//?


[2] 
https://github.com/genodelabs/genode/blob/master/repos/libports/recipes/api/jitterentropy/content.mk


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

--
Dr.-Ing. Norman Feske
Genode Labs

https://www.genode-labs.com · https://genode.org

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth


___
Genode users mailing list
users@lists.genode.org
https://lists.genode.org/listinfo/users


Re: regarding Sculpt on virt_qemu_riscv

2023-02-22 Thread Pranab Kumar Rout cs21m045
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
*
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
*
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
> MERGEldso_so_support.lib.a
>   Library ld
> CONVERT  ld.symbols.s
> ASSEMBLE ld.symbols.o
> MERGEld.abi.so
>   Library base
> MERGEbase.lib.a
>   Library block_session
> MERGEblock_session.lib.a
>   Library config
> MERGEconfig.lib.a
>   Library jitterentropy
> MERGEjitterentropy.lib.a
>   Library os
> MERGEos.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 [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 
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 jitterentro

Re: regarding Sculpt on virt_qemu_riscv

2023-02-21 Thread Pranab Kumar Rout cs21m045
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, 
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
>
___
Genode users mailing list
users@lists.genode.org
https://lists.genode.org/listinfo/users


Re: regarding Sculpt on virt_qemu_riscv

2023-02-21 Thread Martin Stein
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


Re: regarding Sculpt on virt_qemu_riscv

2023-02-21 Thread Pranab Kumar Rout cs21m045
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 <
cs21m...@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
> MERGEldso_so_support.lib.a
>   Library ld
> CONVERT  ld.symbols.s
> ASSEMBLE ld.symbols.o
> MERGEld.abi.so
>   Library base
> MERGEbase.lib.a
>   Library block_session
> MERGEblock_session.lib.a
>   Library config
> MERGEconfig.lib.a
>   Library jitterentropy
> MERGEjitterentropy.lib.a
>   Library os
> MERGEos.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 **
> | *^~~~*
> *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 
>> >  [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
>>
>
___
Genode users mailing list
users@lists.genode.org
https://lists.genode.org/listinfo/users


Re: regarding Sculpt on virt_qemu_riscv

2023-02-20 Thread John J. Karcher

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 
   [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
  devu...@alternateapproach.com

___
Genode users mailing list
users@lists.genode.org
https://lists.genode.org/listinfo/users


Re: regarding Sculpt on virt_qemu_riscv

2023-02-20 Thread Sebastian Sumpf

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-/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  
написал(а):

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
MERGEldso_so_support.lib.a
  Library libc
CONVERT  libc.symbols.s
ASSEMBLE libc.symbols.o
MERGElibc.abi.so 
  Library noux
MERGEnoux.lib.a
  Library posix
CONVERT  posix.symbols.s
ASSEMBLE posix.symbols.o
MERGEposix.abi.so 
  Library libm
CONVERT  libm.symbols.s
ASSEMBLE libm.symbols.o
MERGElibm.abi.so 
  Program noux-pkg/bash-minimal/bash-minimal
CONFIG   bash-minimal
BUILDbash-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/genodelab

Re: regarding Sculpt on virt_qemu_riscv

2023-02-20 Thread John J. Karcher

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 
  [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
  devu...@alternateapproach.com

___
Genode users mailing list
users@lists.genode.org
https://lists.genode.org/listinfo/users


Re: regarding Sculpt on virt_qemu_riscv

2023-02-20 Thread Sebastian Sumpf

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 
   [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

--
Sebastian Sumpf
Genode Labs

http://www.genode-labs.com · http://genode.org

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth





___
Genode users mailing list
users@lists.genode.org
https://lists.genode.org/listinfo/users


Re: regarding Sculpt on virt_qemu_riscv

2023-02-20 Thread Pranab Kumar Rout cs21m045
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
MERGEldso_so_support.lib.a
  Library ld
CONVERT  ld.symbols.s
ASSEMBLE ld.symbols.o
MERGEld.abi.so
  Library base
MERGEbase.lib.a
  Library block_session
MERGEblock_session.lib.a
  Library config
MERGEconfig.lib.a
  Library jitterentropy
MERGEjitterentropy.lib.a
  Library os
MERGEos.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 **
| *^~~~*
*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 
> >  [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
>
___
Genode users mailing list
users@lists.genode.org
https://lists.genode.org/listinfo/users


Re: regarding Sculpt on virt_qemu_riscv

2023-02-18 Thread Alexander Tormasov via users
> 
> 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 
>  [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


Re: regarding Sculpt on virt_qemu_riscv

2023-02-17 Thread John J. Karcher
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 
  [Linux]|  ^~~
  [Linux]  compilation terminated.
  ...

Does anyone have any thoughts on this?

 Thanks!

  John J. Karcher
  devu...@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 
 написал(а):


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


___
Genode users mailing list
users@lists.genode.org
https://lists.genode.org/listinfo/users


Re: regarding Sculpt on virt_qemu_riscv

2023-02-16 Thread Martin Stein
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

___
Genode users mailing list
users@lists.genode.org
https://lists.genode.org/listinfo/users


Re: regarding Sculpt on virt_qemu_riscv

2023-02-15 Thread Alexander Tormasov via 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 
 написал(а):

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 
mailto: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 
> mailto:martin.st...@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
>>MERGEldso_so_support.lib.a
>>  Library libc
>>CONVERT  libc.symbols.s
>>ASSEMBLE libc.symbols.o
>>MERGElibc.abi.so 
>> >
>>  Library noux
>>MERGEnoux.lib.a
>>  Library posix
>>CONVERT  posix.symbols.s
>>ASSEMBLE posix.symbols.o
>>MERGEposix.abi.so 
>> >
>>  Library libm
>>CONVERT  libm.symbols.s
>>ASSEMBLE libm.symbols.o
>>MERGElibm.abi.so 
>> >
>>  Program noux-pkg/bash-minimal/bash-minimal
>>CONFIG   bash-minimal
>>BUILDbash-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

Re: regarding Sculpt on virt_qemu_riscv

2023-02-15 Thread Pranab Kumar Rout cs21m045
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 
> написал(а):
> >
> > 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
> >>MERGEldso_so_support.lib.a
> >>  Library libc
> >>CONVERT  libc.symbols.s
> >>ASSEMBLE libc.symbols.o
> >>MERGElibc.abi.so 
> >>  Library noux
> >>MERGEnoux.lib.a
> >>  Library posix
> >>CONVERT  posix.symbols.s
> >>ASSEMBLE posix.symbols.o
> >>MERGEposix.abi.so 
> >>  Library libm
> >>CONVERT  libm.symbols.s
> >>ASSEMBLE libm.symbols.o
> >>MERGElibm.abi.so 
> >>  Program noux-pkg/bash-minimal/bash-minimal
> >>CONFIG   bash-minimal
> >>BUILDbash-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/n

Re: regarding Sculpt on virt_qemu_riscv

2023-02-15 Thread Alexander Tormasov via users
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  
> написал(а):
> 
> 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
>>MERGEldso_so_support.lib.a
>>  Library libc
>>CONVERT  libc.symbols.s
>>ASSEMBLE libc.symbols.o
>>MERGElibc.abi.so 
>>  Library noux
>>MERGEnoux.lib.a
>>  Library posix
>>CONVERT  posix.symbols.s
>>ASSEMBLE posix.symbols.o
>>MERGEposix.abi.so 
>>  Library libm
>>CONVERT  libm.symbols.s
>>ASSEMBLE libm.symbols.o
>>MERGElibm.abi.so 
>>  Program noux-pkg/bash-minimal/bash-minimal
>>CONFIG   bash-minimal
>>BUILDbash-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/

Re: regarding Sculpt on virt_qemu_riscv

2023-02-15 Thread Martin Stein
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 
>   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: conflictin

Re: regarding Sculpt on virt_qemu_riscv

2023-02-14 Thread Pranab Kumar Rout cs21m045
sh-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  wrote:

> Date: Mon, 13 Feb 2023 20:40:20 +0100
> From: Martin Stein 
> To: users@lists.genode.org
> Subject: Re: regarding Sculpt on virt_qemu_riscv
> Message-ID: <3cad7ef6-7b35-f63b-4f07-de2f47657...@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 

Re: regarding Sculpt on virt_qemu_riscv

2023-02-13 Thread Martin Stein
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

___
Genode users mailing list
users@lists.genode.org
https://lists.genode.org/listinfo/users


regarding Sculpt on virt_qemu_riscv

2023-02-13 Thread Pranab Kumar Rout cs21m045
Hello,
I am trying to build sculpt for virt_qemu_riscv.
As I could not find the "virt_qemu_riscv" directory inside genode. So I
cloned the riscv inside repos under genode from "
https://github.com/genodelabs/genode-riscv/";.
Earlier while executing the command:
  > make run/log BOARD=virt_qemu_riscv KERNEL=hw
I got this error.:

genode build completed

using 'ld-hw.lib.so' as 'ld.lib.so'

core link address is 0xffc0

spawn qemu-system-riscv64 -nographic -serial mon:stdio -kernel
var/run/log/boot/image.elf -m 512 -machine virt -cpu rv64,priv_spec=v1.10.0
-bios default -global virtio-mmio.force-legacy=false -device
virtio-net-device,bus=virtio-mmio-bus.0,netdev=net0 -device
virtio-mouse-device -device virtio-keyboard-device -device
virtio-gpu-device -netdev user,id=net0

qemu-system-riscv64: Unable to load the RISC-V firmware
"opensbi-riscv64-virt-fw_jump.bin"

Aborting, received EOF

Log step failed, retry.

I had raised this issue then and I would like to answer your questions.

- qemu-system-riscv64 --version
QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.24)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers

I could not fix qemu so I downloaded the RISC-V firmware
"opensbi-riscv64-virt-fw_jump.bin" and used it explicitly to run the elf
file generated. I got this output

Platform Name  : QEMU Virt Machine
Platform HART Features : RV64ACDFIMSU
Platform Max HARTs : 8
Current Hart   : 0
Firmware Base  : 0x8000
Firmware Size  : 120 KB
Runtime SBI Version: 0.2

MIDELEG : 0x0222
MEDELEG : 0xb109
PMP0: 0x8000-0x8001 (A)
PMP1: 0x-0x (A,R,W,X)

kernel initialized
ROM modules:
 ROM: [803ed000,803ed156) config
 ROM: [801d3000,801d4000) core_log
 ROM: [8039b000,803e5120) init
 ROM: [802ff000,8039a920) ld.lib.so
 ROM: [80146000,80147000) platform_info
 ROM: [803e6000,803ec460) test-log

Genode 22.11-7-g83ac80460 
507 MiB RAM and 64533 caps assigned to init
[init -> test-log] hex range:  [0e00,1680)
[init -> test-log] empty hex range:[0abc,0abc) (empty!)
[init -> test-log] hex range to limit: [f8,ff]
[init -> test-log] invalid hex range:  [f8,08) (overflow!)
[init -> test-log] negative hex char:  0xfe
[init -> test-log] positive hex char:  0x02
[init -> test-log] floating point: 1.70
[init -> test-log] multiarg string:"parent -> child.7"
[init -> test-log] String(Hex(3)): 0x3
[init -> test-log] Very long messages:
[init -> test-log -> log]
1.2
[init -> test-log]
3.4
[init -> test-log]
5.6
[init -> test-log]
[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 ?

--

So, Now I am trying to build sculpt using:

> make run/sculpt BOARD=virt_qemu_riscv KERNEL=hw

I have added the virt_qemu platform in sculpt.run file. I have added a
driver configuration file under *'repos/gems/sculpt/drivers' and added
a  **default-virt_qemu_arm_riscv.sculpt
file under 'repos/gems/sculpt'.*

I am getting this error:

including /home/pranab/MTP/r5/genode/tool/run/power_on/qemu
including /home/pranab/MTP/r5/genode/tool/run/log/qemu
including /home/pranab/MTP/r5/genode/tool/run/boot_dir/hw
including /home/pranab/MTP/r5/genode/repos/gems/run/sculpt.run
update depot: /home/pranab/MTP/r5/genode/tool/depot/create
genodelabs/bin/riscv/base-hw-virt_qemu_riscv
genodelabs/bin/riscv/event_filter genodelabs/bin/riscv/init
genodelabs/bin/riscv/nitpicker genodelabs/bin/riscv/platform_drv
genodelabs/bin/riscv/rom_reporter genodelabs/bin/riscv/virt_qemu_drivers
genodelabs/bin/riscv/virtdev_rom genodelabs/bin/riscv/virtio_fb_drv
genodelabs/bin/riscv/virtio_input_drv genodelabs/bin/riscv/virtio_nic_drv
genodelabs/pkg/riscv/drivers_interactive-virt_riscv
genodelabs/pkg/riscv/sculpt genodelabs/raw/drivers_interactive-virt_riscv
CROSS_DEV_PREFIX=/usr/local/genode/tool/21.05/bin/genode-riscv-
DEPOT_DIR=/home/pranab/MTP/r5/genode/depot U