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

Installation script waf is broken on Linux in release 2.8.9 #530

Open
fbrausse opened this issue Jun 20, 2023 · 3 comments
Open

Installation script waf is broken on Linux in release 2.8.9 #530

fbrausse opened this issue Jun 20, 2023 · 3 comments

Comments

@fbrausse
Copy link

I'm on Gentoo Linux, downloaded and extracted the release v2.8.9 and ran ./waf configure as instructed by the installation manual. This is the result:

$ ./waf configure
Waf: The wscript in '/home/kane/scorch/esbmc-sysroot/tmp/ibex-lib-ibex-2.8.9' is unreadable
Traceback (most recent call last):
  File "/home/kane/scorch/esbmc-sysroot/tmp/ibex-lib-ibex-2.8.9/.waf3-2.0.12-99294ba4df4d1c7132661cc921a025f1/waflib/Scripting.py", line 102, in waf_entry_point
    set_main_module(wscript)
  File "/home/kane/scorch/esbmc-sysroot/tmp/ibex-lib-ibex-2.8.9/.waf3-2.0.12-99294ba4df4d1c7132661cc921a025f1/waflib/Scripting.py", line 142, in set_main_module
    Context.g_module=Context.load_module(file_path)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kane/scorch/esbmc-sysroot/tmp/ibex-lib-ibex-2.8.9/.waf3-2.0.12-99294ba4df4d1c7132661cc921a025f1/waflib/Context.py", line 349, in load_module
    code=Utils.readf(path,m='rU',encoding=encoding)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kane/scorch/esbmc-sysroot/tmp/ibex-lib-ibex-2.8.9/.waf3-2.0.12-99294ba4df4d1c7132661cc921a025f1/waflib/Utils.py", line 141, in readf
    with open(fname,m)as f:
         ^^^^^^^^^^^^^
ValueError: invalid mode: 'rUb'

For reference, I have python-3.11.3 installed here.

@fbrausse
Copy link
Author

Same happens on the master branch, currently at 1405ba4.

@gchabert
Copy link
Contributor

Have you tried cmake compilation?

@fbrausse
Copy link
Author

Have you tried cmake compilation?

Yes, I have. The cmake one works fine. I just initially followed what the docs suggest as the non-experimental method.

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

2 participants