Opened 12 years ago
Closed 12 years ago
#35609 closed defect (invalid)
gcc47 @4.7.1 Fails compiling with -m32 on 64-bit system
Reported by: | fh@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | 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.
Attachments (1)
Change History (5)
Changed 12 years ago by fh@…
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to mww@… |
---|---|
Summary: | gcc @4.7.1 Fails compiling with -m32 on 64-bit system → gcc47 @4.7.1 Fails compiling with -m32 on 64-bit system |
Has duplicate #35608.
comment:2 follow-up: 3 Changed 12 years ago by jmroot (Joshua Root)
Do you have gcc47 installed with +universal?
comment:3 Changed 12 years ago by fh@…
Replying to jmr@…:
Do you have gcc47 installed with +universal?
I have just updated gcc47 to version 4.7.2_2 with +universal. It works fine with the program above. Thanks!
comment:4 Changed 12 years ago by mf2k (Frank Schima)
Keywords: | gcc -m32 64-bit removed |
---|---|
Resolution: | → invalid |
Status: | new → closed |
log