* Cmake build failure
@ 2015-04-27 17:23 Andreas Enge
2015-04-28 3:06 ` 宋文武
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Enge @ 2015-04-27 17:23 UTC (permalink / raw)
To: guix-devel
Hello,
cmake in core-updates currently fails one test:
http://hydra.gnu.org/eval/103918?full=1
The culprit seems to be a linking problem:
root@debian:/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities# source ../../../environment-variables
root@debian:/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3# ldd testbundleutils1
linux-vdso.so.1 (0x00007fff5abf0000)
libshared.so => not found
libframework.so => not found
libdl.so.2 => /gnu/store/hy2hi0zj5hrqkmkhpdxf04c9bcnlnsf9-glibc-2.21/lib/libdl.so.2 (0x00007fba29be8000)
libstdc++.so.6 => /tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/libstdc++.so.6 (0x00007fba298e6000)
libm.so.6 => /tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/libm.so.6 (0x00007fba295e4000)
libgcc_s.so.1 => /tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/libgcc_s.so.1 (0x00007fba293ce000)
libc.so.6 => /tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/libc.so.6 (0x00007fba2902e000)
/gnu/store/hy2hi0zj5hrqkmkhpdxf04c9bcnlnsf9-glibc-2.21/lib/ld-linux-x86-64.so.2 (0x00007fba29dec000)
Could someone with more knowledge look into this? Thanks in advance!
Andreas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cmake build failure
2015-04-27 17:23 Cmake build failure Andreas Enge
@ 2015-04-28 3:06 ` 宋文武
2015-04-28 6:36 ` 宋文武
0 siblings, 1 reply; 4+ messages in thread
From: 宋文武 @ 2015-04-28 3:06 UTC (permalink / raw)
To: Andreas Enge, guix-devel
[-- Attachment #1: Type: text/plain, Size: 1384 bytes --]
Andreas Enge <andreas@enge.fr> writes:
> Hello,
>
> cmake in core-updates currently fails one test:
> http://hydra.gnu.org/eval/103918?full=1
>
> The culprit seems to be a linking problem:
> root@debian:/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities# source ../../../environment-variables
> root@debian:/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3# ldd testbundleutils1
> linux-vdso.so.1 (0x00007fff5abf0000)
> libshared.so => not found
> libframework.so => not found
> libdl.so.2 => /gnu/store/hy2hi0zj5hrqkmkhpdxf04c9bcnlnsf9-glibc-2.21/lib/libdl.so.2 (0x00007fba29be8000)
> libstdc++.so.6 => /tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/libstdc++.so.6 (0x00007fba298e6000)
> libm.so.6 => /tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/libm.so.6 (0x00007fba295e4000)
> libgcc_s.so.1 => /tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/libgcc_s.so.1 (0x00007fba293ce000)
> libc.so.6 => /tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/libc.so.6 (0x00007fba2902e000)
> /gnu/store/hy2hi0zj5hrqkmkhpdxf04c9bcnlnsf9-glibc-2.21/lib/ld-linux-x86-64.so.2 (0x00007fba29dec000)
>
Ok, I run the BundleUtilities test using a normal user
(root will just passed!) by hand.
On master:
[-- Attachment #2: master-cmake-bundle-utilities.log --]
[-- Type: application/octet-stream, Size: 16626 bytes --]
UpdateCTestConfiguration from :/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/DartConfiguration.tcl
UpdateCTestConfiguration from :/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/DartConfiguration.tcl
Test project /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph...
Checking test dependency graph end
test 50
Start 50: BundleUtilities
50: Test command: /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/bin/ctest "--build-and-test" "/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities" "/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities" "--build-generator" "Unix Makefiles" "--build-project" "BundleUtilities" "--build-options" "-DCMAKE_MAKE_PROGRAM:FILEPATH=/gnu/store/d3shpczg1m1xb5y8vhf1aq48hwhffvda-make-4.1/bin/make"
50: Test timeout computed to be: 9.99988e+06
50: Internal cmake changing into directory: /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities
50: ======== CMake output ======
50: Configuring
50: Configuring done
50: Generating
50: Generating done
50: Build files have been written to: /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities
50: ======== End CMake output ======
50: Change Dir: /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities
50:
50: Run Clean Command:"/gnu/store/d3shpczg1m1xb5y8vhf1aq48hwhffvda-make-4.1/bin/make" "clean"
50:
50: Run Build Command:"/gnu/store/d3shpczg1m1xb5y8vhf1aq48hwhffvda-make-4.1/bin/make"
50: [ 14%] Building CXX object CMakeFiles/framework.dir/framework.cpp.o
50: Linking CXX shared library libframework.so
50: [ 14%] Built target framework
50: [ 28%] Building CXX object CMakeFiles/shared2.dir/shared2.cpp.o
50: Linking CXX shared library libshared2.so
50: [ 28%] Built target shared2
50: [ 42%] Building CXX object CMakeFiles/module1.dir/module.cpp.o
50: Linking CXX shared module module1.so
50: [ 42%] Built target module1
50: [ 57%] Building CXX object CMakeFiles/module2.dir/module.cpp.o
50: Linking CXX shared module module2.so
50: [ 57%] Built target module2
50: [ 71%] Building CXX object CMakeFiles/shared.dir/shared.cpp.o
50: Linking CXX shared library libshared.so
50: [ 71%] Built target shared
50: [ 85%] Building CXX object CMakeFiles/testbundleutils1.dir/testbundleutils1.cpp.o
50: Linking CXX executable testbundleutils1
50: [ 85%] Built target testbundleutils1
50: INPUT = /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testbundleutils1
50: MODULE = /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/module1.so
50: INPUTDIR = /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities
50: OUTPUTDIR = /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1
50: OUTPUT = /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/testbundleutils1
50: OUTPUTMODULE = /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/module1.so
50: -- fixup_bundle
50: -- app='/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/testbundleutils1'
50: -- libs='/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/module1.so'
50: -- dirs='/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities'
50: -- fixup_bundle: preparing...
50: --
50: warning: cannot resolve item 'libgcc_s.so.1'
50:
50: possible problems:
50: need more directories?
50: need to use InstallRequiredSystemLibraries?
50: run in install tree instead of build tree?
50:
50: -- warning: gp_resolved_file_type non-absolute file 'libgcc_s.so.1' returning type 'other' -- possibly incorrect
50: --
50: warning: cannot resolve item 'libgcc_s.so.1'
50:
50: possible problems:
50: need more directories?
50: need to use InstallRequiredSystemLibraries?
50: run in install tree instead of build tree?
50:
50: warning: target 'libgcc_s.so.1' is not absolute...
50: warning: target 'libgcc_s.so.1' does not exist...
50: ldd: ./libgcc_s.so.1: No such file or directory
50: ldd: warning: you do not have execution permission for `/gnu/store/y2j25rpq8ddwn3rxj2ay750gzl8cjg5l-gcc-4.8.4-lib/lib/libgcc_s.so.1'
50: --
50: warning: cannot resolve item 'libgcc_s.so.1'
50:
50: possible problems:
50: need more directories?
50: need to use InstallRequiredSystemLibraries?
50: run in install tree instead of build tree?
50:
50: -- warning: gp_resolved_file_type non-absolute file 'libgcc_s.so.1' returning type 'other' -- possibly incorrect
50: --
50: warning: cannot resolve item 'libgcc_s.so.1'
50:
50: possible problems:
50: need more directories?
50: need to use InstallRequiredSystemLibraries?
50: run in install tree instead of build tree?
50:
50: warning: target 'libgcc_s.so.1' is not absolute...
50: warning: target 'libgcc_s.so.1' does not exist...
50: ldd: ./libgcc_s.so.1: No such file or directory
50: ldd: warning: you do not have execution permission for `/gnu/store/y2j25rpq8ddwn3rxj2ay750gzl8cjg5l-gcc-4.8.4-lib/lib/libgcc_s.so.1'
50: -- fixup_bundle: copying...
50: -- 1/20: *NOT* copying '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/testbundleutils1'
50: -- 2/20: *NOT* copying '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/module1.so'
50: -- 3/20: copying '/gnu/store/0n7i54xn8fd81vh3qidlzrkgz3x59mkn-glibc-2.21/lib/libc.so.6'
50: -- 4/20: copying '/gnu/store/0n7i54xn8fd81vh3qidlzrkgz3x59mkn-glibc-2.21/lib/libm.so.6'
50: -- 5/20: copying '/gnu/store/y2j25rpq8ddwn3rxj2ay750gzl8cjg5l-gcc-4.8.4-lib/lib/libgcc_s.so.1'
50: -- 6/20: copying '/gnu/store/y2j25rpq8ddwn3rxj2ay750gzl8cjg5l-gcc-4.8.4-lib/lib/libstdc++.so.6'
50: -- 7/20: copying '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/libshared2.so'
50: -- Removed runtime path from "/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/libshared2.so"
50: -- 8/20: copying '/gnu/store/0n7i54xn8fd81vh3qidlzrkgz3x59mkn-glibc-2.21/lib/libdl.so.2'
50: -- 9/20: copying '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/libframework.so'
50: -- Removed runtime path from "/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/libframework.so"
50: -- 10/20: copying '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/libshared.so'
50: -- Removed runtime path from "/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/libshared.so"
50: -- fixup_bundle: fixing...
50: -- 11/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/testbundleutils1'
50: -- 12/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/module1.so'
50: -- 13/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/libc.so.6'
50: -- 14/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/libm.so.6'
50: -- 15/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/libgcc_s.so.1'
50: -- 16/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/libstdc++.so.6'
50: -- 17/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/libshared2.so'
50: -- 18/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/libdl.so.2'
50: -- 19/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/libframework.so'
50: -- 20/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/libshared.so'
50: -- fixup_bundle: cleaning up...
50: -- fixup_bundle: verifying...
50: -- ===========================================================================
50: -- Analyzing app='/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/testbundleutils1'
50: -- bundle='/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1'
50: -- executable='/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/testbundleutils1'
50: -- valid='1'
50: -- executable file 1: /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/testbundleutils1
50: ldd: warning: you do not have execution permission for `/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/libgcc_s.so.1'
50: -- verified='1'
50: -- info='Verified 1 executable files in '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1''
50: --
50: -- verified='1'
50: -- info=''
50: --
50: -- fixup_bundle: done
50: Executing /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1/testbundleutils1 in /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir1
50: [ 85%] Built target testbundleutils1_test
50: [100%] Building CXX object CMakeFiles/testbundleutils2.dir/testbundleutils2.cpp.o
50: Linking CXX executable testbundleutils2
50: [100%] Built target testbundleutils2
50: INPUT = /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testbundleutils2
50: MODULE = /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/module2.so
50: INPUTDIR = /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities
50: OUTPUTDIR = /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2
50: OUTPUT = /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/testbundleutils2
50: OUTPUTMODULE = /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/module2.so
50: -- fixup_bundle
50: -- app='/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/testbundleutils2'
50: -- libs='/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/module2.so'
50: -- dirs='/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities'
50: -- fixup_bundle: preparing...
50: --
50: warning: cannot resolve item 'libgcc_s.so.1'
50:
50: possible problems:
50: need more directories?
50: need to use InstallRequiredSystemLibraries?
50: run in install tree instead of build tree?
50:
50: -- warning: gp_resolved_file_type non-absolute file 'libgcc_s.so.1' returning type 'other' -- possibly incorrect
50: --
50: warning: cannot resolve item 'libgcc_s.so.1'
50:
50: possible problems:
50: need more directories?
50: need to use InstallRequiredSystemLibraries?
50: run in install tree instead of build tree?
50:
50: warning: target 'libgcc_s.so.1' is not absolute...
50: warning: target 'libgcc_s.so.1' does not exist...
50: ldd: ./libgcc_s.so.1: No such file or directory
50: ldd: warning: you do not have execution permission for `/gnu/store/y2j25rpq8ddwn3rxj2ay750gzl8cjg5l-gcc-4.8.4-lib/lib/libgcc_s.so.1'
50: --
50: warning: cannot resolve item 'libgcc_s.so.1'
50:
50: possible problems:
50: need more directories?
50: need to use InstallRequiredSystemLibraries?
50: run in install tree instead of build tree?
50:
50: -- warning: gp_resolved_file_type non-absolute file 'libgcc_s.so.1' returning type 'other' -- possibly incorrect
50: --
50: warning: cannot resolve item 'libgcc_s.so.1'
50:
50: possible problems:
50: need more directories?
50: need to use InstallRequiredSystemLibraries?
50: run in install tree instead of build tree?
50:
50: warning: target 'libgcc_s.so.1' is not absolute...
50: warning: target 'libgcc_s.so.1' does not exist...
50: ldd: ./libgcc_s.so.1: No such file or directory
50: ldd: warning: you do not have execution permission for `/gnu/store/y2j25rpq8ddwn3rxj2ay750gzl8cjg5l-gcc-4.8.4-lib/lib/libgcc_s.so.1'
50: -- fixup_bundle: copying...
50: -- 1/20: *NOT* copying '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/testbundleutils2'
50: -- 2/20: *NOT* copying '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/module2.so'
50: -- 3/20: copying '/gnu/store/0n7i54xn8fd81vh3qidlzrkgz3x59mkn-glibc-2.21/lib/libc.so.6'
50: -- 4/20: copying '/gnu/store/0n7i54xn8fd81vh3qidlzrkgz3x59mkn-glibc-2.21/lib/libm.so.6'
50: -- 5/20: copying '/gnu/store/y2j25rpq8ddwn3rxj2ay750gzl8cjg5l-gcc-4.8.4-lib/lib/libgcc_s.so.1'
50: -- 6/20: copying '/gnu/store/y2j25rpq8ddwn3rxj2ay750gzl8cjg5l-gcc-4.8.4-lib/lib/libstdc++.so.6'
50: -- 7/20: copying '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/libshared2.so'
50: -- Removed runtime path from "/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/libshared2.so"
50: -- 8/20: copying '/gnu/store/0n7i54xn8fd81vh3qidlzrkgz3x59mkn-glibc-2.21/lib/libdl.so.2'
50: -- 9/20: copying '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/libframework.so'
50: -- Removed runtime path from "/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/libframework.so"
50: -- 10/20: copying '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/libshared.so'
50: -- Removed runtime path from "/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/libshared.so"
50: -- fixup_bundle: fixing...
50: -- 11/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/testbundleutils2'
50: -- 12/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/module2.so'
50: -- 13/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/libc.so.6'
50: -- 14/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/libm.so.6'
50: -- 15/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/libgcc_s.so.1'
50: -- 16/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/libstdc++.so.6'
50: -- 17/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/libshared2.so'
50: -- 18/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/libdl.so.2'
50: -- 19/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/libframework.so'
50: -- 20/20: fix-up not required on this platform '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/libshared.so'
50: -- fixup_bundle: cleaning up...
50: -- fixup_bundle: verifying...
50: -- ===========================================================================
50: -- Analyzing app='/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/testbundleutils2'
50: -- bundle='/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2'
50: -- executable='/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/testbundleutils2'
50: -- valid='1'
50: -- executable file 1: /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/testbundleutils2
50: ldd: warning: you do not have execution permission for `/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/libgcc_s.so.1'
50: -- verified='1'
50: -- info='Verified 1 executable files in '/var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2''
50: --
50: -- verified='1'
50: -- info=''
50: --
50: -- fixup_bundle: done
50: Executing /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2/testbundleutils2 in /var/tmp/nix-build-cmake-3.1.3.drv-1/cmake-3.1.3/Tests/BundleUtilities/testdir2
50: [100%] Built target testbundleutils2_test
1/1 Test #50: BundleUtilities .................. Passed 5.94 sec
The following tests passed:
BundleUtilities
100% tests passed, 0 tests failed out of 1
Total Test time (real) = 6.01 sec
[-- Attachment #3: Type: text/plain, Size: 18 bytes --]
On core-updates:
[-- Attachment #4: core-updates-cmake-bundle-utilities.log --]
[-- Type: application/octet-stream, Size: 5519 bytes --]
UpdateCTestConfiguration from :/var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/DartConfiguration.tcl
UpdateCTestConfiguration from :/var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/DartConfiguration.tcl
Test project /var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph...
Checking test dependency graph end
test 50
Start 50: BundleUtilities
50: Test command: /var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/bin/ctest "--build-and-test" "/var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities" "/var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities" "--build-generator" "Unix Makefiles" "--build-project" "BundleUtilities" "--build-options" "-DCMAKE_MAKE_PROGRAM:FILEPATH=/gnu/store/mk0hy0cfn1hby6z1b65f4qbmcaxkdrsw-make-4.1/bin/make"
50: Test timeout computed to be: 9.99988e+06
50: Internal cmake changing into directory: /var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities
50: ======== CMake output ======
50: Configuring
50: Configuring done
50: Generating
50: Generating done
50: Build files have been written to: /var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities
50: ======== End CMake output ======
50: Change Dir: /var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities
50:
50: Run Clean Command:"/gnu/store/mk0hy0cfn1hby6z1b65f4qbmcaxkdrsw-make-4.1/bin/make" "clean"
50:
50: Run Build Command:"/gnu/store/mk0hy0cfn1hby6z1b65f4qbmcaxkdrsw-make-4.1/bin/make"
50: [ 14%] Building CXX object CMakeFiles/framework.dir/framework.cpp.o
50: Linking CXX shared library libframework.so
50: [ 14%] Built target framework
50: [ 28%] Building CXX object CMakeFiles/shared2.dir/shared2.cpp.o
50: Linking CXX shared library libshared2.so
50: [ 28%] Built target shared2
50: [ 42%] Building CXX object CMakeFiles/module1.dir/module.cpp.o
50: Linking CXX shared module module1.so
50: [ 42%] Built target module1
50: [ 57%] Building CXX object CMakeFiles/module2.dir/module.cpp.o
50: Linking CXX shared module module2.so
50: [ 57%] Built target module2
50: [ 71%] Building CXX object CMakeFiles/shared.dir/shared.cpp.o
50: Linking CXX shared library libshared.so
50: [ 71%] Built target shared
50: [ 85%] Building CXX object CMakeFiles/testbundleutils1.dir/testbundleutils1.cpp.o
50: Linking CXX executable testbundleutils1
50: [ 85%] Built target testbundleutils1
50: INPUT = /var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testbundleutils1
50: MODULE = /var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/module1.so
50: INPUTDIR = /var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities
50: OUTPUTDIR = /var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1
50: OUTPUT = /var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/testbundleutils1
50: OUTPUTMODULE = /var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/module1.so
50: -- fixup_bundle
50: -- app='/var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/testbundleutils1'
50: -- libs='/var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/module1.so'
50: -- dirs='/var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities'
50: -- fixup_bundle: preparing...
50: ldd: warning: you do not have execution permission for `/gnu/store/rsw0dkmv1x2krv9pl1ciai1h235r9nb7-gcc-4.8.4-lib/lib/libgcc_s.so.1'
50: ldd: warning: you do not have execution permission for `/gnu/store/rsw0dkmv1x2krv9pl1ciai1h235r9nb7-gcc-4.8.4-lib/lib/libgcc_s.so.1'
50: -- fixup_bundle: copying...
50: -- 1/20: *NOT* copying '/var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/testbundleutils1'
50: -- 2/20: *NOT* copying '/var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/module1.so'
50: -- 3/20: copying '/gnu/store/hy2hi0zj5hrqkmkhpdxf04c9bcnlnsf9-glibc-2.21/lib/libc.so.6'
50: -- 4/20: copying '/gnu/store/hy2hi0zj5hrqkmkhpdxf04c9bcnlnsf9-glibc-2.21/lib/libm.so.6'
50: -- 5/20: copying '/gnu/store/rsw0dkmv1x2krv9pl1ciai1h235r9nb7-gcc-4.8.4-lib/lib/libgcc_s.so.1'
50: -- 6/20: copying '/gnu/store/rsw0dkmv1x2krv9pl1ciai1h235r9nb7-gcc-4.8.4-lib/lib/libstdc++.so.6'
50: CMake Error at /var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Modules/BundleUtilities.cmake:619 (file):
50: file RPATH_REMOVE could not remove RPATH from file:
50:
50: /var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/libstdc++.so.6
50:
50: Error opening file for update.
50: Call Stack (most recent call first):
50: /var/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Modules/BundleUtilities.cmake:828 (copy_resolved_item_into_bundle)
50: bundleutils.cmake:37 (fixup_bundle)
50:
50:
50: CMakeFiles/testbundleutils1_test.dir/build.make:50: recipe for target 'CMakeFiles/testbundleutils1_test' failed
50: CMakeFiles/Makefile2:272: recipe for target 'CMakeFiles/testbundleutils1_test.dir/all' failed
50: Makefile:76: recipe for target 'all' failed
50: make[2]: *** [CMakeFiles/testbundleutils1_test] Error 1
50: make[1]: *** [CMakeFiles/testbundleutils1_test.dir/all] Error 2
50: make: *** [all] Error 2
1/1 Test #50: BundleUtilities ..................***Failed 3.69 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 3.76 sec
The following tests FAILED:
50 - BundleUtilities (Failed)
[-- Attachment #5: Type: text/plain, Size: 256 bytes --]
And do some search, I find this:
http://public.kitware.com/Bug/view.php?id=9284
It copy libraries from store, failed to modify the rpath for them?
So, set "BU_CHMOD_BUNDLE_ITEMS" will do the trick.
Do we need to set it globally in cmake-build-system?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cmake build failure
2015-04-28 3:06 ` 宋文武
@ 2015-04-28 6:36 ` 宋文武
2015-04-28 15:13 ` Andreas Enge
0 siblings, 1 reply; 4+ messages in thread
From: 宋文武 @ 2015-04-28 6:36 UTC (permalink / raw)
To: Andreas Enge, guix-devel
> Andreas Enge <andreas@enge.fr> writes:
>
>> Hello,
>>
>> cmake in core-updates currently fails one test:
>> http://hydra.gnu.org/eval/103918?full=1
>>
>> The culprit seems to be a linking problem:
>> root@debian:/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities# source ../../../environment-variables
>> root@debian:/tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3# ldd testbundleutils1
>> linux-vdso.so.1 (0x00007fff5abf0000)
>> libshared.so => not found
>> libframework.so => not found
>> libdl.so.2 => /gnu/store/hy2hi0zj5hrqkmkhpdxf04c9bcnlnsf9-glibc-2.21/lib/libdl.so.2 (0x00007fba29be8000)
>> libstdc++.so.6 => /tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/libstdc++.so.6 (0x00007fba298e6000)
>> libm.so.6 => /tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/libm.so.6 (0x00007fba295e4000)
>> libgcc_s.so.1 => /tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/libgcc_s.so.1 (0x00007fba293ce000)
>> libc.so.6 => /tmp/nix-build-cmake-3.1.3.drv-0/cmake-3.1.3/Tests/BundleUtilities/testdir1/libc.so.6 (0x00007fba2902e000)
>> /gnu/store/hy2hi0zj5hrqkmkhpdxf04c9bcnlnsf9-glibc-2.21/lib/ld-linux-x86-64.so.2 (0x00007fba29dec000)
I think we can safely disable this test..
The bundle feature is used to pack a standalong app
with dependencies, libraries are included with RPATH removed.
But we also modify the 'ld' interpreter, so it not usable for us.
I'll push a patch to disable the test (and update to 3.2.2) soon.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cmake build failure
2015-04-28 6:36 ` 宋文武
@ 2015-04-28 15:13 ` Andreas Enge
0 siblings, 0 replies; 4+ messages in thread
From: Andreas Enge @ 2015-04-28 15:13 UTC (permalink / raw)
To: 宋文武; +Cc: guix-devel
On Tue, Apr 28, 2015 at 02:36:51PM +0800, 宋文武 wrote:
> I think we can safely disable this test..
> The bundle feature is used to pack a standalong app
> with dependencies, libraries are included with RPATH removed.
> But we also modify the 'ld' interpreter, so it not usable for us.
> I'll push a patch to disable the test (and update to 3.2.2) soon.
Okay, thanks for looking into this!
Andreas
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-04-28 15:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-27 17:23 Cmake build failure Andreas Enge
2015-04-28 3:06 ` 宋文武
2015-04-28 6:36 ` 宋文武
2015-04-28 15:13 ` Andreas Enge
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.