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

Yanu hac2l backend build error #37

Open
john-peterson opened this issue Jul 2, 2023 · 8 comments
Open

Yanu hac2l backend build error #37

john-peterson opened this issue Jul 2, 2023 · 8 comments

Comments

@john-peterson
Copy link

yanu-cli config --nsp-extractor hactool --nca-extractor hac2l
[crates/yanu-cli/src/main.rs:288] nsp_extractor = Hactool
[crates/yanu-cli/src/main.rs:296] nsp_extractor = Hac2l

ls hac2l hactool
hac2l  hactool

./yanu-cli ...
Copied keys successfully from 'keys/prod.keys'
Cloning into '/tmp/.tmpwS41s9'...
...

It's still trying to run setup-backend like it can't find the files. All files are in my home root

@john-peterson
Copy link
Author

Granted hac2l takes a few minutes to build but personally I would drop the make flags for nproc. It's a neat way to speed up the build but now the entire script has failed instead ,:-[

@john-peterson
Copy link
Author

john-peterson commented Jul 2, 2023

yanu-cli config --nsp-extractor hactool --nca-extractor hac2l --yanu-dir .

Sun, 02 Jul 2023 15:00:59 DEBUG [crates/yanu-cli/src/main.rs:101]: config=Config { schema_version: 2, nsp_extractor: Hactool, nca_extractor: Hac2l, yanu_dir: Some("/home/dev"), temp_dir: ".", hacpack_rev: "7845e7be8d03a263c33430f9e8c2512f7c280c88", hactool_rev: "c2c907430e674614223959f0377f5e71f9e44a4a", hac2l_rev: "7fc1b3a32c6a870c47d7459b23fd7c7b63014186", atmosphere_rev: "1afb184c143f4319e5d6d4ea27260e61830c42a0", four_nxci_rev: "33044e650ad58a72d231d9793383f5f279b73884" }                        
Sun, 02 Jul 2023 15:00:59 INFO [crates/yanu-cli/src/main.rs:107]: Selected keyfile keyfile="keys/prod.keys"     
Sun, 02 Jul 2023 15:00:59 INFO [crates/yanu-cli/src/main.rs:116]: Copied keys successfully to the C2 ^-^        
Sun, 02 Jul 2023 15:00:59 INFO [crates/yanu-cli/src/main.rs:138]: Started patching!                           
  Sun, 02 Jul 2023 15:00:59 INFO [crates/hac/src/backend.rs:301]: Building Hac2l

Added --yanu-dir . it's still not happy about my working folder. It wants to run the make command inside hac2l. I tried to print the command to the log but I'm still learning rust

@john-peterson
Copy link
Author

Maybe you can just print the correct commands at least that would work

Run these commands
hac2l ...
hactool ...

I will try to do it now ;-) maybe it will work

So if something goes wrong in the script I can run the commands myself and try to patch this later.

@nozwock
Copy link
Owner

nozwock commented Jul 2, 2023

It's still trying to run setup-backend like it can't find the files. All files are in my home root

hactool, hacpack, hac2l, fournxci (4nxci in git build), etc. binaries need to be in $HOME/.cache/com.github.nozwock.yanu

@nozwock
Copy link
Owner

nozwock commented Jul 2, 2023

This can be used to build them build-backend.tar.gz.
But oddly enough hac2l isn't compiling for me anymore due to some make error.

@nozwock
Copy link
Owner

nozwock commented Jul 2, 2023

Nvm, don't use the above script, I seem to have messed it up while trying to compress it to tar.gz

@nozwock
Copy link
Owner

nozwock commented Jul 2, 2023

Ok I'm saved, thankfully I had undo histroy build-backend.tar.gz

You can try compiling hac2l with

./build-backend.sh --hac2

@nozwock nozwock changed the title yanu-cli config --nsp-extractor hactool --nca-extractor hac2l Yanu hac2l backend build error Jul 2, 2023
nozwock added a commit that referenced this issue Jul 2, 2023
Before it was trying to move a `fournxci` ELF binary which doesn't exist.

This came to my attention due to #37.
@tsuyu-emu
Copy link

doesn't work building hac2l. I tried in ubuntu, archlinux, and is not working for me.

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

3 participants