Opened 9 years ago

Last modified 4 years ago

#49431 reopened defect

pkgconfig @0.28 :error:build Failed to install pkgconfig — at Version 5

Reported by: noellenburg@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: pkgconfig

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

I just migrated from my old machine on OS X 10.9 to a new machine on OS X 10.11.1. I followed the Migration guide for MacPorts, i.e., installed XCode 7.1, installed the new MacPorts Base 2.3.4 for El Capitan, uninstalled all previously installed ports. But rather than reinstalling everything I had, I only wanted to install the ports I still need. So the next thing to do was to install ipe via "sudo port install ipe", one of the dependencies is pkgconfig, which unfortunately failed to install with this message:

--->  Building pkgconfig
Error: org.macports.build for port pkgconfig returned: command execution failed
Error: Failed to install pkgconfig

From the attached log file I do not understand the reason for the error. Any help is appreciated.

Change History (7)

Changed 9 years ago by noellenburg@…

Attachment: main.log added

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

This was not a clean build attempt. Please clean pkgconfig and then try again.

comment:2 in reply to:  1 Changed 9 years ago by noellenburg@…

Replying to ryandesign@…:

This was not a clean build attempt. Please clean pkgconfig and then try again.

Sorry, I forgot to clean before sending the log. But of course I had tried that, too. Same thing, though, please see attached log file.

--->  Cleaning pkgconfig
--->  Computing dependencies for pkgconfig
--->  Fetching archive for pkgconfig
--->  Attempting to fetch pkgconfig-0.28_0.darwin_15.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/pkgconfig
--->  Attempting to fetch pkgconfig-0.28_0.darwin_15.x86_64.tbz2 from http://lil.fr.packages.macports.org/pkgconfig
--->  Attempting to fetch pkgconfig-0.28_0.darwin_15.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/pkgconfig
--->  Fetching distfiles for pkgconfig
--->  Verifying checksums for pkgconfig
--->  Extracting pkgconfig
--->  Applying patches to pkgconfig
--->  Configuring pkgconfig
--->  Building pkgconfig
Error: org.macports.build for port pkgconfig returned: command execution failed

Changed 9 years ago by noellenburg@…

Attachment: main.2.log added

log file after cleaning pkgconfig

comment:3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…

Thanks. The error shown in the log is:

:info:build /usr/include/hfs/hfs_format.h:797:2: error: unknown type name 'uuid_string_t'; did you mean 'io_string_t'?
:info:build         uuid_string_t   ext_jnl_uuid;
:info:build         ^
:info:build /usr/include/device/device_types.h:89:16: note: 'io_string_t' declared here
:info:build typedef char                    io_string_t[512];       
:info:build                                 ^

Searching for this error, I found two suggestions that the problem is caused by the presence of the file /usr/local/include/uuid/uuid.h. Do you have this file? If so, delete it and anything else you installed in prefix /usr/local, then "sudo port clean pkgconfig" and then try again. Installing software in prefix /usr/local will cause problems for MacPorts, which is why we do not support you doing that; see wiki:FAQ#usrlocal.

comment:4 in reply to:  3 Changed 9 years ago by noellenburg@…

Replying to ryandesign@…:

Searching for this error, I found two suggestions that the problem is caused by the presence of the file /usr/local/include/uuid/uuid.h. Do you have this file? If so, delete it and anything else you installed in prefix /usr/local, then "sudo port clean pkgconfig" and then try again. Installing software in prefix /usr/local will cause problems for MacPorts, which is why we do not support you doing that; see wiki:FAQ#usrlocal.

Thanks for the hint. I don't have /usr/local/include/uuid/uuid.h. If I search for that file, I find it in /usr/include/uuid/uuid.h, /System/Library/Frameworks/Kernel.framework/Versions/A/Headers/uuid/uuid.h and in /opt/local/include/uuid/uuid.h. Checking the wiki FAQ that you mentioned, I tried "sudo port -t install pkgconfig", which was mentioned as a way to avoid conflicts with /usr/local. Still no success.

comment:5 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

I know trace mode is broken on El Capitan in MacPorts 2.3.4. A tentative fix has been committed but not released yet.

You mentioned you installed Xcode 7.1, which should be a compatible version. Have you also upgraded your Xcode command line tools to the corresponding version? If you're not sure, try running "xcode-select --install". The Xcode command line tools can also be downloaded from the Apple developer downloads page.

Note: See TracTickets for help on using tickets.