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

Ubuntu 24.04 compilation failure #2570

Closed
faveoled opened this issue Dec 11, 2024 · 2 comments
Closed

Ubuntu 24.04 compilation failure #2570

faveoled opened this issue Dec 11, 2024 · 2 comments

Comments

@faveoled
Copy link
Contributor

Describe the bug

$ make
<omitted>
[ 18%] Building CXX object libs/vtextedit/libs/sonnet/src/core/CMakeFiles/sonnet-core.dir/speller.cpp.o
[ 18%] Building CXX object libs/vtextedit/libs/sonnet/src/core/CMakeFiles/sonnet-core.dir/spellerplugin.cpp.o
[ 18%] Building CXX object libs/vtextedit/libs/sonnet/src/core/CMakeFiles/sonnet-core.dir/textbreaks.cpp.o
[ 19%] Building CXX object libs/vtextedit/libs/sonnet/src/core/CMakeFiles/sonnet-core.dir/tokenizer.cpp.o
[ 19%] Linking CXX static library libsonnet-core.a
[ 19%] Built target sonnet-core
[ 19%] Built target gentrigrams_autogen_timestamp_deps
[ 19%] Automatic MOC and UIC for target gentrigrams
[ 19%] Built target gentrigrams_autogen
[ 19%] Building CXX object libs/vtextedit/libs/sonnet/data/CMakeFiles/gentrigrams.dir/gentrigrams_autogen/mocs_compilation.cpp.o
[ 19%] Building CXX object libs/vtextedit/libs/sonnet/data/CMakeFiles/gentrigrams.dir/gentrigrams/gentrigrams.cpp.o
[ 19%] Linking CXX executable gentrigrams
/usr/bin/ld: cannot open output file gentrigrams: Is a directory
collect2: error: ld returned 1 exit status
make[2]: *** [libs/vtextedit/libs/sonnet/data/CMakeFiles/gentrigrams.dir/build.make:125: libs/vtextedit/libs/sonnet/data/gentrigrams] Error 1
make[1]: *** [CMakeFiles/Makefile2:919: libs/vtextedit/libs/sonnet/data/CMakeFiles/gentrigrams.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

To Reproduce
Steps to reproduce the behavior:

sudo apt update
sudo apt install cmake libxkbcommon-dev libxkbfile-dev qt6-base-dev qt6-webengine-dev libqt6core5compat6-dev linguist-qt6 qt6-tools-dev
git clone --recursive https://github.com/vnotex/vnote
cd vnote
git checkout -b v3.18.2
cmake .
make

Expected behavior
App compiles without errors.

@faveoled
Copy link
Contributor Author

faveoled commented Feb 9, 2025

Workaround:

mv libs/vtextedit/libs/sonnet/data/gentrigrams/gentrigrams.cpp libs/vtextedit/libs/sonnet/data/
rm -rf libs/vtextedit/libs/sonnet/data/gentrigrams
mv libs/vtextedit/libs/sonnet/data/parsetrigrams/parsetrigrams.cpp libs/vtextedit/libs/sonnet/data/
rm -rf libs/vtextedit/libs/sonnet/data/parsetrigrams 
echo -n 'LS0tIDx1bm5hbWVkPgorKysgPHVubmFtZWQ+CkBAIC0xNiw3ICsxNiw3IEBACiBlbmRpZigpCiAKIGFkZF9leGVjdXRhYmxlKGdlbnRyaWdyYW1zCi0gICAgZ2VudHJpZ3JhbXMvZ2VudHJpZ3JhbXMuY3BwCisgICAgZ2VudHJpZ3JhbXMuY3BwCiApCiB0YXJnZXRfY29tcGlsZV9kZWZpbml0aW9ucyhnZW50cmlncmFtcyBQUklWQVRFCiAgICAgU09OTkVUQ09SRV9TVEFUSUNfREVGSU5FCkBAIC0zMSw3ICszMSw3IEBACiApCiAKIGFkZF9leGVjdXRhYmxlKHBhcnNldHJpZ3JhbXMKLSAgICBwYXJzZXRyaWdyYW1zL3BhcnNldHJpZ3JhbXMuY3BwCisgICAgcGFyc2V0cmlncmFtcy5jcHAKICkKIAogdGFyZ2V0X2xpbmtfbGlicmFyaWVzKHBhcnNldHJpZ3JhbXMgUFJJVkFURQoK' | base64 --decode > trigrams.patch
patch libs/vtextedit/libs/sonnet/data/CMakeLists.txt trigrams.patch 
rm trigrams.patch

@tamlok
Copy link
Member

tamlok commented Feb 11, 2025

Sorry for the late response.

Should have fixed it: b462337

It is caused by the dir name being conflicted with the generated bin name.

@tamlok tamlok closed this as completed Feb 11, 2025
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

2 participants