Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#51513 closed defect (invalid)

gperf: configure failed

Reported by: rkjones.iii@… Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: gperf

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

When trying to install boost universal on 10.7.5 I get the following errors

compiles-imac:growcoin-master compile$ sudo port install boost +no_single+no_static+python27+universal
Password:
--->  Configuring gperf
Error: Failed to configure gperf, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gperf/gperf/work/gperf-3.0.4/config.log
Error: org.macports.configure for port gperf returned: configure failure: command execution failed
Please see the log file for port gperf for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gperf/gperf/main.log
Error: Unable to upgrade port: 1
Error: Unable to execute port: upgrade zlib failed

I also cannot upgrade zlib as it does not find anything needing upgrading.

Attachments (2)

main.log (8.6 KB) - added by rkjones.iii@… 8 years ago.
main.log
config.log (5.6 KB) - added by rkjones.iii@… 8 years ago.
from the lib folder

Download all attachments as: .zip

Change History (15)

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

Description: modified (diff)
Owner: changed from macports-tickets@… to mcalhoun@…
Port: gperf added
Summary: Unable to install boost +universalgperf: configure failed

Please run:

sudo port clean gperf

Then try again. If it fails again, please attach the main.log file.

Changed 8 years ago by rkjones.iii@…

Attachment: main.log added

main.log

comment:2 Changed 8 years ago by rkjones.iii@…

i was looking at the main.log and was wondering if this could be my issue?

:info:configure configure: error: C compiler cannot create executables
Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 8 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Status: newassigned

You would get this error if you did not have the command line tools installed (see the FAQ entry).
MacPorts should detect this error, however.
Are you running the latest version of MacPorts?
If not, please run

sudo port selfupdate
sudo port clean gperf
sudo port install gperf

If you still get the same error, please have a look at

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gperf/gperf/work/gperf-3.0.4/config.log

for clues as to why your compiler is failing.

comment:4 Changed 8 years ago by rkjones.iii@…

i am running the latest version of macports, i have xcode and the command line tools installed and i have also ran xcode so i can agree to the agreement and i did those commands but it didnt try to install gperf until i tried to install boost, also attached is the config.log

comment:5 Changed 8 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Sorry, but I asked for the wrong file.
Could you please look at

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gperf/gperf/work/gperf-3.0.4/lib/config.log

for clues as to why your compiler is failing.

comment:6 Changed 8 years ago by rkjones.iii@…

no problem at all here is the correct one

Changed 8 years ago by rkjones.iii@…

Attachment: config.log added

from the lib folder

comment:7 Changed 8 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

The library /usr/lib/libunwind.dylib seems to be the problem.
It seems to be the wrong architecture (x86_64?) but your are trying to build a universal binary (x86_64 and i386).

The questions is where /usr/lib/libunwind.dylib came from.
On the systems I checked, libunwind.dylib is in /usr/lib/system and is a universal library.
file /usr/lib/system/libunwind.dylib yields

/usr/lib/system/libunwind.dylib: Mach-O universal binary with 2 architectures
/usr/lib/system/libunwind.dylib (for architecture i386):	Mach-O dynamically linked shared library i386
/usr/lib/system/libunwind.dylib (for architecture x86_64):	Mach-O 64-bit dynamically linked shared library x86_64

Do you have some sort of custom setup in which you installed /usr/lib/libunwind.dylib yourself?

comment:8 in reply to:  7 Changed 8 years ago by rkjones.iii@…

Replying to mcalhoun@…:

The library /usr/lib/libunwind.dylib seems to be the problem.
It seems to be the wrong architecture (x86_64?) but your are trying to build a universal binary (x86_64 and i386).

The questions is where /usr/lib/libunwind.dylib came from.
On the systems I checked, libunwind.dylib is in /usr/lib/system and is a universal library.
file /usr/lib/system/libunwind.dylib yields

/usr/lib/system/libunwind.dylib: Mach-O universal binary with 2 architectures
/usr/lib/system/libunwind.dylib (for architecture i386):	Mach-O dynamically linked shared library i386
/usr/lib/system/libunwind.dylib (for architecture x86_64):	Mach-O 64-bit dynamically linked shared library x86_64

Do you have some sort of custom setup in which you installed /usr/lib/libunwind.dylib yourself?

to be honest i dont even know what that is, i installed a select few ports to compile qt apps so the only thing i can think of is it came with one of the ports i installed but i dont know for sure

comment:9 Changed 8 years ago by rkjones.iii@…

is there a way i can fix this so i can update/install ports and get my compiler working again?

comment:10 in reply to:  9 ; Changed 8 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Replying to rkjones.iii@…:

is there a way i can fix this so i can update/install ports and get my compiler working again?

I am afraid this question is outside my area of expertise.

Perhaps libunwind.dylib is supposed to be in /usr/lib/ on 10.7.5.
I no longer have a machine on which to test.
On my machine (10.11.5), it is located in /usr/lib/system/
MacPorts does not install anything into /usr/lib, so I doubt it came from a previous port installation.

What is the result of running the commands?

file /usr/lib/system/libunwind.dylib
file /usr/lib/libunwind.dylib

You also might also have some luck in asking for help on one of the MacPorts Mailing Lists.

comment:11 Changed 8 years ago by rkjones.iii@…

here is the output of the command

compiles-imac:~ compile$ file /usr/lib/system/libunwind.dylib

/usr/lib/system/libunwind.dylib: Mach-O universal binary with 2 architectures

/usr/lib/system/libunwind.dylib (for architecture x86_64):	Mach-O 64-bit dynamically linked shared library x86_64

/usr/lib/system/libunwind.dylib (for architecture i386):	Mach-O dynamically linked shared library i386

compiles-imac:~ compile$ file /usr/lib/libunwind.dylib

/usr/lib/libunwind.dylib: Mach-O 64-bit dynamically linked shared library x86_64

compiles-imac:~ compile$ 

Last edited 8 years ago by rkjones.iii@… (previous) (diff)

comment:12 Changed 8 years ago by rkjones.iii@…

quick update i copied the libunwind.dylib file from /usr/lib/system and replaced the one in /usr/lib with that one and now it is installing ports again, i will keep this open for now just incase something else comes up

comment:13 in reply to:  10 Changed 8 years ago by jmroot (Joshua Root)

Resolution: invalid
Status: assignedclosed

Replying to mcalhoun@…:

Perhaps libunwind.dylib is supposed to be in /usr/lib/ on 10.7.5.

Nope, I checked my 10.7 VM and there is no /usr/lib/libunwind.dylib. Short of an OS reinstall, I guess you could check pkgutil to perhaps see where this file came from and what else came with it:

pkgutil --file-info /usr/lib/libunwind.dylib
pkgutil --files <pkgid from previous command's output>

Anyway, closing this ticket because it is the result of an incorrectly modified OS. If you need more help, please ask on the list.

Note: See TracTickets for help on using tickets.