[SOLVED] Compiling: failed to create symbolic link 'musescore.1.gz': Operation not permitted

• Jan 21, 2022 - 20:49

Ubuntu 20.04.3 LTS
Qt 5.15.2
Trying to compile the source files for the stable release. Latest via GitHub gives same problem.


> make release
[...]
Man pages have been compressed ready for installation.
Creating symlink alias for man pages.
Scanning dependencies of target global_autogen
/usr/bin/ln: failed to create symbolic link 'musescore.1.gz': Operation not permitted
make[3]: *** [CMakeFiles/manpages.dir/build.make:66: manpages] Error 1
make[3]: Leaving directory '[...]/build.release'
make[2]: *** [CMakeFiles/Makefile2:2280: CMakeFiles/manpages.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[...]
make: *** [Makefile:53: release] Error 2


Comments

In reply to by 255

First things first; latest stable is 3.6.2 and the dependencies are different than for the current master source code (to become MS4).

If you're trying to build 3.6.2 (why?) then see https://musescore.org/en/handbook/developers-handbook/compilation/compi…

If you're instead trying to build master, then see https://github.com/musescore/MuseScore/wiki/Compile-on-the-command-line

The former requires Qt5.9 (or 5.12) and indeed uses make (but not the release target! use mscore and install targets!), the latter does indeed require Qt5.15 but does not involve calling make directly.

In reply to by jeetee

GitHub master:

> ./build.cmake
[...]
[ 0%] Automatic MOC and UIC for target gtest
[ 0%] Automatic MOC and UIC for target global
[ 0%] Generating mscore.1.gz
Man pages have been compressed ready for installation.
Creating symlink alias for man pages.
/usr/bin/ln: failed to create symbolic link 'musescore.1.gz': Operation not permitted
make[2]: *** [CMakeFiles/manpages.dir/build.make:67: manpages] Error 1
make[1]: *** [CMakeFiles/Makefile2:1947: CMakeFiles/manpages.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: warning: Clock skew detected. Your build may be incomplete.
[ 0%] Built target gtest_autogen
make[2]: warning: Clock skew detected. Your build may be incomplete.
[ 0%] Built target global_autogen
make: *** [Makefile:141: all] Error 2
CMake Error at build.cmake:249 (message):
Build step failed with status 2. See output above for details.

In reply to by 255

You might need sudo to be able to install the symbolic link for the manpages target. Although I'm again not certain that it should be installing them for a normal dev build, so if you can join in the development chat on discord then someone with an active *nix build system should be able to help you out further.

Do you still have an unanswered question? Please log in first to post your question.