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

Build from AUR? #7

Open
mysteryx93 opened this issue Jan 31, 2022 · 26 comments
Open

Build from AUR? #7

mysteryx93 opened this issue Jan 31, 2022 · 26 comments

Comments

@mysteryx93
Copy link

Is this package available on Linux in the AUR? Every other package was there... only missing this one

@AkarinVS
Copy link
Owner

AkarinVS commented Jan 31, 2022 via email

@NSQY
Copy link

NSQY commented Jan 31, 2022

If you want to compile this under Arch, you will need to downgrade LLVM since they've been shipping 13.x for months now.
There is a helper tool called downgrade which I have used to compile this plugin: https://aur.archlinux.org/packages/downgrade/

For me, I had to downgrade to 34) llvm 12.0.1 5 (the 5th version of 12.0.1 in the archives). For whatever reason, this plugin was not compiling with other versions of LLVM 12.x. This may have occurred due to a packing error, I do not know.

You may or may not have to downgrade sister packages such as llvm-libs, I did just to be safe.

@NSQY
Copy link

NSQY commented Jan 31, 2022

CC: @sl1pkn07
You may be interested in this. This plugin is a soft requirement for https://github.com/DJATOM/vapoursynth-preview/blob/api-v4-support/vspreview/main.py and a few other functions.

@sl1pkn07
Copy link

ok. when go to home

greetings

@sl1pkn07
Copy link

@mysteryx93
Copy link
Author

Wow that was quick! Microsoft wasn't so quick to fix problems.

I still don't see it in my package manager, how long it takes to be available? I did run pacman -Syu

@sl1pkn07
Copy link

pacman not see the aur repository. you need download the PKGBUILD by hand and build yourself with makepkg or use a helper like yay or something

greetings

@mysteryx93
Copy link
Author

mysteryx93 commented Jan 31, 2022

ah but my "Add/Remove Software" supports it. Found the "Update" button. Working!

I hope all those VS AUR packages won't cause package conflicts... I was warned against using the AUR

@mysteryx93
Copy link
Author

The AUR build doesn't seem to work

AttributeError: No attribute with the name akarin exists. Did you mistype a plugin namespace?

It's not getting loaded like the other plugins.

@mysteryx93
Copy link
Author

mysteryx93 commented Feb 1, 2022

OK that's strange. Simple script.

clip = core.akarin.Expr(clip, "x")

AttributeError: No attribute with the name akarin exists. Did you mistype a plugin namespace?

I do have /usr/lib/vapoursynth/libakarin.so that takes 44.9MB, alongside all the other plugins that do get loaded. Something wrong with that one?

I rebooted just to be sure, problem persists. That means corrupt library? Missing dependency, perhaps?

I asked about this on Discord; they could reproduce the problem but nobody has any idea what causes it. Since the lib file is there.

Does it have a runtime dependency on an older version of LLVM or it's only for compilation?

@mysteryx93
Copy link
Author

aahhh I'd bet that the problem with vsakarin is that it uses LLVM to compile expressions on-the-fly, but needs an older version. That means that I need 2 versions of LLVM installed on my system side-by-side? How do I do that on arch-based linux?

@sl1pkn07
Copy link

sl1pkn07 commented Feb 1, 2022

that expression is compiled by library or program? with library maybe with LD_LIBRARY_PATH=>path of the llvm libraries<. if use a executable, IDK

@mysteryx93
Copy link
Author

mysteryx93 commented Feb 1, 2022

Probably we need llvmlibs-11 library. But simply installing that dependency still doesn't work.

@sl1pkn07 and add that path where? I'm trying to build with meson build and it's not finding llvm11-lib.

@mysteryx93
Copy link
Author

Actually the problem may be that it was built with dynamic link to LLVM instead of being statically linked.

@mysteryx93
Copy link
Author

I used downgrade on llvm; llvm-libs does need to be downgraded too. Once manually compiled, then it works. It still works after re-updating llvm and llvm-libs, so it will need to be tested on another computer that didn't have that manual intervention.

@AkarinVS
Copy link
Owner

AkarinVS commented Feb 3, 2022 via email

@sl1pkn07
Copy link

sl1pkn07 commented Feb 3, 2022

@mysteryx93 try now with the updated pkgbuild

@quietvoid
Copy link
Contributor

quietvoid commented Feb 7, 2022

@sl1pkn07 For what it's worth I'm getting this when vapoursynth-editor tries to load:

$ vsedit
: CommandLine Error: Option 'reuse-storage-in-coroutine-frame' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options

Uninstalling vapoursynth-plugin-vsakarin-git fixes it.

@sl1pkn07
Copy link

sl1pkn07 commented Feb 7, 2022

Screenshot_20220207_182954

works for me. tested in vsedit fails on my side due problems with nvidia/wayland/KDE/GBM backend

seems you the plugin installed twice, presumably une installed by hand and other by the package manager (you done uninstalled the package one)

@quietvoid
Copy link
Contributor

quietvoid commented Feb 7, 2022

seems you the plugin installed twice, presumably une installed by hand and other by the package manager (you done uninstalled the package one)

I've never installed this before the AUR package used LLVM 13. Your python script test also works fine.

But trying to start vsedit:

#0  0x00007ffff66d7d22 in raise () at /usr/lib/libc.so.6
#1  0x00007ffff66c1862 in abort () at /usr/lib/libc.so.6
#2  0x00007fffeb3a90d4 in llvm::report_fatal_error(llvm::Twine const&, bool) () at /usr/lib/libLLVM-13.so
#3  0x00007fffeb3a9268 in  () at /usr/lib/libLLVM-13.so
#4  0x00007fffeb388a91 in  () at /usr/lib/libLLVM-13.so
#5  0x00007fffeb388e05 in llvm::cl::Option::addArgument() () at /usr/lib/libLLVM-13.so
#6  0x00007fff257e14d2 in llvm::yaml::IO::setAllowUnknownKeys(bool) () at /usr/lib/vapoursynth/libakarin.so

@sl1pkn07
Copy link

sl1pkn07 commented Feb 7, 2022

then is problem of vsedit. try to build the plugin editing the PKGBUILD and add the line options=('debug'), build the plugin and install the two packages generated (one with prefix debug in the name). and ty again gdb. and report the resoult to the vsedit issue tracker

also., as note, this plugin not provide officially any package for AUR, is a mine thing, so any package problem, except plugin problem iself, please report to the AUR package comments

greetings

@quietvoid
Copy link
Contributor

I don't think this is a packaging issue nor a vsedit problem, hence why I'm posting here.
Here's a better backtrace: vsedit-run.txt

@sl1pkn07
Copy link

sl1pkn07 commented Feb 7, 2022

Screenshot_20220207_201826

@quietvoid
Copy link
Contributor

I don't know what else to say, it doesn't work for me.

@AkarinVS
Copy link
Owner

AkarinVS commented Feb 8, 2022 via email

@quietvoid
Copy link
Contributor

quietvoid commented Feb 8, 2022

I've tried removing all plugins except for libakarin and it still errors.
It does look like the build always statically links LLVM, and this should probably be optional.

If I switch the LLVM dependency to disable static, then everything works.

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

5 participants