Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Aug 2018 03:22:18 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r477993 - head/biology/avida
Message-ID:  <201808250322.w7P3MIAl092994@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sat Aug 25 03:22:18 2018
New Revision: 477993
URL: https://svnweb.freebsd.org/changeset/ports/477993

Log:
  biology/avida: Fix build with Clang 6
  
  avida-core/source/main/cPopulation.cc:2916:20: error: no matching member function for call to 'push_back'
      track_founders.push_back(make_pair(organism->GetBioGroup("genotype")->GetID(), new_genome.AsString()));
      ~~~~~~~~~~~~~~~^~~~~~~~~
  /usr/include/c++/v1/vector:688:36: note: candidate function not viable: no known conversion from 'pair<[...], typename __make_pair_return<cString>::type>' to 'const pair<[...], std::__1::basic_string<char>>' for 1st argument
      _LIBCPP_INLINE_VISIBILITY void push_back(const_reference __x);
                                     ^
  /usr/include/c++/v1/vector:691:36: note: candidate function not viable: no known conversion from 'pair<[...], typename __make_pair_return<cString>::type>' to 'pair<[...], std::__1::basic_string<char>>' for 1st argument
      _LIBCPP_INLINE_VISIBILITY void push_back(value_type&& __x);
                                     ^
  
  http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/avida-2.12.4.log
  
  libs/tcmalloc-1.4/src/sysinfo.cc:832:88: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
                            "%08"PRIx64"-%08"PRIx64" %c%c%c%c %08"PRIx64" %02x:%02x %-11"PRId64" %s\n",
                                                                                         ^

Modified:
  head/biology/avida/Makefile

Modified: head/biology/avida/Makefile
==============================================================================
--- head/biology/avida/Makefile	Sat Aug 25 03:13:37 2018	(r477992)
+++ head/biology/avida/Makefile	Sat Aug 25 03:22:18 2018	(r477993)
@@ -21,6 +21,7 @@ BROKEN_sparc64=		missing atomics implementation
 BROKEN_powerpc64=	fails to compile: sibling call optimization does not allow automatic multiple TOCs
 
 USES=		cmake:outsource ncurses
+USE_CXXSTD=	gnu++98
 CMAKE_ARGS=	-DAPTO_UNIT_TESTS:BOOL=OFF \
 		-DAVD_UNIT_TESTS:BOOL=OFF \
 		-DNCURSES_INCLUDE_PATH:STRING="${NCURSESINC}"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808250322.w7P3MIAl092994>