Opened 4 years ago
Closed 23 months ago
#61126 closed defect (invalid)
verilator: fails to compile "trace" output
Reported by: | ragge0 (Anders Magnussoon) | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | verilator |
Description (last modified by mf2k (Frank Schima))
I tried to use the macports version of verilator to generate a trace file, but it complains about the system headers. Normal usage of verilator works just fine.
Macos 10.15.3 MacPorts 2.6.3
Here is the complete compilation output. The clang error is quite obvious, but I don't understand why it fails (I do not have deep enough knowledge about macos compilation environment).
-- R
verilator --trace -Wall -Mdir nvaxtracedir --prefix Vnvax -cc -y .. sbi.v (cd nvaxtracedir; make -f Vnvax.mk) /usr/bin/clang++ -I. -MMD -I/opt/local/share/verilator/include -I/opt/local/share/verilator/include/vltstd -DVM_COVERAGE=0 -DVM_SC=0 -DVM_TRACE=1 -faligned-new -fbracket-depth=4096 -fcf-protection=none -Qunused-arguments -Wno-parentheses-equality -Wno-sign-compare -Wno-uninitialized -Wno-unused-parameter -Wno-unused-variable -Wno-shadow -c -o Vnvax__ALLfast.o Vnvax__ALLfast.cpp In file included from Vnvax__ALLfast.cpp:4: In file included from ./Vnvax__Trace.cpp:3: In file included from /opt/local/share/verilator/include/verilated_vcd_c.h:24: In file included from /opt/local/share/verilator/include/verilated_trace.h:27: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:504: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string_view:175: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__string:56: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:643: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:656: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:163:6: error: enumeration previously declared as scoped enum align_val_t { __zero = 0, __max = (size_t)-1 }; ^ note: previous declaration is here /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:203:102: error: no type named 'align_val_t' in namespace 'std' ...void* operator new(std::size_t __sz, std::align_val_t) _THROW_BAD_ALLOC; ~~~~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:204:102: error: no type named 'align_val_t' in namespace 'std' ...void* operator new(std::size_t __sz, std::align_val_t, const std::nothro... ~~~~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:205:68: error: no type named 'align_val_t' in namespace 'std' _LIBCPP_OVERRIDABLE_FUNC_VIS void operator delete(void* __p, std::align... ~~~~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:206:68: error: no type named 'align_val_t' in namespace 'std' _LIBCPP_OVERRIDABLE_FUNC_VIS void operator delete(void* __p, std::align... ~~~~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:211:104: error: no type named 'align_val_t' in namespace 'std' ...void* operator new[](std::size_t __sz, std::align_val_t) _THROW_BAD_ALLOC; ~~~~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:212:104: error: no type named 'align_val_t' in namespace 'std' ...void* operator new[](std::size_t __sz, std::align_val_t, const std::noth... ~~~~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:213:70: error: no type named 'align_val_t' in namespace 'std' ...void operator delete[](void* __p, std::align_val_t) _NOEXCEPT; ~~~~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:214:70: error: no type named 'align_val_t' in namespace 'std' ...void operator delete[](void* __p, std::align_val_t, const std::nothrow_... ~~~~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:240:11: error: unknown type name 'align_val_t' const align_val_t __align_val = static_cast<align_val_t>(__align); ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:240:49: error: unknown type name 'align_val_t' const align_val_t __align_val = static_cast<align_val_t>(__align); ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:299:78: error: unknown type name 'align_val_t' ...void __do_deallocate_handle_size(void *__ptr, size_t __size, align_val_... ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:265:13: error: unknown type name 'align_val_t' const align_val_t __align_val = static_cast<align_val_t>(__align); ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:265:51: error: unknown type name 'align_val_t' const align_val_t __align_val = static_cast<align_val_t>(__align); ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:280:13: error: unknown type name 'align_val_t' const align_val_t __align_val = static_cast<align_val_t>(__align); ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:280:51: error: unknown type name 'align_val_t' const align_val_t __align_val = static_cast<align_val_t>(__align); ^ In file included from Vnvax__ALLfast.cpp:4: In file included from ./Vnvax__Trace.cpp:3: In file included from /opt/local/share/verilator/include/verilated_vcd_c.h:24: In file included from /opt/local/share/verilator/include/verilated_trace.h:27: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:504: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string_view:175: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__string:56: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:643: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2035:18: error: no type named 'align_val_t' in namespace 'std' std::align_val_t __al = ~~~~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2036:22: error: no member named 'align_val_t' in namespace 'std' std::align_val_t(std::alignment_of<_Tp>::value); ~~~~~^ 18 errors generated. make[1]: *** [Vnvax__ALLfast.o] Error 1 make: *** [nvaxtracedir/Vnvax__ALL.a] Error 2
Change History (4)
comment:1 Changed 4 years ago by mf2k (Frank Schima)
comment:2 Changed 4 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|---|
Owner: | set to MarcusCalhoun-Lopez |
Port: | verilator added |
Status: | new → assigned |
comment:3 Changed 4 years ago by mf2k (Frank Schima)
Summary: | verilator in ports fail to compile "trace" output → verilator: fails to compile "trace" output |
---|
comment:4 Changed 23 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
I do not believe this is a verilator problem.
The code seems to require C++17.
Note: See
TracTickets for help on using
tickets.
In the future, please use WikiFormatting, fill in the Port field and add the port maintainer(s) to Cc (
port info --maintainers verilator
), if any.