From owner-freebsd-amd64@FreeBSD.ORG Tue Dec 23 18:08:22 2008 Return-Path: Delivered-To: amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11F1C106564A for ; Tue, 23 Dec 2008 18:08:22 +0000 (UTC) (envelope-from wieczyk@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.234]) by mx1.freebsd.org (Postfix) with ESMTP id D896C8FC16 for ; Tue, 23 Dec 2008 18:08:21 +0000 (UTC) (envelope-from wieczyk@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so3980544rvf.43 for ; Tue, 23 Dec 2008 10:08:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Woig57l+ZZSscuT3FT1ZcfxEJ6M44YV+wcSI/997xnU=; b=WgAuILW1PSktO642s1UqgKuTq2sn7z4LOPl20UQFrJJ7WO5F7/k6e0qhPVZLtVSXv+ jrxnkOKoWnlr6vq5xD9r3jEUwODsXxBE6ujVDTr5j1gbBYGUVnckU2udfcm0ZgDaPpSx 92m9SBc0XhBB2x4uFR1ia9p1hN0hXd6IE6GtU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=WTVciYRHAPcbpU/bqjhNTvDAI0nppnvufBEwnLWr7kEvsM4PIdsFJ3tYSrZQdQwX2r Uv1DZu9YbDJ1wxwgSRHis9y+BC7u/MUA1hyxz4tWEJhB7LFj3qJDTW8trV2I2l9CfG7x 6zULcx09DCPA/pJqmbR0LeSmzXxBLhQRv9vu4= Received: by 10.141.50.11 with SMTP id c11mr3865246rvk.28.1230054360883; Tue, 23 Dec 2008 09:46:00 -0800 (PST) Received: by 10.141.189.21 with HTTP; Tue, 23 Dec 2008 09:46:00 -0800 (PST) Message-ID: <1255bf0d0812230946nc90ee38u28b040c3d720868a@mail.gmail.com> Date: Tue, 23 Dec 2008 17:46:00 +0000 From: "=?ISO-8859-2?Q?Pawe=B3_Wieczorek?=" To: "Garrett Cooper" In-Reply-To: <7d6fde3d0812222135l753daf54geb37b696c9c1cf8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7d6fde3d0812222135l753daf54geb37b696c9c1cf8@mail.gmail.com> Cc: amd64@freebsd.org, stable Subject: Re: -m32 broken on bi-arch amd64 systems? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Dec 2008 18:08:22 -0000 I will extend topic to C++: [19:38] zubr:~/Code (1) $ g++ -m32 -B /usr/lib32 p.cpp 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 p.cpp: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 [19:38] zubr:~/Code (1) $ cat p.cpp #include int main() { return 0; } [19:39] zubr:~/Code $ Problem with C++ is more connected to headers than binaries, any suggestions how to use G++ to produce 32bit code ?