source-highLight failed to compile

rmgls rmgls at orange.fr
Tue Oct 23 14:12:33 UTC 2018


Helo Rayan,



Thanks for yout time,  and your explanation.

my laziness   have been punished!

i did not follow the  procedure:
Deinstall ports, and so on!!!


Many thanks.

Raoul


> On 23 Oct 2018, at 10:20, Ryan Schmidt <ryandesign at macports.org> wrote:
> 
> On Oct 23, 2018, at 01:26, rmgls wrote:
> 
>> Source-hiLight failed to compile!
>> Main.log attached.
>> 
>> any idea?
> 
> The log shows you're using Xcode 10 with clang 1000.11.45.2 on macOS 10.14.
> 
> The error in the log is:
> 
> :info:build /opt/local/bin/ranlib: object: .libs/libgnu.a(dirname-lgpl.o) malformed object (unknown load command 1)
> :info:build ar: internal ranlib command failed
> 
> So you're compiling using the latest clang, but you have the cctools port installed, which provides ranlib and other related programs, and it's not able to understand the object files that clang produced.
> 
> Unfortunately MacPorts cctools is old (it's equivalent to Xcode 8.1) and is not compatible with the clang in Xcode 9 or later. This is because unfortunately Apple has not released the source code of newer versions of cctools, so we cannot update the copy in MacPorts to anything newer.
> 
> The cctools port should have detected that you were using Xcode 9 or later and should have installed itself with the +xcode variant, which makes it install only symlinks to Xcode's copies of the programs, instead of building its own older copies, and that should have worked.
> 
> Since it didn't work, can you verify which variant of cctools is installed? Run `port -v installed cctools` to find out. If it does not show the +xcode variant selected, reinstall cctools with the +xcode variant by running `sudo port install cctools +xcode`, then `sudo port clean source-highlight` and try again.
> 



More information about the macports-users mailing list