On Sat 09 May 2020 at 20:57:55 +0200, Rhialto wrote:
> On Fri 08 May 2020 at 22:29:13 +0200, Rhialto wrote:
> > gcc 7 had the same problem. Earlier versions has patches to fix this,
> > but these were not present in gcc 7. It sounds like they are missing in
> > version 8 too.
> >
> > The relevant patches are
> >
> > patch-gcc_config.host
> > patch-gcc_config_host-netbsd.c
> > patch-gcc_config_x-netbsd
> >
> > and indeed the first two are missing in lang/gcc8/patches. Simply adding
> > them and rebuilding should fix the issue (unless the patches need some
> > kind of update).
>
> I'm test-building now. It will be a while, but if it looks successful,
> shall I commit? I hope to include the distinfo file this time :)
It seems to work. This is my test case (essentially the same as I used
for gcc7). Run one or more times with "sh cc.cc".
cc.cc:
# /*
I="-I /usr/pkg/include"
G=/usr/pkg/gcc8/bin
set -x
$G/g++ $I -H cc.cc
$G/g++ $I cc.hh
$G/g++ $I -H -Winvalid-pch cc.cc
exit $?
*/
#include "cc.hh"
using namespace std;
using namespace boost::xpressive;
//A simple regex test
int main()
{
std::string hello( "hello world!" );
sregex rex = sregex::compile( "(\\w+) (\\w+)!" );
smatch what;
if( regex_match( hello, what, rex ) )
{
std::cout << what[0] << '\n'; // whole match
std::cout << what[1] << '\n'; // first capture
std::cout << what[2] << '\n'; // second capture
}
return 0;
}
cc.hh:
#include <boost/xpressive/xpressive.hpp>
#include <iostream>
-Olaf.
--
Olaf 'Rhialto' Seibert -- rhialto at falu dot nl
___ Anyone who is capable of getting themselves made President should on
\X/ no account be allowed to do the job. --Douglas Adams, "THGTTG"
Attachment:
signature.asc
Description: PGP signature