octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error: cannot pass object of non-POD type 'std::string' through vari


From: Rik
Subject: Re: error: cannot pass object of non-POD type 'std::string' through variadic function
Date: Wed, 9 Dec 2015 09:13:49 -0800

On 12/09/2015 09:00 AM, address@hidden wrote:
Subject:
error: cannot pass object of non-POD type 'std::string' through variadic function
From:
Ben Abbott <address@hidden>
Date:
12/08/2015 05:18 PM
To:
John Eaton <address@hidden>
CC:
octave-maintainers <address@hidden>
List-Post:
<mailto:address@hidden>
Content-Transfer-Encoding:
quoted-printable
Precedence:
list
MIME-Version:
1.0 (Mac OS X Mail 8.2 \(2104\))
Message-ID:
<address@hidden>
Content-Type:
text/plain; charset=utf-8
Message:
2

John, I’m seeing another error when building on Mac OS.

I encountered the errors below from tip 7883f240d8ea

libinterp/builtins.cc is unchanged
  CXX      libinterp/corefcn/libinterp_corefcn_libcorefcn_la-error.lo
libinterp/corefcn/error.cc:954:51: error: cannot pass object of non-POD type 'std::string' (aka 'basic_string<char, char_traits<char>, allocator<char> >') through variadic function;
      call will abort at runtime [-Wnon-pod-varargs]
              rethrow_error (id.c_str (), "%s\n", tmp_msg);
                                                  ^
libinterp/corefcn/error.cc:958:43: error: cannot pass object of non-POD type 'std::string' (aka 'basic_string<char, char_traits<char>, allocator<char> >') through variadic function;
      call will abort at runtime [-Wnon-pod-varargs]
        rethrow_error (id.c_str (), "%s", tmp_msg);
                                          ^
2 errors generated.
Makefile:17138: recipe for target 'libinterp/corefcn/libinterp_corefcn_libcorefcn_la-error.lo' failed
make[2]: *** [libinterp/corefcn/libinterp_corefcn_libcorefcn_la-error.lo] Error 1
make[2]: Leaving directory '/Users/bpabbott/Development/mercurial/default/sources'
Makefile:25839: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/Users/bpabbott/Development/mercurial/default/sources'
Makefile:9920: recipe for target 'all' failed
make: *** [all] Error 2

After reverting  779898f2a02a, I’m able to build again.

	hg revert --rev 779898f2a02a libinterp/corefcn/error.cc

I’m running Mac OS 10.10.5, and am using Apple’s clang

Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

Ben


Try updating one cset to

changeset:   20829:543eca132fa0
user:        Rik <address@hidden>
date:        Tue Dec 08 17:39:27 2015 -0800
summary:     Fix compilation error passing std::string through '...'.

--Rik



reply via email to

[Prev in Thread] Current Thread [Next in Thread]