← 输入框|github.com|刷新
Skip to content

[Build]: To remove -Wno-type-limits in CMakeLists.txt #12

Open

Description

@haochengxia

To temporarily resolve the build issue, we added -Wno-type-limits, though this is not intended as a long-term fix.

Activity

  1. changed the title [-][Build]: Use extras_require for differnet versions[/-] [+][Build]: To remove -Wno-type-limits in CMakeLists.txt[/+] on Aug 3, 2025
  2. self-assigned this
    on Aug 3, 2025
  3. haochengxia commented on Aug 4, 2025

    @haochengxia
    CollaboratorAuthor

    Error message,

    [123/188] Building CXX object libCacheSim/traceAnalyzer/CMakeFiles/traceAnalyzer_lib.dir/analyzer.cpp.o
    [124/188] Building CXX object libCacheSim/cache/CMakeFiles/cache_lib_cpp.dir/eviction/LRB/lrb.cpp.o
    FAILED: libCacheSim/cache/CMakeFiles/cache_lib_cpp.dir/eviction/LRB/lrb.cpp.o
    /usr/bin/c++ -DENABLE_3L_CACHE=1 -DENABLE_GLCACHE=1 -DENABLE_LRB=1 -DLOGLEVEL=6 -DOS_LINUX -DSUPPORT_ZSTD_TRACE=1 -DUSE_HUGEPAGE=1 -I/n/holylabs/juncheng_lab/Lab/software/include/glib-2.0 -I/n/holylabs/juncheng_lab/Lab/software/lib64/glib-2.0/include -I/n/home00/hxia/work/libCacheSim-python/src/libCacheSim/libCacheSim/include -I/n/home00/hxia/work/libCacheSim-python/src/libCacheSim/libCacheSim/utils/include -I/n/home00/hxia/work/libCacheSim-python/src/libCacheSim/libCacheSim -isystem /n/home00/hxia/local/include -fPIC -fno-strict-overflow -fno-strict-aliasing -Wno-cast-user-defined -Wno-array-bounds -g -fPIC -fno-strict-overflow -fno-strict-aliasing -Wno-cast-user-defined -Wno-array-bounds -std=c++17 -fPIC -Wall -Wextra -Werror -Wno-deprecated-copy -Wno-unused-variable -Wno-unused-function -Wno-unused-parameter -Wno-unused-but-set-variable -Wno-pedantic -Wformat=2 -Wformat-security -Wshadow -Wwrite-strings -Wmissing-include-dirs -MD -MT libCacheSim/cache/CMakeFiles/cache_lib_cpp.dir/eviction/LRB/lrb.cpp.o -MF libCacheSim/cache/CMakeFiles/cache_lib_cpp.dir/eviction/LRB/lrb.cpp.o.d -o libCacheSim/cache/CMakeFiles/cache_lib_cpp.dir/eviction/LRB/lrb.cpp.o -c /n/home00/hxia/work/libCacheSim-python/src/libCacheSim/libCacheSim/cache/eviction/LRB/lrb.cpp
    In file included from /n/home00/hxia/work/libCacheSim-python/src/libCacheSim/libCacheSim/cache/eviction/LRB/lrb.cpp:5:
    /n/home00/hxia/work/libCacheSim-python/src/libCacheSim/libCacheSim/cache/eviction/LRB/lrb.h: In constructor ‘lrb::Meta::Meta(const uint64_t&, const uint64_t&, const uint64_t&, const std::vector<short unsigned int>&)’:
    /n/home00/hxia/work/libCacheSim-python/src/libCacheSim/libCacheSim/cache/eviction/LRB/lrb.h:92:28: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
         for (uint32_t i = 0; i < n_extra_fields; ++i)
                              ~~^~~~~~~~~~~~~~~~
    /n/home00/hxia/work/libCacheSim-python/src/libCacheSim/libCacheSim/cache/eviction/LRB/lrb.h: In member function ‘void lrb::TrainingData::emplace_back(lrb::Meta&, uint32_t&, uint32_t&, const uint64_t&, uint32_t, std::vector<unsigned int>&, std::vector<double>&)’:
    /n/home00/hxia/work/libCacheSim-python/src/libCacheSim/libCacheSim/cache/eviction/LRB/lrb.h:224:28: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
         for (uint32_t k = 0; k < n_extra_fields; ++k) {
                              ~~^~~~~~~~~~~~~~~~
    /n/home00/hxia/work/libCacheSim-python/src/libCacheSim/libCacheSim/cache/eviction/LRB/lrb.cpp: In member function ‘std::pair<long unsigned int, unsigned int> lrb::LRBCache::rank()’:
    /n/home00/hxia/work/libCacheSim-python/src/libCacheSim/libCacheSim/cache/eviction/LRB/lrb.cpp:345:24: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]
         for (uint k = 0; k < n_extra_fields; ++k) {
                          ~~^~~~~~~~~~~~~~~~
    At global scope:
    cc1plus: error: unrecognized comma
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions