Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Sep 2009 19:13:03 +0200
From:      =?UTF-8?B?VsOhY2xhdiBIYWlzbWFu?= <v.haisman@sh.cvut.cz>
To:        freebsd-stable@freebsd.org
Subject:   GCC -m32 option on FreeBSD/AMD64 7.2
Message-ID:  <4A9D561F.5000808@sh.cvut.cz>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig4632A8CC3C0452AB472E351A
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi,
is C++ + GCC -m32 option officially supported by FreeBSD/AMD64 7.2? I am
getting the following errors for simplest input:

shell::wilx:~/tmp> cat >m32.cxx
#include <iostream>
shell::wilx:~/tmp> g++ -c m32.cxx
shell::wilx:~/tmp> g++ -m32 m32.cxx
In file included from /usr/include/c++/4.2/ext/new_allocator.h:37,
                 from /usr/include/c++/4.2/bits/c++allocator.h:39,
                 from /usr/include/c++/4.2/bits/allocator.h:53,
                 from /usr/include/c++/4.2/memory:54,
                 from /usr/include/c++/4.2/string:48,
                 from /usr/include/c++/4.2/bits/locale_classes.h:47,
                 from /usr/include/c++/4.2/bits/ios_base.h:47,
                 from /usr/include/c++/4.2/ios:48,
                 from /usr/include/c++/4.2/ostream:45,
                 from /usr/include/c++/4.2/iostream:45,
                 from m32.cxx:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter

--
VH


--------------enig4632A8CC3C0452AB472E351A
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)

iEYEAREIAAYFAkqdViUACgkQr2CghdezFMntaACgh5pCUWbYTMpVsczyd8H6HVud
nSgAnAj5wQGFRIgN/wZ+KyE0ZSDQ5oWH
=ygY3
-----END PGP SIGNATURE-----

--------------enig4632A8CC3C0452AB472E351A--



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