CMake 3.5.0-rc1 install is missing dependencies

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

CMake 3.5.0-rc1 install is missing dependencies

Thompson, KT

I downloaded cmake 3.5.0-rc1 to try it out. 

 

The Windows installation doesn’t appear to provide all the required dependencies. ‘cmake-gui’ will not launch and provides the error “Qt5Widgets.dll is missing form your computer.” Do I need to install a specific Qt runtime before installing cmake 3.5? The command line ‘cmake’ will run through the configuration of my projects, but it does not generate any VS solution files.

 

On RHEL 6.7, I extracted the prebuilt x86_64 binaries from the downloaded .tar.gz file.  At the end of the configuration process, cmake issues a segmentation fault and no Makefiles are generated.  Additionally, cmake-gui uses a bad font (all text is displayed as boxes). 

 

Is anyone else encountering these issues with 3.5.0-rc1?

 

-kt

 


--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: CMake 3.5.0-rc1 install is missing dependencies

Robert Maynard
Hi,

I have been able to replicate the problem with the Windows installer
not properly installing the Qt libraries. I have tested the Linux
x86_64 binaries on a Ubuntu 12.04 machine and everything works, but I
will locate a RHEL machine and see if I can replicate your issue.

On Wed, Feb 3, 2016 at 11:19 AM, Thompson, KT <[hidden email]> wrote:

> I downloaded cmake 3.5.0-rc1 to try it out.
>
>
>
> The Windows installation doesn’t appear to provide all the required
> dependencies. ‘cmake-gui’ will not launch and provides the error
> “Qt5Widgets.dll is missing form your computer.” Do I need to install a
> specific Qt runtime before installing cmake 3.5? The command line ‘cmake’
> will run through the configuration of my projects, but it does not generate
> any VS solution files.
>
>
>
> On RHEL 6.7, I extracted the prebuilt x86_64 binaries from the downloaded
> .tar.gz file.  At the end of the configuration process, cmake issues a
> segmentation fault and no Makefiles are generated.  Additionally, cmake-gui
> uses a bad font (all text is displayed as boxes).
>
>
>
> Is anyone else encountering these issues with 3.5.0-rc1?
>
>
>
> -kt
>
>
>
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: CMake 3.5.0-rc1 install is missing dependencies

Brad King
In reply to this post by Thompson, KT
On 02/03/2016 11:19 AM, Thompson, KT wrote:
> The Windows installation doesn’t appear to provide all the
> required dependencies. ‘cmake-gui’ will not launch and provides
> the error “Qt5Widgets.dll is missing form your computer.”

Ugh, after months of working correctly on the nightly binary builds
something happened to go wrong on the packaging machine specifically
for this release build due to an environment change.  I've fixed it
and replaced the binary on the download site for the Windows build.
Please download and try again.

-Brad
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: CMake 3.5.0-rc1 install is missing dependencies

Brad King
In reply to this post by Thompson, KT
On 02/03/2016 11:19 AM, Thompson, KT wrote:
> On RHEL 6.7, I extracted the prebuilt x86_64 binaries from the
> downloaded .tar.gz file.  At the end of the configuration process,
> cmake issues a segmentation fault and no Makefiles are generated.

What project are you configuring?

Can you provide a CMakeLists.txt file that reproduces this crash?

Thanks,
-Brad

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: CMake 3.5.0-rc1 install is missing dependencies

Thompson, KT
I'm working on a reproducer.  For now, all I can say is that it looks like the segmentation fault occurs on this command:

install( EXPORT foo-targets
  DESTINATION foo
  EXPORT_LINK_INTERFACE_LIBRARIES )

-kt

-----Original Message-----
From: Brad King [mailto:[hidden email]]
Sent: Wednesday, February 03, 2016 11:42 AM
To: Thompson, KT <[hidden email]>
Cc: [hidden email]
Subject: Re: [CMake] CMake 3.5.0-rc1 install is missing dependencies

On 02/03/2016 11:19 AM, Thompson, KT wrote:
> On RHEL 6.7, I extracted the prebuilt x86_64 binaries from the
> downloaded .tar.gz file.  At the end of the configuration process,
> cmake issues a segmentation fault and no Makefiles are generated.

What project are you configuring?

Can you provide a CMakeLists.txt file that reproduces this crash?

Thanks,
-Brad

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: CMake 3.5.0-rc1 install is missing dependencies

Konstantin Podsvirov
In reply to this post by Brad King
Meet the fresh update online installers (CMake3.5.3.5.20160203):

http://ifw.podsvirov.pro/cmake/cmake-master-win32-online.exe

and

http://ifw.podsvirov.pro/cmake/cmake-master-win64-online.exe

If you have used them previously, then just update via "CMake Maintenance Tool".

These installers were collected and razvernut using AppVeyor:

https://ci.appveyor.com/project/podsvirov/cmake/build/3.5-26

03.02.2016, 21:36, "Brad King" <[hidden email]>:

> On 02/03/2016 11:19 AM, Thompson, KT wrote:
>> The Windows installation doesn't appear to provide all the
>> required dependencies. ‘cmake-gui’ will not launch and provides
>> the error “Qt5Widgets.dll is missing form your computer.”
>
> Ugh, after months of working correctly on the nightly binary builds
> something happened to go wrong on the packaging machine specifically
> for this release build due to an environment change. I've fixed it
> and replaced the binary on the download site for the Windows build.
> Please download and try again.
>
> -Brad

I tried the installer:

https://cmake.org/files/v3.5/cmake-3.5.0-rc1-win32-x86.msi

He asked me to install CMake on your way:

C:\Program Files (x86)\Canon\Easy-WebPrint EX\

:-) (something and somewhere went wrong...)

I changed to:

C:\Program Files (x86)\CMake\

And installed as usual.

In the Start menu I have a folder of CMake (although the old NSIS installer would create a folder CMake 3.5.0-rc1)

I then used just installed cmake to create installers based on IFW generator.

I built these offline installers:

http://ifw.podsvirov.pro/cmake/files/v3.5/cmake-3.5.0-rc1-win32-x86.exe

and

http://ifw.podsvirov.pro/cmake/files/v3.5/cmake-3.5.0-rc1-win64-x64.exe

In all cases I was using MSVC2013 and Qt5.5.1 for cmake-gui.
For me everything works fine.

I ask all those interested. To test the results and to share lessons learned.

Together we will make CMake better!!!

Regards,
Konstantin Podsvirov
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: CMake 3.5.0-rc1 install is missing dependencies

Thompson, KT
In reply to this post by Thompson, KT
BTW - I am seeing the segmentation fault at the same location on 3 different systems:

SUSE Linux Enterprise Server 11 (x86_64)
CentOS Linux release 7.1.1503 (Core)
Red Hat Enterprise Linux Workstation release 6.7 (Santiago)

My project is not open source and I cannot distribute our source code.

I recompiled cmake-3.5.0-rc1 from sources with debug symbols and ran under a debugger. I located this failure:

Thread 1 stopped in cmPolicies::PolicyMap::Get with signal SIGSEGV ​(Segmentation fault)​.
Reason/Origin: address not mapped to object ​(attempt to access invalid address)​

The call stack is:

#17 main (ac=2, av=0x110b4f0) at .../cmake-3.5.0-rc1/Source/cmakemain.cxx:190 (at 0x000000000066e580)
#16 do_cmake (ac=2, av=0x110b4f0) at .../cmake-3.5.0-rc1/Source/cmakemain.cxx:330 (at 0x000000000066f67b)
#15 cmake::Run (this=0x7fffffffa700, args=std::vector of length 2, capacity 2 = {...}, noconfigure=false) at .../cmake-3.5.0-rc1/Source/cmake.cxx:1731 (at 0x00000000007a15e9)
#14 cmake::Configure (this=0x7fffffffa700) at .../cmake-3.5.0-rc1/Source/cmake.cxx:1356 (at 0x00000000007a210f)
#13 cmake::ActualConfigure (this=0x7fffffffa700) at .../cmake-3.5.0-rc1/Source/cmake.cxx:1573 (at 0x00000000007a3a93)
#12 cmGlobalUnixMakefileGenerator3::Configure (this=0x1119b50) at .../cmake-3.5.0-rc1/Source/cmGlobalUnixMakefileGenerator3.cxx:129 (at 0x0000000000a308ce)
#11 cmGlobalGenerator::Configure (this=0x1119b50) at .../cmake-3.5.0-rc1/Source/cmGlobalGenerator.cxx:1148 (at 0x0000000000a026aa)
#10 cmMakefile::Configure (this=0x111af40) at .../cmake-3.5.0-rc1/Source/cmMakefile.cxx:1665 (at 0x00000000006d6beb)
#9 cmMakefile::ReadListFile (this=0x111af40, listFile=..., filenametoread="/users/kellyt/draco/CMakeLists.txt") at .../cmake-3.5.0-rc1/Source/cmMakefile.cxx:569 (at 0x00000000006e831c)
#8 cmMakefile::ExecuteCommand (this=0x111af40, lff=..., status=...) at .../cmake-3.5.0-rc1/Source/cmMakefile.cxx:263 (at 0x00000000006e0799)
#7 cmCommand::InvokeInitialPass (this=0x1417360, args=std::vector of length 5, capacity 5 = {...}, status=...) at .../cmake-3.5.0-rc1/Source/cmCommand.h:68 (at 0x000000000085a466)
#6 cmInstallCommand::InitialPass (this=0x1417360, args=std::vector of length 5, capacity 5 = {...}) at .../cmake-3.5.0-rc1/Source/cmInstallCommand.cxx:103 (at 0x000000000089ac4a)
#5 cmInstallCommand::HandleExportMode (this=0x1417360, args=std::vector of length 5, capacity 5 = {...}) at .../cmake-3.5.0-rc1/Source/cmInstallCommand.cxx:1379 (at 0x00000000008a802a)
#4 cmTarget::GetPolicyStatusCMP0022 (this=0x0) at .../cmake-3.5.0-rc1/Source/cmTarget.h:90 (at 0x00000000008c5636)
#3 cmPolicies::PolicyMap::Get (this=0xf0, id=cmPolicies::CMP0022) at .../cmake-3.5.0-rc1/Source/cmPolicies.cxx:367 (at 0x0000000000729156)
#2 std::bitset<198ul>::operator[] (this=0xf0, __position=66) at .../include/c++/4.4.7/bitset:1009 (at 0x00000000007296e7)
#1 std::bitset<198ul>::_Unchecked_test (this=0xf0, __pos=66) at .../include/c++/4.4.7/bitset:904 (at 0x0000000000729663)
#0 std::_Base_bitset<4ul>::_M_getword (this=0xf0, __pos=66) at .../include/c++/4.4.7/bitset:107 (at 0x00000000007295e4)

In cmInstallCommand.cxx, line 1376

cmTarget* tgt = this->Makefile->FindTarget(te->TargetName);

is setting tgt to a NULL pointer (0x0) that is dereferenced in the next line (stack location #5)

tgt->GetPolicyStatusCMP0022()

This is causing the segfault.

-kt

-----Original Message-----
From: CMake [mailto:[hidden email]] On Behalf Of Thompson, KT
Sent: Wednesday, February 03, 2016 12:00 PM
To: Brad King <[hidden email]>
Cc: [hidden email]
Subject: Re: [CMake] CMake 3.5.0-rc1 install is missing dependencies

I'm working on a reproducer.  For now, all I can say is that it looks like the segmentation fault occurs on this command:

install( EXPORT foo-targets
  DESTINATION foo
  EXPORT_LINK_INTERFACE_LIBRARIES )

-kt

-----Original Message-----
From: Brad King [mailto:[hidden email]]
Sent: Wednesday, February 03, 2016 11:42 AM
To: Thompson, KT <[hidden email]>
Cc: [hidden email]
Subject: Re: [CMake] CMake 3.5.0-rc1 install is missing dependencies

On 02/03/2016 11:19 AM, Thompson, KT wrote:
> On RHEL 6.7, I extracted the prebuilt x86_64 binaries from the
> downloaded .tar.gz file.  At the end of the configuration process,
> cmake issues a segmentation fault and no Makefiles are generated.

What project are you configuring?

Can you provide a CMakeLists.txt file that reproduces this crash?

Thanks,
-Brad

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: CMake 3.5.0-rc1 crash (was: CMake 3.5.0-rc1 install is missing dependencies)

Brad King
On 02/04/2016 11:00 AM, Thompson, KT wrote:
> #6 cmInstallCommand::InitialPass (this=0x1417360, args=std::vector of length 5, capacity 5 = {...}) at .../cmake-3.5.0-rc1/Source/cmInstallCommand.cxx:103 (at 0x000000000089ac4a)
> #5 cmInstallCommand::HandleExportMode (this=0x1417360, args=std::vector of length 5, capacity 5 = {...}) at .../cmake-3.5.0-rc1/Source/cmInstallCommand.cxx:1379 (at 0x00000000008a802a)
> #4 cmTarget::GetPolicyStatusCMP0022 (this=0x0) at .../cmake-3.5.0-rc1/Source/cmTarget.h:90 (at 0x00000000008c5636)
[snip]
> In cmInstallCommand.cxx, line 1376
>
> cmTarget* tgt = this->Makefile->FindTarget(te->TargetName);
>
> is setting tgt to a NULL pointer (0x0) that is dereferenced in the next line

Thanks!  From that I was able to narrow it to a simple test case:

------------------------------------------------------------------------------
$ cat CMakeLists.txt
cmake_minimum_required(VERSION 3.0)
project(Foo C)
add_subdirectory(A)
add_library(B SHARED empty.c)
install(TARGETS B DESTINATION lib EXPORT FooTargets)
install(EXPORT FooTargets DESTINATION lib/cmake/foo EXPORT_LINK_INTERFACE_LIBRARIES)

$ cat A/CMakeLists.txt
add_library(A SHARED ../empty.c)
install(TARGETS A DESTINATION lib EXPORT FooTargets)

$ mkdir b ; cd b
$ cmake --version
cmake version 3.5.0-rc1

$ cmake ..
...
Segmentation fault
------------------------------------------------------------------------------

This was likely caused by this change:

 cmExportSet: Store a cmGeneratorTarget.
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=381e7afd#patch6

Here is a fix and a test case:

 install(EXPORT): Fix crash on target in another directory
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=290fb8b9

I've queued this for merge to 'release' for inclusion in 3.5.0-rc2.

Thanks,
-Brad
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: CMake 3.5.0-rc1 crash (was: CMake 3.5.0-rc1 install is missing dependencies)

Thompson, KT
Your patch fixes the problem I was seeing.

Thank you,

-kt

-----Original Message-----
From: Brad King [mailto:[hidden email]]
Sent: Thursday, February 04, 2016 10:57 AM
To: Thompson, KT <[hidden email]>
Cc: [hidden email]; Stephen Kelly <[hidden email]>
Subject: Re: [CMake] CMake 3.5.0-rc1 crash (was: CMake 3.5.0-rc1 install is missing dependencies)

On 02/04/2016 11:00 AM, Thompson, KT wrote:
> #6 cmInstallCommand::InitialPass (this=0x1417360, args=std::vector of length 5, capacity 5 = {...}) at .../cmake-3.5.0-rc1/Source/cmInstallCommand.cxx:103 (at 0x000000000089ac4a)
> #5 cmInstallCommand::HandleExportMode (this=0x1417360, args=std::vector of length 5, capacity 5 = {...}) at .../cmake-3.5.0-rc1/Source/cmInstallCommand.cxx:1379 (at 0x00000000008a802a)
> #4 cmTarget::GetPolicyStatusCMP0022 (this=0x0) at .../cmake-3.5.0-rc1/Source/cmTarget.h:90 (at 0x00000000008c5636)
[snip]
> In cmInstallCommand.cxx, line 1376
>
> cmTarget* tgt = this->Makefile->FindTarget(te->TargetName);
>
> is setting tgt to a NULL pointer (0x0) that is dereferenced in the next line

Thanks!  From that I was able to narrow it to a simple test case:

------------------------------------------------------------------------------
$ cat CMakeLists.txt
cmake_minimum_required(VERSION 3.0)
project(Foo C)
add_subdirectory(A)
add_library(B SHARED empty.c)
install(TARGETS B DESTINATION lib EXPORT FooTargets)
install(EXPORT FooTargets DESTINATION lib/cmake/foo EXPORT_LINK_INTERFACE_LIBRARIES)

$ cat A/CMakeLists.txt
add_library(A SHARED ../empty.c)
install(TARGETS A DESTINATION lib EXPORT FooTargets)

$ mkdir b ; cd b
$ cmake --version
cmake version 3.5.0-rc1

$ cmake ..
...
Segmentation fault
------------------------------------------------------------------------------

This was likely caused by this change:

 cmExportSet: Store a cmGeneratorTarget.
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=381e7afd#patch6

Here is a fix and a test case:

 install(EXPORT): Fix crash on target in another directory
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=290fb8b9

I've queued this for merge to 'release' for inclusion in 3.5.0-rc2.

Thanks,
-Brad
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake