Opened 13 years ago
Closed 7 years ago
#31736 closed defect (fixed)
gcc44, gcc45 precompiled headers broken on lion
Reported by: | spolitov@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | lion | Cc: | alexmo@… |
Port: | gcc44, gcc45 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
OS: Mac OS X 10.7.2 (Lion), Xcode: 4.2
When I try to use precompiled headers with gcc44 or gcc45 (didn't try gcc46) the compilation fails with error: had text segment at different address
gcc44 and gcc45 was installed with:
sudo port install gcc44 configure.compiler=apple-gcc-4.2
I've attached set of files to reproduce the problem.
Attachments (3)
Change History (12)
Changed 13 years ago by spolitov@…
Changed 13 years ago by spolitov@…
Attachment: | testpch.sh added |
---|
Changed 13 years ago by spolitov@…
comment:1 Changed 13 years ago by spolitov@…
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to mww@… |
comment:4 Changed 13 years ago by spolitov@…
I don't have any problems with install that mentioned in 31604. It installs but don't work properly. Moreover it works quite nice when I turn off precompiled headers in my project.
comment:5 Changed 13 years ago by jwiegley@…
I have this same issue, due to to the new Address Space Layout Randomization (ASLR) support in Lion.
comment:6 Changed 12 years ago by jmroot (Joshua Root)
Probably this upstream bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48004
comment:7 Changed 12 years ago by jmroot (Joshua Root)
Cc: | alexmo@… added |
---|
Replying to alexmo@…:
Why do you think that is related? Have the fixes to mpfr and gmp fixed this problem?
comment:8 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)
Owner: | changed from mww@… to macports-tickets@… |
---|---|
Status: | new → assigned |
comment:9 Changed 7 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Should be fixed in 4.5 at least according to upstream. And if it's not fixed in 4.4, it probably never will be, and the solution is to use a newer version.
In addition. If I build gcc44 on another Mac with Mac OS X 10.5, then copy it to this one. All works fine.