Opened 13 years ago

Closed 6 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)

1.c (59 bytes) - added by spolitov@… 13 years ago.
testpch.sh (164 bytes) - added by spolitov@… 13 years ago.
pch.xxx (19 bytes) - added by spolitov@… 13 years ago.

Download all attachments as: .zip

Change History (12)

Changed 13 years ago by spolitov@…

Attachment: 1.c added

Changed 13 years ago by spolitov@…

Attachment: testpch.sh added

Changed 13 years ago by spolitov@…

Attachment: pch.xxx added

comment:1 Changed 13 years ago by spolitov@…

In addition. If I build gcc44 on another Mac with Mac OS X 10.5, then copy it to this one. All works fine.

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 12 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)

comment:7 in reply to:  3 Changed 12 years ago by jmroot (Joshua Root)

Cc: alexmo@… added

Replying to alexmo@…:

https://trac.macports.org/ticket/31604

Why do you think that is related? Have the fixes to mpfr and gmp fixed this problem?

comment:8 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

Owner: changed from mww@… to macports-tickets@…
Status: newassigned

comment:9 Changed 6 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

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.

Note: See TracTickets for help on using tickets.