Opened 6 years ago

Closed 3 years ago

#52361 closed defect (fixed)

root5 libReflex ld -lCore build error

Reported by: cdeil (Christoph Deil) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: cjones051073 (Chris Jones)
Port: root5

Description

I updated to macOS sierra and did a fresh install of macports and now this fails:

sudo port install root5

with this build error:

:info:build /usr/bin/clang++ -dynamiclib -single_module -undefined suppress -install_name /opt/local/libexec/root5/lib/root/libReflex.dylib -O2 -m64 -mmacosx-version-min=10.12 -bind_at_load -o lib/libReflex.dylib cint/reflex/src/Any.o cint/reflex/src/Array.o cint/reflex/src/Base.o cint/reflex/src/BuilderContainer.o cint/reflex/src/Callback.o cint/reflex/src/Class.o cint/reflex/src/ClassBuilder.o cint/reflex/src/ClassTemplateInstance.o cint/reflex/src/DataMember.o cint/reflex/src/DictionaryGenerator.o cint/reflex/src/Enum.o cint/reflex/src/EnumBuilder.o cint/reflex/src/FuncHandler.o cint/reflex/src/Function.o cint/reflex/src/FunctionBuilder.o cint/reflex/src/FunctionMember.o cint/reflex/src/FunctionMemberTemplateInstance.o cint/reflex/src/Fundamental.o cint/reflex/src/GenreflexMemberBuilder.o cint/reflex/src/Kernel.o cint/reflex/src/LiteralString.o cint/reflex/src/Member.o cint/reflex/src/MemberBase.o cint/reflex/src/MemberTemplate.o cint/reflex/src/MemberTemplateImpl.o cint/reflex/src/MemberTemplateName.o cint/reflex/src/NameLookup.o cint/reflex/src/Namespace.o cint/reflex/src/NamespaceBuilder.o cint/reflex/src/Object.o cint/reflex/src/OnDemandBuilder.o cint/reflex/src/OwnedPropertyList.o cint/reflex/src/PluginFactoryMap.o cint/reflex/src/PluginService.o cint/reflex/src/Pointer.o cint/reflex/src/PointerToMember.o cint/reflex/src/PropertyList.o cint/reflex/src/PropertyListImpl.o cint/reflex/src/Scope.o cint/reflex/src/ScopeBase.o cint/reflex/src/ScopeName.o cint/reflex/src/ScopedType.o cint/reflex/src/TemplateInstance.o cint/reflex/src/Tools.o cint/reflex/src/Type.o cint/reflex/src/TypeBase.o cint/reflex/src/TypeBuilder.o cint/reflex/src/TypeName.o cint/reflex/src/TypeTemplate.o cint/reflex/src/TypeTemplateImpl.o cint/reflex/src/TypeTemplateName.o cint/reflex/src/Typedef.o cint/reflex/src/TypedefBuilder.o cint/reflex/src/Union.o cint/reflex/src/UnionBuilder.o cint/reflex/src/VariableBuilder.o -ldl -Llib -lCore -lCint -compatibility_version 5 -current_version 5.34.36
:info:build ld: library not found for -lCore
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)

Full log is here: https://gist.github.com/cdeil/a94001c1b21e6d95133d193accde17a5

Change History (8)

comment:1 Changed 6 years ago by cdeil (Christoph Deil)

Forgot to say: this is with latest XCode Version 8.0 (8A218a)

comment:2 Changed 6 years ago by cjones051073 (Chris Jones)

Looks like an upstream issue. You should contact them to ask about support for macOS Sierra.

comment:3 Changed 6 years ago by cjones051073 (Chris Jones)

But bear in mind root5 is very much depreciated now. You should probably be looking to migrate to root6.

comment:4 Changed 6 years ago by cdeil (Christoph Deil)

For reference: I've mentioned this issue and ticket in the ROOT forum here:

https://root.cern.ch/phpBB3/viewtopic.php?f=3&t=22376&p=98329#p98329

comment:5 Changed 6 years ago by cjones051073 (Chris Jones)

I see upstream have acknowledged and fixed the issue, pending a release.

Once upstram have released a new version, i will submit a port update.

Please, if this happens and i do not notice, ping this report.

Chris

comment:6 Changed 6 years ago by cjones051073 (Chris Jones)

Actually, looking at the commit message it appears adding support for 10.12 removes support for some older OSes (<10.9).

https://root.cern.ch/gitweb/?p=root.git;a=commit;h=c06fdeae0b3b4d627aacef2bda9df0acd079626b

Its not clear to me whats more important for a legacy package like root5, to support older or newer OSes.

I'll need to run some tests once the new tag is out, but if as the above suggests it removes support for older OSes, I am more include to keep root5 on the current version to support the older OSes, and just deprecate support for Sierra, as users of the newer OS should anyway be looking to migrate to root6 in my opinion.

thoughts

Chris

Last edited 6 years ago by cjones051073 (Chris Jones) (previous) (diff)

comment:7 Changed 6 years ago by cjones051073 (Chris Jones)

It seems I can keep compatibility with OSX 10.6 upwards using compiler blacklists to force the use of macports clang on OSX <10.8.

https://trac.macports.org/ticket/52465

Chris

comment:8 Changed 3 years ago by cjones051073 (Chris Jones)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.