Date: Thu, 25 Sep 2014 08:11:02 +0930 From: Shane Ambler <FreeBSD@ShaneWare.Biz> To: Matthias Andree <matthias.andree@gmx.de>, freebsd-ports@freebsd.org Cc: Konstantin Belousov <kostikbel@gmail.com> Subject: Re: Need help compiling use of std::vector Message-ID: <5423487E.9050109@ShaneWare.Biz> In-Reply-To: <5423140D.8080005@gmx.de> References: <5422DD61.4030808@ShaneWare.Biz> <5423140D.8080005@gmx.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 25/09/2014 04:27, Matthias Andree wrote: > Am 24.09.2014 um 17:04 schrieb Shane Ambler: >> Using the above code >> clang++ -m32 test.cpp >> fails with >> >> /usr/include/c++/4.2/bits/stl_algobase.h:641:15: error: assigning to >> 'const char *' from incompatible type 'const int' > > I don't think "-m32" compilation has ever worked properly for C++ on the > older FreeBSD releases, where older includes 9.3. > > You're probably better off trying to build with 32-bit chroots or jails > on your 64-bit host, like poudriere or Tinderbox are doing (but I'm not > sure if they support setting up 32-bit jails on 64-bit computers). > > See here > <https://lists.freebsd.org/pipermail/freebsd-stable/2009-September/051855.html> > > so it's a long-standing thing, and for "recent" developments: > > <https://lists.freebsd.org/pipermail/freebsd-current/2013-June/042378.html> > -so that would have been for 10-CURRENT at the time, and hints that the > headers weren't pure enough for -m32 and similar tricks. > > I am not aware that this effort was ever MFH'd. > > I am Cc'ing Konstantin Belousov in case he wants to shed more light on > this issue. My poudriere setup is where I encountered the error. The -m32 was just a test compile of the simplified test code, that produced the same error as within a 32 bit jail. While using -m32 does produce the same error, it appears to always produce the error with all the changes I tried. Compiling the variations I tried within a 32 bit jail gives a favourable result that I can test further. I assumed that compiling a small test code would tell me if the change worked. I should have thought about doing it all in a 32bit jail. Thanks.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5423487E.9050109>