Opened 10 years ago

Closed 3 years ago

#43622 closed defect (fixed)

freehdl @0.0.7: error: unknown template name 'hash'

Reported by: bengt.nilsson@… Owned by: Davide Gerhard <ra1nb0w@…>
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: jeisch@…, maehne (Torsten Maehne), dimkab, global667, xinbiks
Port: freehdl

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

Tried to install qucs, dependent of freehdl, which build failed.

--->  Computing dependencies for freehdl
--->  Building freehdl
Error: org.macports.build for port freehdl returned: command execution failed
Please see the log file for port freehdl for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_freehdl/freehdl/main.log

MacPorts base version 2.2.1 installed

Systemversion:	OS X 10.9.2 (13C1021)
 Kärnversion:	Darwin 13.1.0
 
Modellnamn:	Mac Pro
  Modellidentifierare:	MacPro5,1
  Processornamn:	Quad-Core Intel Xeon
  Processorhastighet:	2.8 GHz
  Antal processorer:	1
  Totalt antal kärnor:	4
  L2-cache (per kärna):	256 K
  L3-cache:	8 MB
  Minne:	32 GB

Attachments (1)

main.log (18.9 KB) - added by bengt.nilsson@… 10 years ago.
Build log for freehdl

Download all attachments as: .zip

Change History (16)

Changed 10 years ago by bengt.nilsson@…

Attachment: main.log added

Build log for freehdl

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to rowue@…
Summary: port freehdl @0.0.7 build errorfreehdl @0.0.7: error: unknown template name 'hash'

comment:2 Changed 10 years ago by guitorri@…

I am not using MacPorts, but the hash issue might be solved along the lines of: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=181830

It compiles, however it requires the libstc++:

CXX=clang++ CXXFLAGS=-stdlib=libstdc++ ./configure

Using libc++ it will choke as below... Perhaps you guys know how to fix this.

v2cc-explore.cc:2807:33: error: calling a private constructor of class 'std::__1::__wrap_iter<std::__1::vector<std::__1::pair<IIR_Type *, IIR_Type *>,
      std::__1::allocator<std::__1::pair<IIR_Type *, IIR_Type *> > > *>'
          association_type_map [key] = (vector<vector<pair<pIIR_Type, pIIR_Type > > >::iterator) &association_type_vectors [i];
                                       ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iterator:1220:31: note: declared private here
    _LIBCPP_INLINE_VISIBILITY __wrap_iter(iterator_type __x) _NOEXCEPT : __i(__x) {}
                              ^

My compiler:

~/build/freehdl-0.0.8 $ clang++ --version
Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.2.0
Thread model: posix 

comment:3 Changed 10 years ago by gnvien@…

I have the same problem when trying to install Qucs on Mavericks : "Error: Failed to install freehdl"

Any patches for freehdl ?

Many thanks

comment:4 Changed 10 years ago by jeisch@…

Cc: jeisch@… added

Cc Me!

comment:5 Changed 9 years ago by maehne (Torsten Maehne)

Cc: Torsten.Maehne@… added

Cc Me!

comment:6 Changed 9 years ago by dimkab

Cc: dima.batenkov@… added

Cc Me!

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

Cc: global667 added

Has duplicate #52807.

comment:8 Changed 6 years ago by kurthindenburg (Kurt Hindenburg)

Owner: rowue@… deleted
Status: newassigned

comment:9 Changed 6 years ago by rshuston

Using the suggestion from guitorri@…, I was able to get it to build by adding

configure.cmd CXX=clang++ CXXFLAGS=-stdlib=libstdc++ ./configure

to the end of:

/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/science/freehdl/Portfile

Version 1, edited 6 years ago by rshuston (previous) (next) (diff)

comment:10 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

OpenBSD has patches here; let me see if we can use those.

comment:11 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: xinbiks added

Has duplicate #59759.

comment:12 in reply to:  9 Changed 4 years ago by rmacd (rmacd)

Replying to rshuston:

Using the suggestion from guitorri @ gmail.com, I was able to get it to build by adding

configure.cmd CXX=clang++ CXXFLAGS=-stdlib=libstdc++ ./configure

to the end of:

/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/science/freehdl/Portfile

Thanks - this worked for me, MacPorts 2.6.2 on Darwin 17.7.0

My compiler:

$ clang++ --version
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

comment:13 Changed 4 years ago by kencu (Ken)

most distros have moved on to 0.0.8 that apparently is supposed to fix this, but I can't find the source anywhere at present due to some rearranging of things at SourceForge.

comment:14 in reply to:  9 Changed 4 years ago by neal-wood

Replying to rshuston:

Using the suggestion from guitorri @ gmail.com, I was able to get it to build by adding

configure.cmd CXX=clang++ CXXFLAGS=-stdlib=libstdc++ ./configure

to the end of:

/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/science/freehdl/Portfile

FWIW, this methods worked for me for freehdl @0.0.7_1 on Lion.

Also, 0.0.8 is bundled with now Qucs https://sourceforge.net/projects/qucs/

comment:15 Changed 3 years ago by Davide Gerhard <ra1nb0w@…>

Owner: set to Davide Gerhard <ra1nb0w@…>
Resolution: fixed
Status: assignedclosed

In ce78c07032c4beb86083b2320376439193a87c7b/macports-ports (master):

freehdl: update version to 0.0.8

fix all compile issues with OpenBSD patches

Closes: #43622

Note: See TracTickets for help on using tickets.