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

Libraries installation seems broken #7

Open
0xdeaddc0de opened this issue Apr 7, 2024 · 0 comments
Open

Libraries installation seems broken #7

0xdeaddc0de opened this issue Apr 7, 2024 · 0 comments

Comments

@0xdeaddc0de
Copy link

Hello o/
Every rust binaries i submit to Cerberus can't be proceeded, it seems that the installation of rust package fails.
I've tried on Arch, Debian, WSL, and Ubuntu, and on multiple test binary, same error :
[#] An error occurred during build, delegating to RBF (Rust Build Fixer)...
Here is full output on test case 1 of the repo.

deadc0de@debian ~//archiver/Cerberus/build (main) 
❯ ./cerberus ./test_1 -output ./test_1_sk
---------- Cerberus (v2.0) ----------
[*] Identified package manager: apt
[*] Not running as root but sudo detected.
[*] Identified file as UNIX - Executable and Linkable Format (ELF).
[*] Identified language : Rust
[*] Continue analysis with this language ? (Y/n) Y
[*] Using Rust for analysis.
[*] No additional package is required.
[*] File was found to be stripped.
[*] Extracting libraries...
[+] Identified 1 libraries.
[*] Here is the current list of libraries :
-------------------------------
1. aes:0.8.3
-------------------------------
1. Validate 2. Add library 3. Change library version 4. Remove library
[*] Your choice ? (1-4) 
[?] Wrong value, please try again (1-4) 1
[*] Installing libraries...
[*] Installing aes:0.8.3...
[#] An error occurred during build, delegating to RBF (Rust Build Fixer)...
[?] Failure...
[?] No libraries were successfully installed...

With quick debugging it seems that cargo is not happy with some build directives, but i'm unsure of the origin :

Updating crates.io index

   Compiling version_check v0.9.4

   Compiling typenum v1.17.0

   Compiling cpufeatures v0.2.12

   Compiling cfg-if v1.0.0

   Compiling generic-array v0.14.7

   Compiling inout v0.1.3

   Compiling crypto-common v0.1.6

   Compiling cipher v0.4.4

   Compiling aes v0.8.3 (/home/deadc0de//archiver/Cerberus/build/.cerberus-07598438-016a-45/aes-0.8.3)

error: `#[panic_handler]` function required, but not found



error: unwinding panics are not supported without std

  |

  = help: using nightly cargo, use -Zbuild-std with panic="abort" to avoid unwinding

  = note: since the core library is usually precompiled with panic="unwind", rebuilding your crate with panic="abort" may not b
e enough to fix the problem



error: could not compile `aes` (lib) due to 2 previous errors

res_code : 25856
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