Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when I build sel4 with sel4test, error occors that "UnicodeDecodeError: 'ascii' codec can't decode byte" #52

Closed
oska874 opened this issue Sep 25, 2021 · 6 comments

Comments

@oska874
Copy link

oska874 commented Sep 25, 2021

I build sel4 with the guide from https://docs.sel4.systems/GettingStarted.html. but failed, error occors that:

[1/24] Generating from generated/plat_mode/machine/hardware.bf.pbf
FAILED: kernel/generated/plat_mode/machine/hardware_gen.h /workspace/s42/build-x86/kernel/generated/plat_mode/machine/hardware_gen.h
cd /workspace/s42/build-x86/kernel && python3 /workspace/s42/kernel/tools/bitfield_gen.py --prune /workspace/s42/build-x86/kernel/kernel_all_pp_prune.c /workspace/s42/build-x86/kernel/generated/plat_mode/machine/hardware.bf.pbf /workspace/s42/build-x86/kernel/generated/plat_mode/machine/hardware_gen.h
Traceback (most recent call last):
  File "/workspace/s42/kernel/tools/bitfield_gen.py", line 2772, in <module>
    string = f.read()
  File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 593714: ordinal not in range(128)
ninja: build stopped: subcommand failed.

My environment is ubuntu 18.04.

@axel-h
Copy link
Member

axel-h commented Sep 25, 2021

Seems another 18.04 issue. Did you try the docker containers?
Is there any reason you have to use 18.04 or did you just pick this because the docs say so?

@GooTal
Copy link

GooTal commented Mar 3, 2022

I tried ubuntu18.04, but I need to install many packs and still got many errors. My friend used ubuntu 20.04 and he didn`t worry much about environment settings, pack dependencies. Now I am using 20.04 too, just found some small errors running sel4test like this.
image

@lsf37
Copy link
Member

lsf37 commented Mar 3, 2022

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 593714: ordinal not in range(128)
ninja: build stopped: subcommand failed.

This bit could actually be related to the native platform encoding, i.e. the thing fixed in PR #778. @oska874 would you be able to try again with the current seL4 version on the master branch? (I.e. using the master.xml manifest of sel4test)

@lsf37
Copy link
Member

lsf37 commented Mar 3, 2022

I tried ubuntu18.04, but I need to install many packs and still got many errors. My friend used ubuntu 20.04 and he didn`t worry much about environment settings, pack dependencies. Now I am using 20.04 too, just found some small errors running sel4test like this.
image

The image you are showing is expected sel4test output before the test starts, i.e. it seems to be working correctly. How does the output continue?

@GooTal
Copy link

GooTal commented Mar 3, 2022

I tried ubuntu18.04, but I need to install many packs and still got many errors. My friend used ubuntu 20.04 and he didn`t worry much about environment settings, pack dependencies. Now I am using 20.04 too, just found some small errors running sel4test like this.
image

The image you are showing is expected sel4test output before the test starts, i.e. it seems to be working correctly. How does the output continue?

Thank you for answering on seL4/sel4test-manifest#18.

@axel-h
Copy link
Member

axel-h commented Mar 8, 2022

I'm closing this, as all questions seem to be answered and seL4/seL4#778 is merged.

@axel-h axel-h closed this as completed Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants