Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#16745 closed defect (wontfix)

Allow multiple ports to compile with apple's gcc 4.2 on tiger

Reported by: illogical1@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: fix compilation gcc 4.2 apple-gcc42 Cc: ryandesign (Ryan Carsten Schmidt)
Port: expat giflib ilmbase jasper lcms libgpg-error libvorbis lzmautils openexr subversion tiff flac pth

Description

The following Portfile patches allow compilation with apple's gcc 4.2. Tested on 10.4.

Attachments (14)

apple-gcc42_build_expat.diff (485 bytes) - added by illogical1@… 16 years ago.
apple-gcc42_build_giflib.diff (512 bytes) - added by illogical1@… 16 years ago.
apple-gcc42_build_ilmbase.diff (462 bytes) - added by illogical1@… 16 years ago.
apple-gcc42_build_jasper.diff (454 bytes) - added by illogical1@… 16 years ago.
apple-gcc42_build_lcms.diff (434 bytes) - added by illogical1@… 16 years ago.
apple-gcc42_build_libgpg-error.diff (486 bytes) - added by illogical1@… 16 years ago.
apple-gcc42_build_libvorbis.diff (385 bytes) - added by illogical1@… 16 years ago.
apple-gcc42_build_lzmautils.diff (512 bytes) - added by illogical1@… 16 years ago.
apple-gcc42_build_openexr.diff (469 bytes) - added by illogical1@… 16 years ago.
apple-gcc42_build_subversion.diff (663 bytes) - added by illogical1@… 16 years ago.
apple-gcc42_build_tiff.diff (462 bytes) - added by illogical1@… 16 years ago.
apple-gcc42_build_universal_build_flac.diff (620 bytes) - added by illogical1@… 16 years ago.
apple-gcc42_build_universal_build_pth.diff (673 bytes) - added by illogical1@… 16 years ago.
universal_build_boost-jam.diff (800 bytes) - added by illogical1@… 16 years ago.
Add boost-jam patch from ticket 14064

Download all attachments as: .zip

Change History (26)

Changed 16 years ago by illogical1@…

Changed 16 years ago by illogical1@…

Changed 16 years ago by illogical1@…

Changed 16 years ago by illogical1@…

Changed 16 years ago by illogical1@…

Attachment: apple-gcc42_build_lcms.diff added

Changed 16 years ago by illogical1@…

Changed 16 years ago by illogical1@…

Changed 16 years ago by illogical1@…

Changed 16 years ago by illogical1@…

Changed 16 years ago by illogical1@…

Changed 16 years ago by illogical1@…

Attachment: apple-gcc42_build_tiff.diff added

Changed 16 years ago by illogical1@…

Changed 16 years ago by illogical1@…

Changed 16 years ago by illogical1@…

Add boost-jam patch from ticket 14064

comment:1 Changed 16 years ago by illogical1@…

universal_build_boost-jam.diff is for another ticket.

comment:2 Changed 16 years ago by afb@…

What is the failure with apple gcc 4.2 on tiger, without the patch applied ?

comment:3 Changed 16 years ago by illogical1@…

the failure on tiger is /usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: unknown flag: -compatibility_version If the ${wl} is remove then the error goes away as nothing gets passed to the linker.

comment:4 Changed 16 years ago by illogical1@…

This is only a problem when apple's gcc 4.2 is used in tiger, as I realized while talking to afb on irc. I'll have to test whether updating libtool fixes this. So the status is this

on tiger with gcc 4.0, compilation works. on leopard with gcc 4.2, compilation works (for the one port I tested). on tiger with gcc 4.2 compilation breaks @ linking.

comment:5 in reply to:  4 Changed 16 years ago by boeyms@…

Replying to illogical1@…:

I'll have to test whether updating libtool fixes this.

As the current maintainer of libtool (I'd be happy to hand this job to someone who uses it more frequently than I do), I'd just like to mention that it seems that the current libtool port will need to be split into one for the 1.5.x line and one for 2.x, as at least one port (libxslt) builds with the former but fails to build with the latter.

comment:6 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

@boeyms: we now have the libtool port for version 2 and the libtool1 port for version 1.

@illogical1: ports compile with whatever compiler they've selected with ${configure.compiler}, which by default is gcc 4.0 on Tiger and Leopard. Apple doesn't even provide a gcc 4.2 on Tiger. So how are you running into this problem at all?

comment:7 in reply to:  6 Changed 16 years ago by illogic-al@…

Replying to ryandesign@…:

@boeyms: we now have the libtool port for version 2 and the libtool1 port for version 1.

@illogical1: ports compile with whatever compiler they've selected with ${configure.compiler}, which by default is gcc 4.0 on Tiger and Leopard. Apple doesn't even provide a gcc 4.2 on Tiger. So how are you running into this problem at all?

I installed gcc-4.2 on Tiger, reason being 4.0.1 is too bug ridden to compile KDE4 properly. Which brings us to: ticket #16666

comment:8 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:9 Changed 15 years ago by tobypeterson

What's the deal here? Most of the ports listed compile fine with gcc 4.2

comment:10 in reply to:  9 Changed 15 years ago by illogic-al@…

Replying to toby@…:

What's the deal here? Most of the ports listed compile fine with gcc 4.2

Was/Is a problem on 10.4 which has a problem w/ -Wno-long-double and some other stuff I forget.

comment:11 Changed 15 years ago by jmroot (Joshua Root)

Resolution: wontfix
Status: newclosed

comment:12 Changed 15 years ago by jmroot (Joshua Root)

Summary: Allow macports to compile with apple's gcc 4.2Allow multiple ports to compile with apple's gcc 4.2 on tiger
Note: See TracTickets for help on using tickets.