pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/48784: cmake-2.8.11.2nb1: CmakeCache defaults are missing
>Number: 48784
>Category: pkg
>Synopsis: cmake-2.8.11.2nb1: CmakeCache defaults are missing
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 05 14:55:00 +0000 2014
>Originator: Frank Wille
>Release: 2014Q1
>Organization:
NetBSD
>Environment:
Probably all NetBSD machines. For example:
NetBSD sun.hasenbraten.de 6.1.4 NetBSD 6.1.4 (FIREV240) #0: Sun May 4 14:40:37
CEST 2014
frank@tethys:/home/frank/netbsd/REL6.1.4/src/objsparc64/sys/arch/sparc64/compile/FIREV240
sparc64
>Description:
After running "cmake ." the CMakeCache.txt doesn't provide any default
options for the compiler or linker. With cmake-2.8.11.2nb1 the entries
in CMakeCache.txt look like this:
---8<---
//C compiler.
CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc
//Flags used by the compiler during all build types.
CMAKE_C_FLAGS:STRING=
//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=-g
//Flags used by the compiler during release minsize builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING= -DNDEBUG
//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_C_FLAGS_RELEASE:STRING= -DNDEBUG
//Flags used by the compiler during Release with Debug Info builds.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING= -g -DNDEBUG
---8<---
This has for example the effect that applications built with cmake are
compiled without optimization and are unnecessarily slow.
It looked much better in the past, with cmake-2.6.2 from pkgsrc-2009Q1:
---8<---
//C compiler.
CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc
//Flags used by the compiler during all build types.
CMAKE_C_FLAGS:STRING=
//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=-g
//Flags used by the compiler during release minsize builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
//Flags used by the compiler during Release with Debug Info builds.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g
---8<---
>How-To-Repeat:
Generate a CMakeCache.txt with any source distribution requiring cmake.
For example Hatari 1.7.0:
http://download.tuxfamily.org/hatari/1.7.0/hatari-1.7.0.tar.bz2
Run "./configure" or "cmake .". Look into CMakeCache.txt.
>Fix:
Unknown.
Home |
Main Index |
Thread Index |
Old Index