Opened 13 years ago

Last modified 13 years ago

#30697 closed defect

gperf: C compiler cannot create executables — at Version 1

Reported by: will.pearse@… Owned by: mcalhoun@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: lion Cc: ryandesign@…
Port: gperf libnotify

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hello,

Following on from a previous ticket (#30668) which was closed, I contacted the user group list, who told me I should file another ticket with some more information. Here it is.

When I attempt to load gperf on OS Lion:

sudo port uninstall gperf
--->  Deactivating gperf @3.0.4_2
--->  Cleaning gperf
--->  Uninstalling gperf @3.0.4_2
--->  Cleaning gperf
lb-wdp08maclap:~ will$ sudo port clean gperf
--->  Cleaning gperf
lb-wdp08maclap:~ will$ sudo port clean gperf
--->  Cleaning gperf
lb-wdp08maclap:~ will$ sudo port install gperf +universal
--->  Fetching archive for gperf
--->  Attempting to fetch gperf-3.0.4_2+universal.darwin_11.i386-x86_64.tbz2 from http://packages.macports.org/gperf
--->  Fetching gperf
--->  Verifying checksum(s) for gperf
--->  Extracting gperf
--->  Applying patches to gperf
--->  Configuring gperf
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Log for gperf is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/gperf/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

...I get the above issues. I'm on a 2.66 GHz Intel Core 2 Duo MacBook Pro, with XCode 4.1 installed, running OS Lion. I've attached my main.log file.

Thanks for your time and for making MacPorts so useful!

Will

Change History (3)

Changed 13 years ago by will.pearse@…

Attachment: main.log added

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Description: modified (diff)
Keywords: lion added
Owner: changed from macports-tickets@… to mcalhoun@…
Port: gperf added
Summary: Gperf 3.0.4_2 - OS Lion - universal binary won't compilegperf: C compiler cannot create executables

Don't forget to fill in the Port field and to Cc the maintainer of that port.

So the log says:

error: C compiler cannot create executables

Often this means Xcode is not installed, but that doesn't seem like the correct diagnosis here, because we note that gperf uses the muniversal portgroup, which means it separately handles x86_64 and i386 architectures, and we see that it correctly configured the x86_64 part and is just having trouble with the i386 part. The log also says:

See `config.log' for more details.

So let's have a look at the i386 config.log; please attach it. It's inside the directory identified by the command:

echo $(port work gperf)/*-i386

Changed 13 years ago by will.pearse@…

Attachment: config.log added
Note: See TracTickets for help on using tickets.