Opened 12 years ago
Closed 12 years ago
#35608 closed defect (duplicate)
gcc @4.7.1 Fails compiling with -m32 on 64-bit system
Reported by: | fh@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | gcc, -m32, 64-bit | Cc: | |
Port: | gcc47 |
Description
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.
Change History (1)
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Duplicate of #35609.