Bug 376303 - Does not build due to too long file names
Summary: Does not build due to too long file names
Status: REPORTED
Alias: None
Product: kajongg
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR grave
Target Milestone: ---
Assignee: Wolfgang Rohdewald
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-10 17:32 UTC by Fabian Vogt
Modified: 2020-11-17 14:39 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Vogt 2017-02-10 17:32:00 UTC
(Using git master)

[   72s] CMake Warning (dev) at cmake-modules/KDEPython.cmake:51 (add_custom_target):
[   72s]   Policy CMP0037 is not set: Target names should not be reserved and should
[   72s]   match a validity pattern.  Run "cmake --help-policy CMP0037" for policy
[   72s]   details.  Use the cmake_policy command to set the policy and suppress this
[   72s]   warning.
[   72s] 
[   72s]   The target name
[   72s]   "src__home_abuild_rpmbuild_BUILD_kajongg-17.03.60git.20170205T040205~88f5711_build_src___pycache___permutations.cpython-35.pyc"
[   72s]   is reserved or not valid for certain CMake features, such as generator
[   72s]   expressions, and may result in undefined behavior.
[   72s] Call Stack (most recent call first):
[   72s]   cmake-modules/KDEPython.cmake:89 (python_install)
[   72s]   CMakeLists.txt:119 (KDE_INSTALL_PYTHON_FILES)

Results in:

[   73s] -- Configuring done
[   73s] CMake Error: Cannot open file for write: /home/abuild/rpmbuild/BUILD/kajongg-17.03.60git.20170205T040205~88f5711/build/CMakeFiles/_home_abuild_rpmbuild_BUILD_kajongg-17.03.60git.20170205T040205~88f5711_build_src__home_abuild_rpmbuild_BUILD_kajongg-17.03.60git.20170205T040205~88f5711_build__home_abuild_rpmbuild_BUILD_kajongg-17.03.60git.20170205T040205~88f5711_build_src___pycache___kdepaths.cpython-35.pyc.dir/build.make.tmp
[   73s] CMake Error: : System Error: File name too long
Comment 1 Rik Mills 2017-04-12 17:18:35 UTC
On kubuntu CI.

16.12.3+git = gitmaster in this case

-- Configuring done
CMake Error: Cannot open file for write: /<<BUILDDIR>>/kajongg-16.12.3+p17.04+git20170411.0936/obj-x86_64-linux-gnu/CMakeFiles/_build_kajongg-GQQMpb_kajongg-16.12.3+p17.04+git20170411.0936_obj-x86_64-linux-gnu_src__build_kajongg-GQQMpb_kajongg-16.12.3+p17.04+git20170411.0936_obj-x86_64-linux-gnu__build_kajongg-GQQMpb_kajongg-16.12.3+p17.04+git20170411.0936_obj-x86_64-linux-gnu_src___pycache___kdepaths.cpython-35.pyc.dir/build.make.tmp
CMake Error: : System Error: File name too long
CMake Error: Could not create /<<BUILDDIR>>/kajongg-16.12.3+p17.04+git20170411.0936/obj-x86_64-linux-gnu/CMakeFiles/_build_kajongg-GQQMpb_kajongg-16.12.3+p17.04+git20170411.0936_obj-x86_64-linux-gnu_src__build_kajongg-GQQMpb_kajongg-16.12.3+p17.04+git20170411.0936_obj-x86_64-linux-gnu__build_kajongg-GQQMpb_kajongg-16.12.3+p17.04+git20170411.0936_obj-x86_64-linux-gnu_src___pycache___kdepaths.cpython-35.pyc.dir/cmake_clean.cmake
CMake Error: Cannot open file for write: /<<BUILDDIR>>/kajongg-16.12.3+p17.04+git20170411.0936/obj-x86_64-linux-gnu/CMakeFiles/_build_kajongg-GQQMpb_kajongg-16.12.3+p17.04+git20170411.0936_obj-x86_64-linux-gnu_src__build_kajongg-GQQMpb_kajongg-16.12.3+p17.04+git20170411.0936_obj-x86_64-linux-gnu__build_kajongg-GQQMpb_kajongg-16.12.3+p17.04+git20170411.0936_obj-x86_64-linux-gnu_src___pycache___kdepaths.cpython-35.pyc.dir/DependInfo.cmake.tmp
CMake Error: : System Error: File name too long
-- Generating done
CMake Error: Cannot open file for write: /<<BUILDDIR>>/kajongg-16.12.3+p17.04+git20170411.0936/obj-x86_64-linux-gnu/CMakeFiles/_build_kajongg-GQQMpb_kajongg-16.12.3+p17.04+git20170411.0936_obj-x86_64-linux-gnu_src__build_kajongg-GQQMpb_kajongg-16.12.3+p17.04+git20170411.0936_obj-x86_64-linux-gnu__build_kajongg-GQQMpb_kajongg-16.12.3+p17.04+git20170411.0936_obj-x86_64-linux-gnu_src___pycache___kdepaths.cpython-35.pyc.dir/progress.make.tmp
CMake Error: : System Error: File name too long
-- Build files have been written to: /<<BUILDDIR>>/kajongg-16.12.3+p17.04+git20170411.0936/obj-x86_64-linux-gnu
	"tail -v -n +0 CMakeCache.txt"
Comment 2 Thiago Sueto 2020-11-02 20:54:08 UTC
Cannot reproduce on current master by normal compilation (git clone then cmake).
Comment 3 Christophe Marin 2020-11-17 14:39:23 UTC
(In reply to Thiago Sueto from comment #2)
> Cannot reproduce on current master by normal compilation (git clone then
> cmake).

That's not enough for testing. as mentioned, the problem occurs with long paths.