[MacPorts] #35609: gcc @4.7.1 Fails compiling with -m32 on 64-bit system
MacPorts
noreply at macports.org
Thu Aug 9 08:07:35 PDT 2012
#35609: gcc @4.7.1 Fails compiling with -m32 on 64-bit system
-------------------------------+--------------------------------------------
Reporter: fh@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Keywords: gcc, -m32, 64-bit | Port: gcc47
-------------------------------+--------------------------------------------
Hi,
gcc 4.7.1 fails to compile the following program with flag -m32 on 64-bit
system.
{{{
#include <limits>
#include <iostream>
using namespace std;
int main()
{
cout << numeric_limits<int>::has_infinity << endl;
return 0;
}
}}}
The same problem has been discussed for Arch linux here:
http://comments.gmane.org/gmane.comp.gcc.help/41605 If I understand well
this is a problem of how gcc is built and packaged and not a problem of
gcc itself.
The output of "g++-mp-4.7 -m32 -v foo.cc" shows that some path is not set
properly (see attachment):
{{{
ignoring nonexistent directory "/opt/macports/lib/gcc47/gcc/x86_64-apple-
darwin10/4.7.1/../../../../../x86_64-apple-darwin10/include"
}}}
I am running Mac OS 10.6.8 on an Intel Core 2 Duo. I have macports 2.1.2.
--
Ticket URL: <https://trac.macports.org/ticket/35609>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list