Commit 62d998e2 authored by Ma Yushuang's avatar Ma Yushuang
Browse files

First commit version 0.6.0

parents
No related merge requests found
Showing with 1019 additions and 0 deletions
+1019 -0
# This is the official list of glog authors for copyright purposes.
# This file is distinct from the CONTRIBUTORS files.
# See the latter for an explanation.
#
# Names should be added to this file as:
# Name or Organization <email address>
# The email address is not required for organizations.
#
# Please keep the list sorted.
Abhishek Dasgupta <abhi2743@gmail.com>
Abhishek Parmar <abhishek@orng.net>
Andrew Schwartzmeyer <andrew@schwartzmeyer.com>
Andy Ying <andy@trailofbits.com>
Brian Silverman <bsilver16384@gmail.com>
Dmitriy Arbitman <d.arbitman@gmail.com>
Google Inc.
Guillaume Dumont <dumont.guillaume@gmail.com>
Marco Wang <m.aesophor@gmail.com>
Michael Tanner <michael@tannertaxpro.com>
MiniLight <MiniLightAR@Gmail.com>
romange <romange@users.noreply.github.com>
Roman Perepelitsa <roman.perepelitsa@gmail.com>
Sergiu Deitsch <sergiu.deitsch@gmail.com>
tbennun <tbennun@gmail.com>
Teddy Reed <teddy@prosauce.org>
Vijaymahantesh Sattigeri <vijaymahantesh016@gmail.com>
Zhongming Qu <qzmfranklin@gmail.com>
Zhuoran Shen <cmsflash99@gmail.com>
licenses(["notice"])
exports_files(["COPYING"])
load(":bazel/glog.bzl", "glog_library")
glog_library()
# platform() to build with clang-cl on Bazel CI. This is enabled with
# the flags in .bazelci/presubmit.yml:
#
# --incompatible_enable_cc_toolchain_resolution
# --extra_toolchains=@local_config_cc//:cc-toolchain-x64_windows-clang-cl
# --extra_execution_platforms=//:x64_windows-clang-cl
platform(
name = "x64_windows-clang-cl",
constraint_values = [
"@platforms//cpu:x86_64",
"@platforms//os:windows",
"@bazel_tools//tools/cpp:clang-cl",
],
)
This diff is collapsed.
# People who have agreed to one of the CLAs and can contribute patches.
# The AUTHORS file lists the copyright holders; this file
# lists people. For example, Google employees are listed here
# but not in AUTHORS, because Google holds the copyright.
#
# Names should be added to this file only after verifying that
# the individual or the individual's organization has agreed to
# the appropriate Contributor License Agreement, found here:
#
# https://developers.google.com/open-source/cla/individual
# https://developers.google.com/open-source/cla/corporate
#
# The agreement for individuals can be filled out on the web.
#
# When adding J Random Contributor's name to this file,
# either J's name or J's organization's name should be
# added to the AUTHORS file, depending on whether the
# individual or corporate CLA was used.
#
# Names should be added to this file as:
# Name <email address>
#
# Please keep the list sorted.
Abhishek Dasgupta <abhi2743@gmail.com>
Abhishek Parmar <abhishek@orng.net>
Andrew Schwartzmeyer <andrew@schwartzmeyer.com>
Andy Ying <andy@trailofbits.com>
Bret McKee <bretmckee@google.com>
Brian Silverman <bsilver16384@gmail.com>
Dmitriy Arbitman <d.arbitman@gmail.com>
Fumitoshi Ukai <ukai@google.com>
Guillaume Dumont <dumont.guillaume@gmail.com>
Håkan L. S. Younes <hyounes@google.com>
Ivan Penkov <ivanpe@google.com>
Jacob Trimble <modmaker@google.com>
Jim Ray <jimray@google.com>
Marco Wang <m.aesophor@gmail.com>
Michael Darr <mdarr@matician.com>
Michael Tanner <michael@tannertaxpro.com>
MiniLight <MiniLightAR@Gmail.com>
Peter Collingbourne <pcc@google.com>
Rodrigo Queiro <rodrigoq@google.com>
romange <romange@users.noreply.github.com>
Roman Perepelitsa <roman.perepelitsa@gmail.com>
Sergiu Deitsch <sergiu.deitsch@gmail.com>
Shinichiro Hamaji <hamaji@google.com>
tbennun <tbennun@gmail.com>
Teddy Reed <teddy@prosauce.org>
Vijaymahantesh Sattigeri <vijaymahantesh016@gmail.com>
Zhongming Qu <qzmfranklin@gmail.com>
Zhuoran Shen <cmsflash99@gmail.com>
Copyright (c) 2008, Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
A function gettimeofday in utilities.cc is based on
http://www.google.com/codesearch/p?hl=en#dR3YEbitojA/COPYING&q=GetSystemTimeAsFileTime%20license:bsd
The license of this code is:
Copyright (c) 2003-2008, Jouni Malinen <j@w1.fi> and contributors
All Rights Reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name(s) of the above-listed copyright holder(s) nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2022-04-05 Google Inc. <opensource@google.com>
* google-glog: version 0.6.0.
* See git log for the details.
2021-05-08 Google Inc. <opensource@google.com>
* google-glog: version 0.5.0.
* See git log for the details.
2019-01-22 Google Inc. <opensource@google.com>
* google-glog: version 0.4.0.
* See git log for the details.
2017-05-09 Google Inc. <opensource@google.com>
* google-glog: version 0.3.5
* See git log for the details.
2015-03-09 Google Inc. <opensource@google.com>
* google-glog: version 0.3.4
* See git log for the details.
2013-02-01 Google Inc. <opensource@google.com>
* google-glog: version 0.3.3
* Add --disable-rtti option for configure.
* Visual Studio build and test fix.
* QNX build fix (thanks vanuan).
* Reduce warnings.
* Fixed LOG_SYSRESULT (thanks ukai).
* FreeBSD build fix (thanks yyanagisawa).
* Clang build fix.
* Now users can re-initialize glog after ShutdownGoogleLogging.
* Color output support by GLOG_colorlogtostderr (thanks alexs).
* Now glog's ABI around flags are compatible with gflags.
* Document mentions how to modify flags from user programs.
2012-01-12 Google Inc. <opensource@google.com>
* google-glog: version 0.3.2
* Clang support.
* Demangler and stacktrace improvement for newer GCCs.
* Now fork(2) doesn't mess up log files.
* Make valgrind happier.
* Reduce warnings for more -W options.
* Provide a workaround for ERROR defined by windows.h.
2010-06-15 Google Inc. <opensource@google.com>
* google-glog: version 0.3.1
* GLOG_* environment variables now work even when gflags is installed.
* Snow leopard support.
* Now we can build and test from out side tree.
* Add DCHECK_NOTNULL.
* Add ShutdownGoogleLogging to close syslog (thanks DGunchev)
* Fix --enable-frame-pointers option (thanks kazuki.ohta)
* Fix libunwind detection (thanks giantchen)
2009-07-30 Google Inc. <opensource@google.com>
* google-glog: version 0.3.0
* Fix a deadlock happened when user uses glog with recent gflags.
* Suppress several unnecessary warnings (thanks keir).
* NetBSD and OpenBSD support.
* Use Win32API GetComputeNameA properly (thanks magila).
* Fix user name detection for Windows (thanks ademin).
* Fix several minor bugs.
2009-04-10 Google Inc. <opensource@google.com>
* google-glog: version 0.2.1
* Fix timestamps of VC++ version.
* Add pkg-config support (thanks Tomasz)
* Fix build problem when building with gtest (thanks Michael)
* Add --with-gflags option for configure (thanks Michael)
* Fixes for GCC 4.4 (thanks John)
2009-01-23 Google Inc. <opensource@google.com>
* google-glog: version 0.2
* Add initial Windows VC++ support.
* Google testing/mocking frameworks integration.
* Link pthread library automatically.
* Flush logs in signal handlers.
* Add macros LOG_TO_STRING, LOG_AT_LEVEL, DVLOG, and LOG_TO_SINK_ONLY.
* Log microseconds.
* Add --log_backtrace_at option.
* Fix some minor bugs.
2008-11-18 Google Inc. <opensource@google.com>
* google-glog: version 0.1.2
* Add InstallFailureSignalHandler(). (satorux)
* Re-organize the way to produce stacktraces.
* Don't define unnecessary macro DISALLOW_EVIL_CONSTRUCTORS.
2008-10-15 Google Inc. <opensource@google.com>
* google-glog: version 0.1.1
* Support symbolize for MacOSX 10.5.
* BUG FIX: --vmodule didn't work with gflags.
* BUG FIX: symbolize_unittest failed with GCC 4.3.
* Several fixes on the document.
2008-10-07 Google Inc. <opensource@google.com>
* google-glog: initial release:
The glog package contains a library that implements application-level
logging. This library provides logging APIs based on C++-style
streams and various helper macros.
This diff is collapsed.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "com_github_gflags_gflags",
sha256 = "34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf",
strip_prefix = "gflags-2.2.2",
urls = [
"https://mirror.bazel.build/github.com/gflags/gflags/archive/v2.2.2.tar.gz",
"https://github.com/gflags/gflags/archive/v2.2.2.tar.gz",
],
)
cc_test(
name = "main",
size = "small",
srcs = ["main.cc"],
deps = [
"//:glog",
"@com_github_gflags_gflags//:gflags",
],
)
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <glog/stl_logging.h>
int main(int argc, char* argv[]) {
// Initialize Google's logging library.
google::InitGoogleLogging(argv[0]);
// Optional: parse command line flags
gflags::ParseCommandLineFlags(&argc, &argv, true);
LOG(INFO) << "Hello, world!";
// glog/stl_logging.h allows logging STL containers.
std::vector<int> x;
x.push_back(1);
x.push_back(2);
x.push_back(3);
LOG(INFO) << "ABC, it's easy as " << x;
return 0;
}
# Implement a macro glog_library() that the BUILD.bazel file can load.
# By default, glog is built with gflags support. You can change this behavior
# by using glog_library(with_gflags=0)
#
# This file is inspired by the following sample BUILD files:
# https://github.com/google/glog/issues/61
# https://github.com/google/glog/files/393474/BUILD.txt
#
# Known issue: the namespace parameter is not supported on Win32.
def expand_template_impl(ctx):
ctx.actions.expand_template(
template = ctx.file.template,
output = ctx.outputs.out,
substitutions = ctx.attr.substitutions,
)
expand_template = rule(
implementation = expand_template_impl,
attrs = {
"template": attr.label(mandatory = True, allow_single_file = True),
"substitutions": attr.string_dict(mandatory = True),
"out": attr.output(mandatory = True),
},
)
def dict_union(x, y):
z = {}
z.update(x)
z.update(y)
return z
def glog_library(namespace = "google", with_gflags = 1, **kwargs):
if native.repository_name() != "@":
repo_name = native.repository_name().lstrip("@")
gendir = "$(GENDIR)/external/" + repo_name
src_windows = "external/%s/src/windows" % repo_name
else:
gendir = "$(GENDIR)"
src_windows = "src/windows"
# Config setting for WebAssembly target.
native.config_setting(
name = "wasm",
values = {"cpu": "wasm"},
)
# Detect when building with clang-cl on Windows.
native.config_setting(
name = "clang-cl",
values = {"compiler": "clang-cl"},
)
common_copts = [
"-DGLOG_BAZEL_BUILD",
# Inject a C++ namespace.
"-DGOOGLE_NAMESPACE='%s'" % namespace,
"-DHAVE_CXX11_NULLPTR_T",
"-DHAVE_STDINT_H",
"-DHAVE_STRING_H",
"-DGLOG_CUSTOM_PREFIX_SUPPORT",
"-I%s/glog_internal" % gendir,
] + (["-DHAVE_LIB_GFLAGS"] if with_gflags else [])
wasm_copts = [
# Disable warnings that exists in glog.
"-Wno-sign-compare",
"-Wno-unused-function",
"-Wno-unused-local-typedefs",
"-Wno-unused-variable",
# Allows src/base/mutex.h to include pthread.h.
"-DHAVE_PTHREAD",
# Allows src/logging.cc to determine the host name.
"-DHAVE_SYS_UTSNAME_H",
# For src/utilities.cc.
"-DHAVE_SYS_TIME_H",
"-DHAVE_UNWIND_H",
# Enable dumping stacktrace upon sigaction.
"-DHAVE_SIGACTION",
# For logging.cc.
"-DHAVE_PREAD",
"-DHAVE___ATTRIBUTE__",
]
linux_or_darwin_copts = wasm_copts + [
"-DGLOG_EXPORT=__attribute__((visibility(\\\"default\\\")))",
# For src/utilities.cc.
"-DHAVE_SYS_SYSCALL_H",
# For src/logging.cc to create symlinks.
"-DHAVE_UNISTD_H",
"-fvisibility-inlines-hidden",
"-fvisibility=hidden",
]
freebsd_only_copts = [
# Enable declaration of _Unwind_Backtrace
"-D_GNU_SOURCE",
]
darwin_only_copts = [
# For stacktrace.
"-DHAVE_DLADDR",
# Avoid deprecated syscall().
"-DHAVE_PTHREAD_THREADID_NP",
]
windows_only_copts = [
# Override -DGLOG_EXPORT= from the cc_library's defines.
"-DGLOG_EXPORT=__declspec(dllexport)",
"-DGLOG_NO_ABBREVIATED_SEVERITIES",
"-DHAVE_SNPRINTF",
"-I" + src_windows,
]
clang_cl_only_copts = [
# Allow the override of -DGLOG_EXPORT.
"-Wno-macro-redefined",
]
windows_only_srcs = [
"src/glog/log_severity.h",
"src/windows/dirent.h",
"src/windows/port.cc",
"src/windows/port.h",
]
gflags_deps = ["@com_github_gflags_gflags//:gflags"] if with_gflags else []
native.cc_library(
name = "glog",
visibility = ["//visibility:public"],
srcs = [
":config_h",
"src/base/commandlineflags.h",
"src/base/googleinit.h",
"src/base/mutex.h",
"src/demangle.cc",
"src/demangle.h",
"src/logging.cc",
"src/raw_logging.cc",
"src/signalhandler.cc",
"src/stacktrace.h",
"src/stacktrace_generic-inl.h",
"src/stacktrace_libunwind-inl.h",
"src/stacktrace_powerpc-inl.h",
"src/stacktrace_unwind-inl.h",
"src/stacktrace_windows-inl.h",
"src/stacktrace_x86-inl.h",
"src/symbolize.cc",
"src/symbolize.h",
"src/utilities.cc",
"src/utilities.h",
"src/vlog_is_on.cc",
] + select({
"@bazel_tools//src/conditions:windows": windows_only_srcs,
"//conditions:default": [],
}),
hdrs = [
"src/glog/log_severity.h",
"src/glog/platform.h",
":logging_h",
":raw_logging_h",
":stl_logging_h",
":vlog_is_on_h",
],
strip_include_prefix = "src",
defines = select({
# GLOG_EXPORT is normally set by export.h, but that's not
# generated for Bazel.
"@bazel_tools//src/conditions:windows": [
"GLOG_EXPORT=",
"GLOG_DEPRECATED=__declspec(deprecated)",
"GLOG_NO_ABBREVIATED_SEVERITIES",
],
"//conditions:default": [
"GLOG_DEPRECATED=__attribute__((deprecated))",
"GLOG_EXPORT=__attribute__((visibility(\\\"default\\\")))",
],
}),
copts =
select({
"@bazel_tools//src/conditions:windows": common_copts + windows_only_copts,
"@bazel_tools//src/conditions:darwin": common_copts + linux_or_darwin_copts + darwin_only_copts,
"@bazel_tools//src/conditions:freebsd": common_copts + linux_or_darwin_copts + freebsd_only_copts,
":wasm": common_copts + wasm_copts,
"//conditions:default": common_copts + linux_or_darwin_copts,
}) +
select({
":clang-cl": clang_cl_only_copts,
"//conditions:default": []
}),
deps = gflags_deps + select({
"@bazel_tools//src/conditions:windows": [":strip_include_prefix_hack"],
"//conditions:default": [],
}),
**kwargs
)
# Workaround https://github.com/bazelbuild/bazel/issues/6337 by declaring
# the dependencies without strip_include_prefix.
native.cc_library(
name = "strip_include_prefix_hack",
hdrs = [
"src/glog/log_severity.h",
":logging_h",
":raw_logging_h",
":stl_logging_h",
":vlog_is_on_h",
],
)
expand_template(
name = "config_h",
template = "src/config.h.cmake.in",
out = "glog_internal/config.h",
substitutions = {"#cmakedefine": "//cmakedefine"},
)
common_config = {
"@ac_cv_cxx11_atomic@": "1",
"@ac_cv_cxx11_constexpr@": "1",
"@ac_cv_cxx11_chrono@": "1",
"@ac_cv_cxx11_nullptr_t@": "1",
"@ac_cv_cxx_using_operator@": "1",
"@ac_cv_have_inttypes_h@": "0",
"@ac_cv_have_u_int16_t@": "0",
"@ac_cv_have_glog_export@": "0",
"@ac_google_start_namespace@": "namespace google {",
"@ac_google_end_namespace@": "}",
"@ac_google_namespace@": "google",
}
posix_config = dict_union(common_config, {
"@ac_cv_have_unistd_h@": "1",
"@ac_cv_have_stdint_h@": "1",
"@ac_cv_have_systypes_h@": "1",
"@ac_cv_have_uint16_t@": "1",
"@ac_cv_have___uint16@": "0",
"@ac_cv_have___builtin_expect@": "1",
"@ac_cv_have_libgflags@": "1" if with_gflags else "0",
"@ac_cv___attribute___noinline@": "__attribute__((noinline))",
"@ac_cv___attribute___noreturn@": "__attribute__((noreturn))",
"@ac_cv___attribute___printf_4_5@": "__attribute__((__format__(__printf__, 4, 5)))",
})
windows_config = dict_union(common_config, {
"@ac_cv_have_unistd_h@": "0",
"@ac_cv_have_stdint_h@": "0",
"@ac_cv_have_systypes_h@": "0",
"@ac_cv_have_uint16_t@": "0",
"@ac_cv_have___uint16@": "1",
"@ac_cv_have___builtin_expect@": "0",
"@ac_cv_have_libgflags@": "0",
"@ac_cv___attribute___noinline@": "",
"@ac_cv___attribute___noreturn@": "__declspec(noreturn)",
"@ac_cv___attribute___printf_4_5@": "",
})
[
expand_template(
name = "%s_h" % f,
template = "src/glog/%s.h.in" % f,
out = "src/glog/%s.h" % f,
substitutions = select({
"@bazel_tools//src/conditions:windows": windows_config,
"//conditions:default": posix_config,
}),
)
for f in [
"vlog_is_on",
"stl_logging",
"raw_logging",
"logging",
]
]
This diff is collapsed.
set(CMAKE_CXX_COMPILER "/usr/bin/c++")
set(CMAKE_CXX_COMPILER_ARG1 "")
set(CMAKE_CXX_COMPILER_ID "GNU")
set(CMAKE_CXX_COMPILER_VERSION "9.4.0")
set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "")
set(CMAKE_CXX_COMPILER_WRAPPER "")
set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "14")
set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20")
set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters")
set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates")
set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates")
set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17")
set(CMAKE_CXX20_COMPILE_FEATURES "cxx_std_20")
set(CMAKE_CXX_PLATFORM_ID "Linux")
set(CMAKE_CXX_SIMULATE_ID "")
set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "")
set(CMAKE_CXX_SIMULATE_VERSION "")
set(CMAKE_AR "/usr/bin/ar")
set(CMAKE_CXX_COMPILER_AR "/usr/bin/gcc-ar-9")
set(CMAKE_RANLIB "/usr/bin/ranlib")
set(CMAKE_CXX_COMPILER_RANLIB "/usr/bin/gcc-ranlib-9")
set(CMAKE_LINKER "/usr/bin/ld")
set(CMAKE_MT "")
set(CMAKE_COMPILER_IS_GNUCXX 1)
set(CMAKE_CXX_COMPILER_LOADED 1)
set(CMAKE_CXX_COMPILER_WORKS TRUE)
set(CMAKE_CXX_ABI_COMPILED TRUE)
set(CMAKE_COMPILER_IS_MINGW )
set(CMAKE_COMPILER_IS_CYGWIN )
if(CMAKE_COMPILER_IS_CYGWIN)
set(CYGWIN 1)
set(UNIX 1)
endif()
set(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
if(CMAKE_COMPILER_IS_MINGW)
set(MINGW 1)
endif()
set(CMAKE_CXX_COMPILER_ID_RUN 1)
set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;CPP)
set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
foreach (lang C OBJC OBJCXX)
if (CMAKE_${lang}_COMPILER_ID_RUN)
foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS)
list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension})
endforeach()
endif()
endforeach()
set(CMAKE_CXX_LINKER_PREFERENCE 30)
set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
# Save compiler ABI information.
set(CMAKE_CXX_SIZEOF_DATA_PTR "8")
set(CMAKE_CXX_COMPILER_ABI "ELF")
set(CMAKE_CXX_LIBRARY_ARCHITECTURE "aarch64-linux-gnu")
if(CMAKE_CXX_SIZEOF_DATA_PTR)
set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
endif()
if(CMAKE_CXX_COMPILER_ABI)
set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
endif()
if(CMAKE_CXX_LIBRARY_ARCHITECTURE)
set(CMAKE_LIBRARY_ARCHITECTURE "aarch64-linux-gnu")
endif()
set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "")
if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX)
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}")
endif()
set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/usr/include/c++/9;/usr/include/aarch64-linux-gnu/c++/9;/usr/include/c++/9/backward;/usr/lib/gcc/aarch64-linux-gnu/9/include;/usr/local/include;/usr/include/aarch64-linux-gnu;/usr/include")
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;gcc_s;gcc;c;gcc_s;gcc")
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/aarch64-linux-gnu/9;/usr/lib/aarch64-linux-gnu;/usr/lib;/lib/aarch64-linux-gnu;/lib")
set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
File added
set(CMAKE_HOST_SYSTEM "Linux-5.10.160")
set(CMAKE_HOST_SYSTEM_NAME "Linux")
set(CMAKE_HOST_SYSTEM_VERSION "5.10.160")
set(CMAKE_HOST_SYSTEM_PROCESSOR "aarch64")
set(CMAKE_SYSTEM "Linux-5.10.160")
set(CMAKE_SYSTEM_NAME "Linux")
set(CMAKE_SYSTEM_VERSION "5.10.160")
set(CMAKE_SYSTEM_PROCESSOR "aarch64")
set(CMAKE_CROSSCOMPILING "FALSE")
set(CMAKE_SYSTEM_LOADED 1)
This diff is collapsed.
File added
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.16
# Relative path conversion top directories.
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/xmv/glog")
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/xmv/glog/build")
# Force unix paths in dependencies.
set(CMAKE_FORCE_UNIX_PATHS 1)
# The C and CXX include file regular expressions for this directory.
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
Performing C++ SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/xmv/glog/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_376ae/fast && /usr/bin/make -f CMakeFiles/cmTC_376ae.dir/build.make CMakeFiles/cmTC_376ae.dir/build
make[1]: Entering directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_376ae.dir/src.cxx.o
/usr/bin/c++ -DCMAKE_HAVE_LIBC_PTHREAD -fPIE -o CMakeFiles/cmTC_376ae.dir/src.cxx.o -c /home/xmv/glog/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_376ae
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_376ae.dir/link.txt --verbose=1
/usr/bin/c++ -DCMAKE_HAVE_LIBC_PTHREAD CMakeFiles/cmTC_376ae.dir/src.cxx.o -o cmTC_376ae
/usr/bin/ld: CMakeFiles/cmTC_376ae.dir/src.cxx.o: in function `main':
src.cxx:(.text+0x48): undefined reference to `pthread_create'
/usr/bin/ld: src.cxx:(.text+0x50): undefined reference to `pthread_detach'
/usr/bin/ld: src.cxx:(.text+0x5c): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_376ae.dir/build.make:87: cmTC_376ae] Error 1
make[1]: Leaving directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_376ae/fast] Error 2
Source file was:
#include <pthread.h>
void* test_func(void* data)
{
return data;
}
int main(void)
{
pthread_t thread;
pthread_create(&thread, NULL, test_func, NULL);
pthread_detach(thread);
pthread_join(thread, NULL);
pthread_atfork(NULL, NULL, NULL);
pthread_exit(NULL);
return 0;
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/xmv/glog/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_e3099/fast && /usr/bin/make -f CMakeFiles/cmTC_e3099.dir/build.make CMakeFiles/cmTC_e3099.dir/build
make[1]: Entering directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_e3099.dir/CheckFunctionExists.cxx.o
/usr/bin/c++ -DCHECK_FUNCTION_EXISTS=pthread_create -fPIE -o CMakeFiles/cmTC_e3099.dir/CheckFunctionExists.cxx.o -c /home/xmv/glog/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx
Linking CXX executable cmTC_e3099
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e3099.dir/link.txt --verbose=1
/usr/bin/c++ -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_e3099.dir/CheckFunctionExists.cxx.o -o cmTC_e3099 -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_e3099.dir/build.make:87: cmTC_e3099] Error 1
make[1]: Leaving directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_e3099/fast] Error 2
Determining size of unsigned __int16 failed with the following output:
Change Dir: /home/xmv/glog/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_cf20f/fast && /usr/bin/make -f CMakeFiles/cmTC_cf20f.dir/build.make CMakeFiles/cmTC_cf20f.dir/build
make[1]: Entering directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_cf20f.dir/HAVE___UINT16.cpp.o
/usr/bin/c++ -fPIE -o CMakeFiles/cmTC_cf20f.dir/HAVE___UINT16.cpp.o -c /home/xmv/glog/build/CMakeFiles/CheckTypeSize/HAVE___UINT16.cpp
/home/xmv/glog/build/CMakeFiles/CheckTypeSize/HAVE___UINT16.cpp:23:22: error: expected primary-expression before ‘unsigned’
23 | #define SIZE (sizeof(unsigned __int16))
| ^~~~~~~~
/home/xmv/glog/build/CMakeFiles/CheckTypeSize/HAVE___UINT16.cpp:25:12: note: in expansion of macro ‘SIZE’
25 | ('0' + ((SIZE / 10000)%10)),
| ^~~~
/home/xmv/glog/build/CMakeFiles/CheckTypeSize/HAVE___UINT16.cpp:23:22: error: expected ‘)’ before ‘unsigned’
23 | #define SIZE (sizeof(unsigned __int16))
| ~^~~~~~~~
/home/xmv/glog/build/CMakeFiles/CheckTypeSize/HAVE___UINT16.cpp:25:12: note: in expansion of macro ‘SIZE’
25 | ('0' + ((SIZE / 10000)%10)),
| ^~~~
/home/xmv/glog/build/CMakeFiles/CheckTypeSize/HAVE___UINT16.cpp:34:7: error: expected ‘)’ before ‘}’ token
34 | '\0'};
| ^
| )
/home/xmv/glog/build/CMakeFiles/CheckTypeSize/HAVE___UINT16.cpp:23:14: note: to match this ‘(’
23 | #define SIZE (sizeof(unsigned __int16))
| ^
/home/xmv/glog/build/CMakeFiles/CheckTypeSize/HAVE___UINT16.cpp:25:12: note: in expansion of macro ‘SIZE’
25 | ('0' + ((SIZE / 10000)%10)),
| ^~~~
/home/xmv/glog/build/CMakeFiles/CheckTypeSize/HAVE___UINT16.cpp:34:7: error: expected ‘)’ before ‘}’ token
34 | '\0'};
| ^
| )
/home/xmv/glog/build/CMakeFiles/CheckTypeSize/HAVE___UINT16.cpp:25:11: note: to match this ‘(’
25 | ('0' + ((SIZE / 10000)%10)),
| ^
/home/xmv/glog/build/CMakeFiles/CheckTypeSize/HAVE___UINT16.cpp:34:7: error: expected ‘)’ before ‘}’ token
34 | '\0'};
| ^
| )
/home/xmv/glog/build/CMakeFiles/CheckTypeSize/HAVE___UINT16.cpp:25:10: note: to match this ‘(’
25 | ('0' + ((SIZE / 10000)%10)),
| ^
/home/xmv/glog/build/CMakeFiles/CheckTypeSize/HAVE___UINT16.cpp:34:7: error: expected ‘)’ before ‘}’ token
34 | '\0'};
| ^
| )
/home/xmv/glog/build/CMakeFiles/CheckTypeSize/HAVE___UINT16.cpp:25:3: note: to match this ‘(’
25 | ('0' + ((SIZE / 10000)%10)),
| ^
make[1]: *** [CMakeFiles/cmTC_cf20f.dir/build.make:66: CMakeFiles/cmTC_cf20f.dir/HAVE___UINT16.cpp.o] Error 1
make[1]: Leaving directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_cf20f/fast] Error 2
/home/xmv/glog/build/CMakeFiles/CheckTypeSize/HAVE___UINT16.cpp:
#include <sys/types.h>
#include <stdint.h>
#include <stddef.h>
#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#elif defined(__aarch64__)
# define KEY '_','_','a','a','r','c','h','6','4','_','_'
#elif defined(__ARM_ARCH_7A__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_'
#elif defined(__ARM_ARCH_7S__)
# define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_'
#endif
#define SIZE (sizeof(unsigned __int16))
static char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};
#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}
Determining if the function dladdr exists failed with the following output:
Change Dir: /home/xmv/glog/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_a3870/fast && /usr/bin/make -f CMakeFiles/cmTC_a3870.dir/build.make CMakeFiles/cmTC_a3870.dir/build
make[1]: Entering directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_a3870.dir/CheckFunctionExists.cxx.o
/usr/bin/c++ -DCHECK_FUNCTION_EXISTS=dladdr -fPIE -o CMakeFiles/cmTC_a3870.dir/CheckFunctionExists.cxx.o -c /home/xmv/glog/build/CMakeFiles/CheckFunctionExists/CheckFunctionExists.cxx
Linking CXX executable cmTC_a3870
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a3870.dir/link.txt --verbose=1
/usr/bin/c++ -DCHECK_FUNCTION_EXISTS=dladdr CMakeFiles/cmTC_a3870.dir/CheckFunctionExists.cxx.o -o cmTC_a3870
/usr/bin/ld: CMakeFiles/cmTC_a3870.dir/CheckFunctionExists.cxx.o: in function `main':
CheckFunctionExists.cxx:(.text+0x10): undefined reference to `dladdr'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_a3870.dir/build.make:87: cmTC_a3870] Error 1
make[1]: Leaving directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_a3870/fast] Error 2
Performing C++ SOURCE FILE Test HAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS failed with the following output:
Change Dir: /home/xmv/glog/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_9858a/fast && /usr/bin/make -f CMakeFiles/cmTC_9858a.dir/build.make CMakeFiles/cmTC_9858a.dir/build
make[1]: Entering directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_9858a.dir/src.cxx.o
/usr/bin/c++ -DHAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS -fPIE -Wunnamed-type-template-args -o CMakeFiles/cmTC_9858a.dir/src.cxx.o -c /home/xmv/glog/build/CMakeFiles/CMakeTmp/src.cxx
c++: error: unrecognized command line option '-Wunnamed-type-template-args'
make[1]: *** [CMakeFiles/cmTC_9858a.dir/build.make:66: CMakeFiles/cmTC_9858a.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_9858a/fast] Error 2
Source file was:
int main() { return 0; }
Determining if the pthread_threadid_np exist failed with the following output:
Change Dir: /home/xmv/glog/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_f7330/fast && /usr/bin/make -f CMakeFiles/cmTC_f7330.dir/build.make CMakeFiles/cmTC_f7330.dir/build
make[1]: Entering directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_f7330.dir/CheckSymbolExists.cxx.o
/usr/bin/c++ -fPIE -o CMakeFiles/cmTC_f7330.dir/CheckSymbolExists.cxx.o -c /home/xmv/glog/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
/home/xmv/glog/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function ‘int main(int, char**)’:
/home/xmv/glog/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: ‘pthread_threadid_np’ was not declared in this scope; did you mean ‘pthread_tryjoin_np’?
8 | return ((int*)(&pthread_threadid_np))[argc];
| ^~~~~~~~~~~~~~~~~~~
| pthread_tryjoin_np
make[1]: *** [CMakeFiles/cmTC_f7330.dir/build.make:66: CMakeFiles/cmTC_f7330.dir/CheckSymbolExists.cxx.o] Error 1
make[1]: Leaving directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_f7330/fast] Error 2
File /home/xmv/glog/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_threadid_np
return ((int*)(&pthread_threadid_np))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function UnDecorateSymbolName exists in the dbghelp failed with the following output:
Change Dir: /home/xmv/glog/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_5138e/fast && /usr/bin/make -f CMakeFiles/cmTC_5138e.dir/build.make CMakeFiles/cmTC_5138e.dir/build
make[1]: Entering directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_5138e.dir/CheckFunctionExists.cxx.o
/usr/bin/c++ -DCHECK_FUNCTION_EXISTS=UnDecorateSymbolName -fPIE -o CMakeFiles/cmTC_5138e.dir/CheckFunctionExists.cxx.o -c /home/xmv/glog/build/CMakeFiles/CheckLibraryExists/CheckFunctionExists.cxx
Linking CXX executable cmTC_5138e
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5138e.dir/link.txt --verbose=1
/usr/bin/c++ -DCHECK_FUNCTION_EXISTS=UnDecorateSymbolName CMakeFiles/cmTC_5138e.dir/CheckFunctionExists.cxx.o -o cmTC_5138e -ldbghelp
/usr/bin/ld: cannot find -ldbghelp
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_5138e.dir/build.make:87: cmTC_5138e] Error 1
make[1]: Leaving directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_5138e/fast] Error 2
Performing C++ SOURCE FILE Test HAVE___DECLSPEC failed with the following output:
Change Dir: /home/xmv/glog/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_ed9e0/fast && /usr/bin/make -f CMakeFiles/cmTC_ed9e0.dir/build.make CMakeFiles/cmTC_ed9e0.dir/build
make[1]: Entering directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_ed9e0.dir/src.cxx.o
/usr/bin/c++ -DHAVE___DECLSPEC -fPIE -o CMakeFiles/cmTC_ed9e0.dir/src.cxx.o -c /home/xmv/glog/build/CMakeFiles/CMakeTmp/src.cxx
/home/xmv/glog/build/CMakeFiles/CMakeTmp/src.cxx:2:11: error: expected constructor, destructor, or type conversion before ‘(’ token
2 | __declspec(selectany) int a;
| ^
make[1]: *** [CMakeFiles/cmTC_ed9e0.dir/build.make:66: CMakeFiles/cmTC_ed9e0.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_ed9e0/fast] Error 2
Source file was:
__declspec(selectany) int a;
int main(void) { return 0; }
Performing C++ SOURCE FILE Test STL_NO_NAMESPACE failed with the following output:
Change Dir: /home/xmv/glog/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_dcc88/fast && /usr/bin/make -f CMakeFiles/cmTC_dcc88.dir/build.make CMakeFiles/cmTC_dcc88.dir/build
make[1]: Entering directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_dcc88.dir/src.cxx.o
/usr/bin/c++ -DSTL_NO_NAMESPACE -fPIE -o CMakeFiles/cmTC_dcc88.dir/src.cxx.o -c /home/xmv/glog/build/CMakeFiles/CMakeTmp/src.cxx
/home/xmv/glog/build/CMakeFiles/CMakeTmp/src.cxx:3:1: error: ‘vector’ does not name a type
3 | vector<int> t; int main() { }
| ^~~~~~
make[1]: *** [CMakeFiles/cmTC_dcc88.dir/build.make:66: CMakeFiles/cmTC_dcc88.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_dcc88/fast] Error 2
Source file was:
#include <vector>
vector<int> t; int main() { }
Performing C++ SOURCE FILE Test HAVE_MSVC_TLS failed with the following output:
Change Dir: /home/xmv/glog/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_01506/fast && /usr/bin/make -f CMakeFiles/cmTC_01506.dir/build.make CMakeFiles/cmTC_01506.dir/build
make[1]: Entering directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_01506.dir/src.cxx.o
/usr/bin/c++ -DHAVE_MSVC_TLS -fPIE -o CMakeFiles/cmTC_01506.dir/src.cxx.o -c /home/xmv/glog/build/CMakeFiles/CMakeTmp/src.cxx
/home/xmv/glog/build/CMakeFiles/CMakeTmp/src.cxx:2:11: error: expected constructor, destructor, or type conversion before ‘(’ token
2 | __declspec(thread) int tls;
| ^
make[1]: *** [CMakeFiles/cmTC_01506.dir/build.make:66: CMakeFiles/cmTC_01506.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/xmv/glog/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_01506/fast] Error 2
Source file was:
__declspec(thread) int tls;
int main() { }
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment