[cmake-developers] [CMake 0015325]: Regression building x265 using CMake 3.1 (Segmentation fault)

Mantis Bug Tracker mantis at public.kitware.com
Mon Dec 22 16:27:53 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15325 
====================================================================== 
Reported By:                David Coppa
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15325
Category:                   CMake
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-12-22 16:27 EST
Last Modified:              2014-12-22 16:27 EST
====================================================================== 
Summary:                    Regression building x265 using CMake 3.1
(Segmentation fault)
Description: 

CMake 3.1 segfaults while building x265 using the ninja generator, "Unix
Makefiles" generator is not affected.
This crash didn't happen with cmake-3.0.2 (same version of x265).

I have the same segfault on both Arch Linux and OpenBSD-current.

I've attached two files with the gdb output for both systems.

You can have a look at the source code for x265 here:
https://github.com/videolan/x265/tree/master/source/cmake

$ cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr ../source/
-- cmake version 3.1.0
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler using: Ninja
-- Check for working C compiler using: Ninja -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler using: Ninja
-- Check for working CXX compiler using: Ninja -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detected x86 target processor
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Performing Test CC_HAS_NO_NARROWING
-- Performing Test CC_HAS_NO_NARROWING - Success
-- Performing Test CC_HAS_NO_ARRAY_BOUNDS
-- Performing Test CC_HAS_NO_ARRAY_BOUNDS - Success
-- Performing Test CC_HAS_FAST_MATH
-- Performing Test CC_HAS_FAST_MATH - Success
-- Performing Test CC_HAS_STACK_REALIGN
-- Performing Test CC_HAS_STACK_REALIGN - Success
-- Performing Test CC_HAS_FNO_EXCEPTIONS_FLAG
-- Performing Test CC_HAS_FNO_EXCEPTIONS_FLAG - Success
-- Found yasm: /usr/bin/yasm (found version "1.3.0") 
-- Found Yasm 1.3.0 to build assembly primitives
-- x265 version 1.4
-- The ASM_YASM compiler identification is unknown
-- Found assembler: /usr/bin/yasm
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for include file getopt.h
-- Looking for include file getopt.h - found
-- Configuring done
CMake Error: Error required internal CMake variable not set, cmake may be not be
built correctly.
Missing variable is:
CMAKE_ASM_YASM_COMPILE_OBJECT
Segmentation fault (core dumped)


Steps to Reproduce: 
Try building x265 using the ninja generator of CMake 3.1.0.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-12-22 16:27 David Coppa    New Issue                                    
2014-12-22 16:27 David Coppa    File Added: cmake31-x265-openbsd.out            
       
======================================================================



More information about the cmake-developers mailing list