figma-linux icon indicating copy to clipboard operation
figma-linux copied to clipboard

/opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found

Open exdeniz opened this issue 3 years ago • 9 comments

figma-linux 0.7.4 from AUR

MESA-LOADER: failed to open radeonsi: /opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/radeonsi_dri.so) (search paths /usr/lib/dri)
failed to load driver: radeonsi
MESA-LOADER: failed to open kms_swrast: /opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/kms_swrast_dri.so) (search paths /usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri)
failed to load swrast driver
libEGL warning: MESA-LOADER: failed to open radeonsi: /opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/radeonsi_dri.so) (search paths /usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast: /opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri)

MESA-LOADER: failed to open radeonsi: /opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/radeonsi_dri.so) (search paths /usr/lib/dri)
failed to load driver: radeonsi
MESA-LOADER: failed to open kms_swrast: /opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/kms_swrast_dri.so) (search paths /usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /opt/figma-linux/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri)
failed to load swrast driver

Fixed delete /opt/figma-linux/libstdc++.so.6 and create symlink from /usr/lub/libstdc++.so.6. After OpenGL work fine.

exdeniz avatar May 27 '21 16:05 exdeniz

I just delete that file and no more lags on opened document.

XEmpty avatar May 30 '21 15:05 XEmpty

The useless and problematic files are:

  • libstdc++.so.6
  • libm.so.6
  • libpng16.so.16
  • libz.so.1
  • libvulkan.so.1
  • the whole lib directory
  • the whole usr directory

For cleanness' sake, the package could also omit the icons folder, since all icons should be moved to the appropriate location.

The PKGBUILD should have some instructions that strip them before packaging the Arch package

EDIT: I looked at the actual package and there are a lot of things that could be dropped! This is insane bloat on the system

NyaomiDEV avatar Jul 07 '21 14:07 NyaomiDEV

This seems to be because they're building the snap in a really poor fashion. Instead of packaging the snap manually, they should delete all of the libraries except for libfreetype.so.6 as to prevent unnecessary (and right now harmful, as it breaks GPU acceleration) inclusion of libraries, and then use electron-builder's snap feature to build Snap packages. The libraries should be packaged by specifying the Ubuntu packages instead of including them in the folder with the program.

Deleting these files does seem to have no effect on the program's operation, at least on Arch.

143mailliw avatar Jul 08 '21 16:07 143mailliw

All in all, it isn't really good to include libs in the repo at all

and the AUR package should be redone for so many reasons, but to cite a few:

  • it downloads a zip and extracts it to /opt (this is okay but the package should've been named figma-linux-bin);
  • it does not care about the system's electron installation (using that reduces package size dramatically);
  • it does not strip unnecessary or out of date libraries, as we saw.

NyaomiDEV avatar Jul 08 '21 17:07 NyaomiDEV

create symlink from /usr/lub/libstdc++.so.6

what does this means?

sudhanshuprasad2002 avatar Feb 07 '22 15:02 sudhanshuprasad2002

i have removed /opt/figma-linux/libstdc++.so.6 this but now don't know what to do next

sudhanshuprasad2002 avatar Feb 07 '22 15:02 sudhanshuprasad2002

I added a post-install hook to remove the list of files in the earlier comment after installation/upgrade:

[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = figma-linux

[Action]
When = PostTransaction
Exec = /bin/sh -c "rm -r /opt/figma-linux/libstdc++.so.6 /opt/figma-linux/libm.so.6 /opt/figma-linux/libpng16.so.16 /opt/figma-linux/libz.so.1 /opt/figma-linux/libvulkan.so.1 /opt/figma-linux/lib/ /opt/figma-linux/usr/"

I've only tested it with installation so far.

mmirus avatar Feb 15 '22 21:02 mmirus

Check new release v0.9.6, that removed libstdc++. Works for me

snarkyalyx avatar Mar 19 '22 20:03 snarkyalyx

Great!

mmirus avatar Mar 21 '22 13:03 mmirus