Package Details: vitis 2023.2-2

Git Clone URL: https://aur.archlinux.org/vitis.git (read-only, click to copy)
Package Base: vitis
Description: FPGA/CPLD design suite for Xilinx devices
Upstream URL: https://www.xilinx.com/products/design-tools/vitis.html
Licenses: custom
Conflicts: vivado
Provides: vivado
Submitter: Freed
Maintainer: Freed (ccorn)
Last Packager: ccorn
Votes: 2
Popularity: 0.077894
First Submitted: 2023-04-21 03:30 (UTC)
Last Updated: 2023-12-05 22:49 (UTC)

Dependencies (26)

Required by (13)

Sources (2)

Latest Comments

ccorn commented on 2023-12-05 10:57 (UTC)

@ouras: Thanks!

The PKGBUILD snippet that you have quoted adjusts paths in scripts, not in symbolic links. I have now added handling of symlinks as well: Roughly, if any symlink in $pkgdir points into $pkgdir, it is turned into a relative symlink.

As to LD_LIBRARY_PATH: This gets set by the Vitis startup script using ldlibpath.sh. That is supposed to select a distro-specific lib subdir. In our case, the script hallucinates a Default subdirectory. Providing a Default symlink to Ubuntu should have the same effect as your fix. So we now scan the $pkgdir tree for Ubuntu subdirs, and if there is no Default sibling, symlink it to Ubuntu. This augments both /opt/Xilinx/Vitis/2023.2/tps/lnx64/cmake-*/libs.

Will push the update soon if it works out well. Feedback much appreciated, particularly because this package is so awfully huge.

ouras commented on 2023-12-05 06:52 (UTC)

When generating a platform component in Vitis, I was getting an error about libssl and libcrypto:

22:05:33 ERROR : cmake: /usr/lib/libssl.so.10: version `libssl.so.10' not found (required by cmake)
22:05:33 ERROR : cmake: /usr/lib/libcrypto.so.10: version `libcrypto.so.10' not found (required by cmake)

Not sure the right way to fix it, but my workaround was to modify my Vitis desktop entry (/usr/share/applications/Vitis\ 2023.2.desktop) so that the Exec key is:

Exec=env LD_LIBRARY_PATH=/opt/Xilinx/Vitis/2023.2/tps/lnx64/cmake-3.24.2/libs/Ubuntu:$LD_LIBRARY_PATH /opt/Xilinx/Vitis/2023.2/bin/vitis

ouras commented on 2023-12-05 02:12 (UTC) (edited on 2023-12-05 02:13 (UTC) by ouras)

I was getting an error in Vitis when creating a platform component after importing an XSA file: "Error in generating Processor List".

I was able to fix it with sudo ln -sf /opt/Xilinx/Vitis/2023.2/tps/lnx64/python-3.8.3/bin/python /opt/Xilinx/Vitis/2023.2/tps/lnx64/lopper-1.1.0/env/bin/python.

The original link target was rooted at my build directory, which I had already deleted, so the file didn't exist. Thankfully, this was the only such link.

I'm assuming it has something to do with this bit of PKGBUILD:

find "$pkgdir/opt/Xilinx/Vitis/${pkgver}"/tps/lnx64/lopper-*/env \
    -maxdepth 2 -type f \
    -exec sed -i -e "s|$pkgdir||g" '{}' \+

ccorn commented on 2023-11-19 11:04 (UTC)

I have now pushed the update to the master branch, as I find myself to be declared co-maintainer. Note however that I cannot maintain this unwieldy package as swiftly and diligently as I'd like.

Two minor changes with respect to the proposed patches:

  • Updated package size in a comment
  • Reinstated file:/// prefix. When pushing commits, the AUR checks the PKGBUILD and declines the update if source files named without URL scheme are not included in the repo. Using file:/// bypasses that check.

ccorn commented on 2023-11-18 19:28 (UTC)

I have made an update to 2023.2, updated the dependencies a bit and repaired the relocator step so that no $pkgdir traces remain except in __pycache__ entries.

Huh, are there no attachment buttons on this comment page? Posting the patches inline then, but compressed to save space. Pipe the following through base64 --decode | zstdcat to get the patches in a format suitable for git am. The first patch is the essential one. The second patch expands tabs for easier maintenance. The third updates .SRCINFO.

KLUv/QRYbXcAasp8JDNwjJGxDprHLyPFJ122hSBL1H/765HJKWnwyaAtnqyYWYMNXsJ9xsvaD0rW
BkrWBVkbwAU7Ai0CPwJ3s5vbi3ybr21vDsy3mMJXGJ8rJJGDiJyE1Snp3Kxfe53CbDOkesaw6TN8
d27jnnBpgQNI9dubbCuUGUtwCuu8ZIVvPAexwAHkMsFtPs4R3uzph8vGuK+W2fg+tC+0Dqul8O9N
hUuNbZvj+cYgJ0Kt8VzjDkOBooKECKeYIAHCKSBIoBCdoh4RqnEHgKRzW3Bp8sYx/OfaHPtO+c4g
fm8kwKQLs/Te5HeE1OKS5I1TVORagolf5xc4gFwIOJ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ayYn2F
2CdvCIvVxH4i+W8qu6+i9i95+BPdy/lKGCBCfF5BtJXtn6rIZla13aBIiS7uihqelGmaA4JtTezP
JLsrn98N0ZclmGgAUTlDTEUGQtA2KCTY+kFO4Vtz7U1DR9YY0wAePiib4SOLLKrS3UhHh4WwE9GV
bX/SL6PpqBXGAJyzlGaBPK7p7Hfr5MBLjpUBU78WnpkkJYZEWZq4EW4hpyWLsbb2AQdSDJc/WGaJ
EmQ8K4IpLI5xuk7dFMXmNxRvnli+xF0ddtmA4PBfVtITMY27oFDVfKS0pxnnOVw+53xgZ6GMCgwC
fUgVLCWZRZLrVA83WCrQblaLgF40SHZRoz8GVI1TrvBPsxCe/gA060JcmMPfioyXy3s3PWDx6iPh
KsOrlKGlAydGSH2HHYlGYwouhhzx45XiHdyLrSuYhEpp7oUQScOk074Zos0acom5iBmNHt4NAAO6
BojYbWtIizWJtAEoBE/7

skr commented on 2023-10-17 08:51 (UTC) (edited on 2023-10-17 08:52 (UTC) by skr)

Hi, First of, thanks for the package! I get the following error, it happens when running the relocator:


######## Execution of Pre/Post Installation Tasks Failed ########
Warning: AMD software was installed successfully, but an unexpected status was returned from the following post installation task(s) QEMU Xilinx installer version 2023.1 ==================================== You are about to install the SDK to "/run/media/USER/C2E8CB98E8DD/Vivado/vitis/pkg/vitis/opt/Xilinx/Vitis/2023.1/data/emulation/qemu/comp/qemu". Proceed [Y/n]? Y Extracting SDK....................done Setting it up...Could not open /run/media/USER/C2E8CB98E8DD/Vivado/vitis/pkg/vitis/opt/Xilinx/Vitis/2023.1/data/emulation/qemu/comp/qemu/sysroots/x86_64-petalinux-linux/etc/ld.so.cache: Permission denied(13) SDK could not be set up. Relocate script failed. Abort! 
INFO  - Installation completed successfully.For the complete setting to use Versal ACAP tools, please run the script "installLibs.sh" under /run/media/USER/C2E8CB98E8DD/Vivado/vitis/pkg/vitis/opt/Xilinx/Vitis/2023.1/scripts, which requires the root privilege. 

Could not open /run/media/USER/C2E8CB98E8DD/Vivado/vitis/pkg/vitis/opt/Xilinx/Vitis/2023.1/data/emulation/qemu/comp/qemu/sysroots/x86_64-petalinux-linux/etc/ld.so.cache: Permission denied(13)
==> ERROR: A failure occurred in package().
    Aborting...
error: failed to build 'vitis-2023.1-2': 
error: packages failed to build: vitis-2023.1-2

Also, at the beginning I get notified that


==> Entering fakeroot environment...
==> Starting package()...
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

Thanks!

Freed commented on 2023-06-27 02:28 (UTC)

==> WARNING: Package contains reference to $pkgdir
opt/Xilinx/Vitis/2023.1/data/emulation/qemu/comp/qemu/sysroots/x86_64-petalinux-linux/lib/libc.so.6
opt/Xilinx/Vitis/2023.1/data/emulation/qemu/comp/qemu/sysroots/x86_64-petalinux-linux/lib/ld-linux-x86-64.so.2
opt/Xilinx/Vitis/2023.1/data/emulation/qemu/comp/qemu/sysroots/x86_64-petalinux-linux/sbin/ldconfig