[MacPorts] #61126: verilator in ports fail to compile "trace" output
MacPorts
noreply at macports.org
Sat Sep 5 13:18:05 UTC 2020
#61126: verilator in ports fail to compile "trace" output
--------------------+--------------------
Reporter: ragge0 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port:
--------------------+--------------------
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
--
Ticket URL: <https://trac.macports.org/ticket/61126>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list