Skip to content

Logs are repeating while cmake #1809

@saurabhbansal90

Description

@saurabhbansal90
  • What is the issue you have?
    I am trying to use this library within my C++ project, so using the Embedded feature as described in README.
    I am cross-compiling it for AM437, and in the CMakeLists.txt, I have provided the path for compiler to be CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++
    After adding the JSON library, it asked for the absolute path, so I provided that as CMAKE_CXX_COMPILER /usr/bin/arm-linux-gnueabihf-g++

But after this change, cmake .. is not getting completed and logs are repeating periodically as below:
`-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using the single-header code from /home/eternal/work/am437x_peripherals/json/single_include/
-- Configuring done
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_CXX_COMPILER= /usr/bin/c++

-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using the single-header code from /home/eternal/work/am437x_peripherals/json/single_include/
-- Configuring done
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_CXX_COMPILER= /usr/bin/c++

-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
^C
`

  • Please describe the steps to reproduce the issue. Can you provide a small but working code example?
    The issue is appearing at the CMAKE level only, and I followed the procedure as defined in the Embedded section in README.

  • What is the expected behavior?
    Logs are repeating and cmake itself is not getting completed

  • And what is the actual behavior instead?
    cmake should get complete and I should be able to make to experiment with building JSON

  • Which compiler and operating system are you using? Is it a supported compiler?
    We are using arm-linux-gnueabihf-g++.1 for our compilation

  • Did you use a released version of the library or the version from the develop branch?
    It was develop branch

  • If you experience a compilation error: can you compile and run the unit tests?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugsolution: proposed fixa fix for the issue has been proposed and waits for confirmationstate: needs more infothe author of the issue needs to provide more detailsstate: stalethe issue has not been updated in a while and will be closed automatically soon unless it is updated

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions