Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compile errors for macOS 10.12 #2

Merged
merged 1 commit into from
Oct 5, 2018

Commits on Oct 3, 2018

  1. Fix compile errors for macOS 10.12

    On macOS Sierra, running 'make bench' gives compile errors in all of the
    verilator testbenches, complaining about an ambiguous call to dump
    (because there is no dump() defined for a uint64_t, or clang++ doesn't
    define vluint64_t to be the same as uint64_t). This patch fixes those
    compiler errors
    
    Compiler error:
    
    mpy_tb.cpp:113:13: error: call to member function 'dump' is ambiguous
                            m_trace->dump((uint64_t)(10ul*m_tickcount+5));
                            ~~~~~~~~~^~~~
    /usr/local/Cellar/verilator/3.926/share/verilator/include/verilated_vcd_c.h:434:10: note: candidate function
        void dump (vluint64_t timeui) { m_sptrace.dump(timeui); }
             ^
    /usr/local/Cellar/verilator/3.926/share/verilator/include/verilated_vcd_c.h:437:10: note: candidate function
        void dump (double timestamp) { dump(static_cast<vluint64_t>(timestamp)); }
             ^
    /usr/local/Cellar/verilator/3.926/share/verilator/include/verilated_vcd_c.h:438:10: note: candidate function
        void dump (vluint32_t timestamp) { dump(static_cast<vluint64_t>(timestamp)); }
             ^
    /usr/local/Cellar/verilator/3.926/share/verilator/include/verilated_vcd_c.h:439:10: note: candidate function
        void dump (int timestamp) { dump(static_cast<vluint64_t>(timestamp)); }
    
    Clang version:
    $ clang++ -v
        Apple LLVM version 9.0.0 (clang-900.0.38)
        Target: x86_64-apple-darwin16.7.0
        Thread model: posix
    
    $ verilator --version
        Verilator 3.926 2018-08-22 rev UNKNOWN_REV
    C-Elegans committed Oct 3, 2018
    Configuration menu
    Copy the full SHA
    b99cf60 View commit details
    Browse the repository at this point in the history