Opened 10 years ago

Closed 14 months ago

#30240 closed defect (worksforme)

Installing gcc45 +universal does not result in a universal gcc45

Reported by: wlipa (Bill Lipa) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.99
Keywords: Cc: cooljeanius (Eric Gallager)
Port: gcc45

Description

I'm trying to create a gcc45 install that will work on either 32 or 64 bit Intel. The dependencies appear to get built with +universal but the resulting gcc binaries are 64 bit only.

I started with a clean MacPorts install of 2.0.0rc1 on Snow Leopard.

$ port installed
No ports are installed.
$ sudo port mpkg gcc45 +universal
...
$ sudo port install gcc45 +universal
--->  Computing dependencies for gcc45
--->  Installing gcc45 @4.5.3_0+universal
--->  Activating gcc45 @4.5.3_0+universal
--->  Cleaning gcc45

Sample dependency that has universal binary:

$ file /opt/local/bin/xgettext
/opt/local/bin/xgettext: Mach-O universal binary with 2 architectures
/opt/local/bin/xgettext (for architecture i386):	Mach-O executable i386
/opt/local/bin/xgettext (for architecture x86_64):	Mach-O 64-bit executable x86_64

But the gcc binaries are 64 bit only:

$ file /opt/local/bin/*gcc*
/opt/local/bin/gcc-mp-4.5:                       Mach-O 64-bit executable x86_64
/opt/local/bin/gccbug-mp-4.5:                    POSIX shell script text executable
/opt/local/bin/x86_64-apple-darwin10-gcc-4.5.3:  Mach-O 64-bit executable x86_64
/opt/local/bin/x86_64-apple-darwin10-gcc-mp-4.5: Mach-O 64-bit executable x86_64

Change History (5)

comment:1 Changed 10 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to mww@…
Port: gcc45 added

Please remember to fill in the Port field and cc the maintainer.

The universal variant for gcc actually enables multilib. An actual universal build of gcc is probably "patches welcome" territory.

comment:2 Changed 10 years ago by wlipa (Bill Lipa)

Thanks for the clarification. I was confused by the difference in meaning of +universal between gcc45 and other ports I have looked at.

comment:3 Changed 7 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:4 Changed 4 years ago by kurthindenburg (Kurt Hindenburg)

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

comment:5 Changed 14 months ago by kencu (Ken)

Resolution: worksforme
Status: assignedclosed
Note: See TracTickets for help on using tickets.