Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#59759 closed defect (duplicate)

freehdl: error: unknown template name 'hash'

Reported by: xinbiks Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: xinbiks
Port: freehdl

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I used the command sudo port install qucs to install it but after a while i have an error while building freehdl.... I tried to do the same as in here #43622 but i couldn't be able to edit the file "Portfile" as the ticket sais (Append configure.cmd CXX=clang++ CXXFLAGS=-stdlib=libstdc++ ./configure to /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/science/freehdl/Portfile then sudo port clean; sudo port install freehdl. )

HERE MY ERROR

--->  Building freehdl
Error: Failed to build freehdl: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_freehdl/freehdl/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port qucs failed

Attachments (1)

main copia.log (303.8 KB) - added by xinbiks 5 years ago.
Main log

Download all attachments as: .zip

Change History (9)

comment:1 Changed 5 years ago by xinbiks

Port: FREEHDL added

comment:2 Changed 5 years ago by xinbiks

Cc: xinbiks added

comment:3 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: FREEHDL PORTS QUCS removed
Port: freehdl added; FREEHDL removed
Priority: HighNormal
Summary: Cannot install qucsCannot install freehdl
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_freehdl/freehdl/main.log for details.

Please attach this main.log file; without it, we can't know what went wrong.

comment:4 in reply to:  description ; Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to xinbiks:

i couldn't be able to edit the file "Portfile"

Why not?

Changed 5 years ago by xinbiks

Attachment: main copia.log added

Main log

comment:5 in reply to:  4 ; Changed 5 years ago by xinbiks

Replying to ryandesign:

Replying to xinbiks:

i couldn't be able to edit the file "Portfile"

Why not?

Because, i dont have permissions but i don't know why because i am admin....

comment:6 Changed 5 years ago by kencu (Ken)

831	:info:build /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/ext/hash_map:213:5: warning: Use of the header <ext/hash_map> is deprecated.  Migrate to <unordered_map> [-W#warnings]
832	:info:build #   warning Use of the header <ext/hash_map> is deprecated.  Migrate to <unordered_map>
833	:info:build     ^
834	:info:build In file included from attributes.cc:4:
835	:info:build In file included from ../freehdl/kernel-sig-info.hh:8:
836	:info:build In file included from ../freehdl/std-standard.hh:6:
837	:info:build In file included from ../freehdl/std-vhdl-types.hh:2220:
838	:info:build In file included from ../freehdl/kernel-db.hh:80:
839	:info:build ../freehdl/kernel-util.hh:27:29: error: unknown template name 'hash'
840	:info:build class pointer_hash : public hash<unsigned long> {
841	:info:build                             ^
842	:info:build In file included from error.cc:4:
843	:info:build In file included from ../freehdl/std-vhdl-types.hh:../freehdl/kernel-util.hh:30:15: error: reference to 'hash' is ambiguous
844	:info:build 2220    return (*(hash<unsigned long> *)this)(((unsigned long)x)>>2);
845	:info:build               ^
846	:info:build :
847	:info:build /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits:417:50: note: candidate found by name lookup is 'std::__1::hash'
848	:info:build In file included from template <class _Tp> struct _LIBCPP_TEMPLATE_VIS hash;
849	:info:build                                                  ^
850	:info:build /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/ext/__hash:22:53: note: candidate found by name lookup is '__gnu_cxx::hash'
851	:info:build template <typename _Tp> struct _LIBCPP_TEMPLATE_VIS hash { };
852	:info:build                                                     ^

looks like this software needs an update for current compilers.

Options are to find out if it's been updated and if so, update our port -- or maybe you might be able to build it with an older compiler like clang-5.0 or similar.

comment:7 in reply to:  6 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed
Summary: Cannot install freehdlfreehdl: error: unknown template name 'hash'

Replying to kencu:

839	:info:build ../freehdl/kernel-util.hh:27:29: error: unknown template name 'hash'

Ok, so this is indeed a duplicate of #43622. See that ticket for a link to OpenBSD's patches for this software, which I will test and apply to the port if it will help.

comment:8 in reply to:  5 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to xinbiks:

Replying to ryandesign:

Replying to xinbiks:

i couldn't be able to edit the file "Portfile"

Why not?

Because, i dont have permissions but i don't know why because i am admin....

Use sudo.

Note: See TracTickets for help on using tickets.