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

ld: cannot find -lstdc++fs compile error #1633

Closed
Eonfge opened this issue Dec 21, 2023 · 8 comments
Closed

ld: cannot find -lstdc++fs compile error #1633

Eonfge opened this issue Dec 21, 2023 · 8 comments

Comments

@Eonfge
Copy link
Contributor

Eonfge commented Dec 21, 2023

SLADE Version: 3.2.5
Operating System: Linux Flatpak

Issue Details:

/usr/lib/gcc/x86_64-unknown-linux-gnu/13.2.0/../../../../x86_64-unknown-linux-gnu/bin/ld: cannot find -lstdc++fs: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/slade.dir/build.make:4807: slade] Error 1
make[1]: *** [CMakeFiles/Makefile2:214: src/CMakeFiles/slade.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

flathub/net.mancubus.SLADE#65

@sirjuddington
Copy link
Owner

Hmm what happens if you comment out the following:

target_link_libraries(slade -lstdc++fs)

@Eonfge
Copy link
Contributor Author

Eonfge commented Dec 21, 2023

we have progressed!

FB: Running 'flatpak build --die-with-parent --env=FLATPAK_BUILDER_BUILDDIR=/run/build/slade --nofilesystem=host:reset --filesystem=/srv/buildbot/worker/build-x86_64-7/build/.flatpak-builder/build/slade-1 --bind-mount=/run/build/slade=/srv/buildbot/worker/build-x86_64-7/build/.flatpak-builder/build/slade-1 --build-dir=/run/build/slade --bind-mount=/run/ccache=/srv/buildbot/worker/build-x86_64-7/build/.flatpak-builder/ccache --unshare=network --env=SOURCE_DATE_EPOCH=1703154354 '--env=CFLAGS=-O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer ' '--env=CXXFLAGS=-O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer ' '--env=LDFLAGS=-L/app/lib -Wl,-z,relro,-z,now -Wl,--as-needed ' --env=CCACHE_DIR=/run/ccache/disabled --env=PATH=/app/bin:/usr/bin --env=LD_LIBRARY_PATH=/app/lib --env=PKG_CONFIG_PATH=/app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig --env=FLATPAK_BUILDER_N_JOBS=64 /srv/buildbot/worker/build-x86_64-7/build/.flatpak-builder/rofiles/rofiles-FjWbXR make install' on host
[  6%] Built target lunasvg
[  7%] Built target fmt
[ 31%] Built target external
[100%] Built target slade
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /app/bin/slade
CMake Error at src/cmake_install.cmake:67 (file):
  file INSTALL cannot find "/run/build/slade/slade.pk3": No such file or
  directory.
Call Stack (most recent call first):
  cmake_install.cmake:47 (include)
make: *** [Makefile:100: install] Error 1

@sirjuddington
Copy link
Owner

Oh, you need to enable BUILD_PK3 when configuring cmake now

@Eonfge
Copy link
Contributor Author

Eonfge commented Dec 21, 2023

You sure, I tried both;

[1/2] Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /app/bin/slade
CMake Error at src/cmake_install.cmake:67 (file):
  file INSTALL cannot find "/run/build/slade/slade.pk3": No such file or
  directory.
Call Stack (most recent call first):
  cmake_install.cmake:47 (include)
FAILED: CMakeFiles/install.util 
cd /run/build/slade && /usr/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.
FB: host_command_exited_cb 3390135 256

https://github.com/flathub/net.mancubus.SLADE/pull/65/files

@sirjuddington
Copy link
Owner

Hmm not sure, is it building the pk3 at all? I did change where it puts it but that should be in Windows only.

@Eonfge
Copy link
Contributor Author

Eonfge commented Dec 22, 2023

It does make the file, by the looks of it:

https://buildbot.flathub.org/#/builders/26/builds/11025/steps/7/logs/stdio

@sirjuddington
Copy link
Owner

Oh, I think it might be to do with 6abd8c3 - I just added a new 3.2.5a tag, does it work using that?

@charlesthobe
Copy link
Contributor

Should be closed with: #1637
I apologize for not tagging the issue in the PR so it would be closed automatically when merged.

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