Opened 3 years ago

Last modified 4 months ago

#56892 assigned defect

root6 @6.14.02 +veccore: fatal error: 'string_view' file not found

Reported by: alatina (Andrea L) Owned by: cjones051073 (Chris Jones)
Priority: Normal Milestone:
Component: ports Version: 2.5.3
Keywords: Cc: mojca (Mojca Miklavec)
Port: root6

Description (last modified by alatina (Andrea L))

A few days ago a new version of root6 must have been deployed. When I give my

port -u -c upgrade outdated

Macports downloads it and tries to compile it, but it fails during the 'Building' phase.

Inspecting the log file (attached), it seems that the file <string_view> is not found during compilation.

For reference:

port installed root6
The following ports are currently installed:
  root6 @6.14.00_1+cocoa+cxx17+gcc7+graphviz+gsl+http+minuit2+opengl+python36+roofit+soversion+ssl+tmva+veccore+xml+xrootd (active)

Attachments (1)

main.log (7.8 MB) - added by alatina (Andrea L) 3 years ago.

Change History (10)

Changed 3 years ago by alatina (Andrea L)

Attachment: main.log added

comment:1 Changed 3 years ago by alatina (Andrea L)

Description: modified (diff)

comment:2 Changed 3 years ago by jmroot (Joshua Root)

Cc: cjones051073 added
Owner: set to mojca
Status: newassigned

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

The default variants built just fine. See

Looks like you have activated the veccore variant. I have had problems with this, it used to be a default variant, but I recently removed it because of issues.

Please try removing from the list of variants you use. You will need to uninstall the current version and then reinstall it.

comment:4 Changed 3 years ago by alatina (Andrea L)

Hi Chris,

It seems you are right. I just reinstalled it without that variant, and (1) didn't recompile everything from scratch (thanks god!) (2) did install it with no problems.

I am not sure how that +veccore got in in the first place (it might have been me, trying to speed up some calculations.. ), anyway what matters now is that now it works.

Thank you very much for your prompt and decisive intervention.

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

Glad it works ! and yes, sticking to the defaults is a good idea as then you get the binary tarball.

What likely happened is when you first installed root6 veccore was one of the default variants. Since then, whenever you update this variant is preserved, even if it was subsequently removed as a default variant.

Just for future reference, if you find root6 suddenly building from source again in the future, a quick fix is to do this again, so completely uninstall it then reinstall, picking up whatever the defaults now are. I try not to, but the defaults do occasionally change, to work around issues which come up now and then. ROOT has a lot of optional features, so a lot of variants..

comment:6 Changed 3 years ago by alatina (Andrea L)


I will follow your advice!

comment:7 Changed 3 years ago by mf2k (Frank Schima)

Keywords: highsierra removed
Summary: root6 @6.14.02 (science) fails to update on Macports 2.5.3root6 @6.14.02 fails to build with +veccore variant

comment:8 Changed 3 years ago by mojca (Mojca Miklavec)

Cc: mojca added; cjones051073 removed
Owner: changed from mojca to cjones051073

comment:9 Changed 4 months ago by ryandesign (Ryan Schmidt)

Summary: root6 @6.14.02 fails to build with +veccore variantroot6 @6.14.02 +veccore: fatal error: 'string_view' file not found

The error message in the log, since nobody has shown it in the ticket yet, is:

.../build/include/ROOT/RStringView.hxx:19:10: fatal error: 'string_view' file not found
#include <string_view>

It's been years since this ticket was filed. Is this still a problem with the current version of root6 and the +veccore variant?

Note: See TracTickets for help on using tickets.