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

Tornado build failure on Ubuntu/RISC-V #150

Open
tommythorn opened this issue May 31, 2024 · 1 comment
Open

Tornado build failure on Ubuntu/RISC-V #150

tommythorn opened this issue May 31, 2024 · 1 comment

Comments

@tommythorn
Copy link

On Ubuntu 24.04/RISC-V, the build (make) fails with

...
In file included from tornado/Tornado.cpp:17,
                 from tornado/tor_test.cpp:40:
tornado/MatchFinder.cpp: In member function ‘BYTE* BaseMatchFinder::toPtr(PtrVal)’:
tornado/MatchFinder.cpp:155:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  155 |     BYTE  *toPtr  (PtrVal n) {return (BYTE*) n;}
      |                                      ^~~~~~~~~
tornado/MatchFinder.cpp: In member function ‘PtrVal BaseMatchFinder::fromPtr(BYTE*)’:
tornado/MatchFinder.cpp:156:38: error: cast from ‘BYTE*’ {aka ‘unsigned char*’} to ‘PtrVal’ {aka ‘unsigned int’} loses precision [-fpermissive]
  156 |     PtrVal fromPtr(BYTE  *p) {return (PtrVal) p;}
$ gcc -v
...
gcc version 13.2.0 (Ubuntu 13.2.0-23ubuntu4) 
$ clang -v
Ubuntu clang version 18.1.3 (1)

I haven't tried to resolve it yet.

@tommythorn
Copy link
Author

tommythorn commented May 31, 2024

Building with DONT_BUILD_TORNADO=1 seems to be a workaround

@tommythorn tommythorn changed the title Build failure on Ubuntu/RISC-V Tornado build failure on Ubuntu/RISC-V May 31, 2024
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

1 participant