Skip to content

building on RPi4 and buster gets compiler errors; but completes! #112

@mahtin

Description

@mahtin

Using the latest g++ on RPi4 ...

$ g++ --version
g++ (Raspbian 8.3.0-6+rpi1) 8.3.0
...
$

Produces 1200+ make error log file. However, it all comes down to these few errors:

 ... note: parameter passing for argument of type ‘std::move_iterator<double*>’ changed in GCC 7.1
 ... note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<double*, std::vector<double> >’ changed in GCC 7.1
 ... note: parameter passing for argument of type ‘std::vector<double>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<double*, std::vector<double> >’} changed in GCC 7.1
 ... note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<const double*, std::vector<double> >’ changed in GCC 7.1

I feel this is a. deep in the code one line fix; however, with 1200+ lines of make error log file; it could be easier for someone else to see this issue.

The cmake output is:

$ cmake ..
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.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
-- Performing Test HAS_LINKER_VERSION_SCRIPT
-- Performing Test HAS_LINKER_VERSION_SCRIPT - Success
-- Performing Test HAS_LINKER_EXPORTED_SYMBOLS_LIST
-- Performing Test HAS_LINKER_EXPORTED_SYMBOLS_LIST - Failed
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/martin/src/github/la1k/libpredict/build
martin@rpi400:~/src/github/la1k/libpredict/build $ 

Metadata

Metadata

Assignees

No one assigned

    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