mirror of
https://git.yoctoproject.org/poky
synced 2026-02-26 19:39:40 +01:00
When `-pipe` is enabled, GCC passes data between its different
executables using pipes instead of temporary files. This leads to issues
when cmake attempts to infer compiler internals via the `-v` parameter
as each executable will print to `stderr` in parallel.
In turn this may lead to compilation issues down the line as for example
the system include directories could not be determined properly which
may then propagate to issues such as:
recipe-sysroot/usr/include/c++/11.3.0/cstdlib:75:15: fatal error:
stdlib.h: No such file or directory
| 75 | #include_next <stdlib.h>
| | ^~~~~~~~~~
| compilation terminated.
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
Fix this stripping `-pipe` from the command line used to determine
compiler internals.
(From OE-Core rev: ef5c060a939416b4034be1b8b81f9035b23534b7)
Signed-off-by: Philip Lorenz <philip.lorenz@bmw.de>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
28 lines
1.3 KiB
PHP
28 lines
1.3 KiB
PHP
# Copyright (C) 2005, Koninklijke Philips Electronics NV. All Rights Reserved
|
|
# Released under the MIT license (see packages/COPYING)
|
|
|
|
SUMMARY = "Cross-platform, open-source make system"
|
|
DESCRIPTION = "CMake is used to control the software compilation process \
|
|
using simple platform and compiler independent configuration files. CMake \
|
|
generates native makefiles and workspaces that can be used in the compiler \
|
|
environment of your choice."
|
|
HOMEPAGE = "http://www.cmake.org/"
|
|
BUGTRACKER = "http://public.kitware.com/Bug/my_view_page.php"
|
|
SECTION = "console/utils"
|
|
LICENSE = "BSD-3-Clause"
|
|
LIC_FILES_CHKSUM = "file://Copyright.txt;md5=9d3d12c5f3b4c1f83650adcc65b59c06 \
|
|
file://Source/cmake.h;beginline=1;endline=2;md5=a5f70e1fef8614734eae0d62b4f5891b \
|
|
"
|
|
|
|
CMAKE_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}"
|
|
|
|
SRC_URI = "https://cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \
|
|
file://0001-CMakeDetermineCompilerABI-Strip-pipe-from-compile-fl.patch \
|
|
"
|
|
|
|
SRC_URI[sha256sum] = "72b7570e5c8593de6ac4ab433b73eab18c5fb328880460c86ce32608141ad5c1"
|
|
|
|
UPSTREAM_CHECK_REGEX = "cmake-(?P<pver>\d+(\.\d+)+)\.tar"
|
|
|
|
CVE_STATUS[CVE-2016-10642] = "cpe-incorrect: This is specific to the npm package that installs cmake, so isn't relevant to OpenEmbedded"
|