Opened 6 years ago

Closed 6 years ago

#56916 closed defect (fixed)

Failue upgrading ROOT6

Reported by: angelog0 (Angelo Graziosi) Owned by: cjones051073 (Chris Jones)
Priority: Normal Milestone:
Component: ports Version: 2.5.3
Keywords: Cc: mojca (Mojca Miklavec)
Port: root6

Description

Today:

$ sudo port selfupdate
[...]

$ sudo port outdated
The following installed ports are outdated:
at-spi2-atk                    2.26.2_0 < 2.26.2_1
at-spi2-core                   2.26.2_0 < 2.28.0_0
gcc7                           7.3.0_1 < 7.3.0_3
harfbuzz                       1.7.7_0 < 1.8.5_0
ImageMagick                    6.9.9-40_0 < 6.9.9-40_1
lftp                           4.8.3_1 < 4.8.4_0
libgcc                         7.3.0_1 < 1.0_0  (epoch 2 < 3)
libgcc6                        6.4.0_2 < 6.4.0_3
libraw                         0.18.12_0 < 0.19.0_0
npth                           1.5_0 < 1.6_0
pango                          1.42.2_0 < 1.42.3_0
root6                          6.14.00_1 < 6.14.02_0
tesseract                      3.05.01_0 < 3.05.01_1

$ sudo port upgrade outdated
[...]
--->  Computing dependencies for root6
--->  Fetching archive for root6
--->  Attempting to fetch root6-6.14.02_0+avahi+cocoa+cxx17+fftw3+fitsio+gcc7+graphviz+gsl+http+ldap+minuit2+mysql56+odbc+opengl+postgresql92+pythia+python27+roofit+soversion+sqlite3+ssl+tmva+veccore+xml+xrootd.darwin_17.x86_64.tbz2 from http://fco.it.packages.macports.org/mirrors/macports-packages/root6
--->  Attempting to fetch root6-6.14.02_0+avahi+cocoa+cxx17+fftw3+fitsio+gcc7+graphviz+gsl+http+ldap+minuit2+mysql56+odbc+opengl+postgresql92+pythia+python27+roofit+soversion+sqlite3+ssl+tmva+veccore+xml+xrootd.darwin_17.x86_64.tbz2 from http://lil.fr.packages.macports.org/root6
--->  Attempting to fetch root6-6.14.02_0+avahi+cocoa+cxx17+fftw3+fitsio+gcc7+graphviz+gsl+http+ldap+minuit2+mysql56+odbc+opengl+postgresql92+pythia+python27+roofit+soversion+sqlite3+ssl+tmva+veccore+xml+xrootd.darwin_17.x86_64.tbz2 from https://packages.macports.org/root6
--->  Fetching distfiles for root6
--->  Attempting to fetch root-6-14-02.tar.gz from http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/root/6.14.02_1
--->  Verifying checksums for root6
--->  Extracting root6
--->  Configuring root6
Error: Failed to configure root6: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_root6/root6/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

Attachments (1)

root6_main.log.bz2 (10.6 KB) - added by angelog0 (Angelo Graziosi) 6 years ago.

Download all attachments as: .zip

Change History (17)

Changed 6 years ago by angelog0 (Angelo Graziosi)

Attachment: root6_main.log.bz2 added

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

Something is up with your gcc7 installation.

:info:configure -- Check for working Fortran compiler: /opt/local/bin/gfortran-mp-7
:info:configure -- Check for working Fortran compiler: /opt/local/bin/gfortran-mp-7  -- broken
:info:configure CMake Error at /opt/local/share/cmake-3.12/Modules/CMakeTestFortranCompiler.cmake:45 (message):
:info:configure   The Fortran compiler
:info:configure     "/opt/local/bin/gfortran-mp-7"
:info:configure   is not able to compile a simple test program.

Please uninstall root6. Then make sure you are able to fully update your outdated ports and that gcc7 is then functional. Once that is done try and reinstall root6.

I also notice you use a lot of optional variants. If you don't really need any of these I recommend removing them. Also note +veccore currently has problems so you will need to remove this variant.

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

comment:2 Changed 6 years ago by angelog0 (Angelo Graziosi)

What you suggest does not work and also this does not work:

$ sudo port uninstall gcc7

$ sudo port clean --all gcc7

$ sudo port uninstall root6

$ sudo port clean --all root6

$ sudo port install gcc7
--->  Computing dependencies for gcc7
--->  Fetching archive for gcc7
--->  Attempting to fetch gcc7-7.3.0_3.darwin_17.x86_64.tbz2 from http://fco.it.packages.macports.org/mirrors/macports-packages/gcc7
--->  Attempting to fetch gcc7-7.3.0_3.darwin_17.x86_64.tbz2.rmd160 from http://fco.it.packages.macports.org/mirrors/macports-packages/gcc7
--->  Installing gcc7 @7.3.0_3
--->  Activating gcc7 @7.3.0_3
--->  Cleaning gcc7
--->  Scanning binaries for linking errors
--->  No broken files found.
--->  No broken ports found.

$ sudo port install -s root6
--->  Computing dependencies for root6
--->  Fetching distfiles for root6
--->  Attempting to fetch root-6-14-02.tar.gz from http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/root/6.14.02_1
--->  Verifying checksums for root6
--->  Extracting root6
--->  Configuring root6
Error: Failed to configure root6: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_root6/root6/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port root6 failed

$ grep brok /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_root6/root6/main.log
:info:configure -- Check for working Fortran compiler: /opt/local/bin/gfortran-mp-7  -- broken

Maybe there is some issue with gcc7 @7.3.0_3 which was released with the same bunch of packages (see my OP)

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

Please make sure your ports are fully up to date

sudo port sync
sudo port upgrade outdated

then run

sudo port installed | grep gcc

and post what you get.

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

comment:4 Changed 6 years ago by angelog0 (Angelo Graziosi)

But I already did that... re-read my previous posts. I do always (since installed MacPorts for the first time in 2011)

$ sudo port selfupdate
$ sudo port outdated
$ sudo port upgrade outdated

only root6 failed. As I posted, I uninstalled/reinstalled also gcc7 getting

$ sudo port install gcc7
[...]
--->  Scanning binaries for linking errors
--->  No broken files found.
--->  No broken ports found.

this installs a pre-built binaries for gcc7.

As I wrote, building from source (-s) root6 (only with default variants) fails in the same manner.

Now I have re-uninstalled gcc7 and root6 (cleaning --all) then I am re-installing from source

sudo port install -s root6

This time it is installing gcc7 from source too. Let's see what happens.. (it takes some time)

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

Why are you forcing builds from source ? All of root and gcc have binary tarballs. so just run

sudo port install root6

to get these. gcc takes a long time to install so you will want to get the prebuilt binary.

I asked you to run

sudo port installed | grep gcc

I cannot reproduce your problems nor was there any issues on the buildbots for the latest gcc or root6 updates. Whatever is wrong with your checkout is specific to you. Without more information I cannot say much more.

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

Note the port gcc7 is likely not the issue. I want to see what you have installed for the libgcc<X> ports...

comment:7 Changed 6 years ago by angelog0 (Angelo Graziosi)

From my OP:

$ sudo port outdated
The following installed ports are outdated:
at-spi2-atk                    2.26.2_0 < 2.26.2_1
at-spi2-core                   2.26.2_0 < 2.28.0_0
gcc7                           7.3.0_1 < 7.3.0_3
harfbuzz                       1.7.7_0 < 1.8.5_0
ImageMagick                    6.9.9-40_0 < 6.9.9-40_1
lftp                           4.8.3_1 < 4.8.4_0
libgcc                         7.3.0_1 < 1.0_0  (epoch 2 < 3)           <==  Notice
libgcc6                        6.4.0_2 < 6.4.0_3                        <==  Notice
libraw                         0.18.12_0 < 0.19.0_0
npth                           1.5_0 < 1.6_0
pango                          1.42.2_0 < 1.42.3_0
root6                          6.14.00_1 < 6.14.02_0
tesseract                      3.05.01_0 < 3.05.01_1

but also others:

$ sudo port installed | grep gcc
Password:
  gcc5 @5.5.0_1 (active)
  gcc_select @0.1_8 (active)
  libgcc @1.0_0 (active)
  libgcc6 @6.4.0_3 (active)
  libgcc7 @7.3.0_1 (active)
  libgcc8 @8.2.0_0 (active)
  pdftk @2.02_0+gcc5 (active)

(gcc7 is still building).

comment:8 Changed 6 years ago by mf2k (Frank Schima)

Cc: mojca added; jonesc@… removed
Owner: set to cjones051073
Status: newassigned

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

I saw what you originally posted, I didn't need it again....

I specifically asked for the list of all ports matching gcc as I needed that additional information.

My best bet is when you first upgraded root your various gcc ports where not fully updated. It looks like they now are so I think it should work now.

comment:10 Changed 6 years ago by angelog0 (Angelo Graziosi)

No, it does not work, even if you have changed the default from gcc7 to gcc8:

$ sudo port selfupdate
Password:
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.5.3 installed,
MacPorts base version 2.5.3 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated

$ sudo port outdated
No installed ports are outdated.

$ sudo port rev-upgrade
--->  Scanning binaries for linking errors
--->  No broken files found.
--->  No broken ports found.

$ sudo port installed | grep gcc
  gcc5 @5.5.0_1 (active)
  gcc8 @8.2.0_0 (active)
  gcc_select @0.1_8 (active)
  libgcc @1.0_0 (active)
  libgcc6 @6.4.0_3 (active)
  libgcc7 @7.3.0_1 (active)
  libgcc8 @8.2.0_0 (active)
  pdftk @2.02_0+gcc5 (active)

$ sudo port install -s root6
--->  Computing dependencies for root6
--->  Fetching distfiles for root6
--->  Attempting to fetch root-6-14-02.tar.gz from http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/root/6.14.02_1
--->  Verifying checksums for root6
--->  Extracting root6
--->  Configuring root6
Error: Failed to configure root6: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_root6/root6/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port root6 failed

$ grep brok /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_root6/root6/main.log
:info:configure -- Check for working Fortran compiler: /opt/local/bin/gfortran-mp-8  -- broken

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

Something is very funny with your setup. I cannot reproduce this at all, and nor could the build bots.

Do you have something else, outside MacPorts, installed that could be interfering with things... perhaps in /usr/local ? Do you have any other paths than MacPorts in your $PATH variable ?

This isn't an issue with ROOT though I believe, but an issue with your installation of the gcc compilers.

Can I suggest you try downloading some example fortran test applications and try compiling them. For instance from

http://www.personal.psu.edu/jhm/f90/examples/

For me MacPorts gcc7 and gcc8 compilers work just fine, e.g.

Oberon ~/Downloads > gfortran-mp-8 array2.f 
Oberon ~/Downloads > ./a.out 
  RESULTS FOR FULL C ARRAY
 AVERAGE OF ALL ELEMENTS IN C =    7.500
 MINIMUM OF ALL ELEMENTS IN C =    2.000
 MAXIMUM OF ALL ELEMENTS IN C =   13.000
 C = 
  0.20E+01  0.30E+01  0.40E+01  0.60E+01  0.70E+01  0.80E+01  0.90E+01  0.11E+02
  0.12E+02  0.13E+02


 RESULTS FOR ELEMENTS 2 THROUGH 9 OF C
 AVERAGE OF SELECTED ELEMENTS IN C =    7.500
 MINIMUM OF SELECTED ELEMENTS IN C =    3.000
 MAXIMUM OF SELECTED ELEMENTS IN C =   12.000
 C = 
  3.00E+00  4.00E+00  6.00E+00  7.00E+00  8.00E+00  9.00E+00  1.10E+01  1.20E+01

  RESULTS OF LOG(A)
 C = 
  0.00E+00  6.93E-01  1.10E+00  0.00E+00  1.61E+00  1.79E+00  1.95E+00  2.08E+00
  2.20E+00  2.30E+00

I am afraid, as because I cannot reproduce this you are going to have to investigate it yourself.

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

Actually, looking at your original log again I think something is funny with your compiler tools, as the failure is

:info:configure     Run Build Command:"/usr/bin/make" "cmTC_8f70b/fast"
:info:configure     /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_8f70b.dir/build.make CMakeFiles/cmTC_8f70b.dir/build
:info:configure     Building Fortran object CMakeFiles/cmTC_8f70b.dir/testFortranCompiler.f.o
:info:configure     /opt/local/bin/gfortran-mp-7   -pipe -Os  -arch x86_64   -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_root6/root6/work/build/CMakeFiles/CMakeTmp/testFortranCompiler.f -o CMakeFiles/cmTC_8f70b.dir/testFortranCompiler.f.o
:info:configure     FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!
:info:configure     make[1]: *** [CMakeFiles/cmTC_8f70b.dir/testFortranCompiler.f.o] Error 2
:info:configure     make: *** [cmTC_8f70b/fast] Error 2

So your as command is failing...

What version of Xcode do you have installed ?

What does

port installed cctools

give you ?

Finally, try

 sudo port uninstall cctools

say yes to 'do you really want to do this'. Then

 sudo port install cctools

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

In the end you should have cctools installed with the Xcode variant, as you are on macOS 10.13

Oberon ~/Downloads > port installed cctools
The following ports are currently installed:
  cctools @895_5+xcode (active)

Oberon ~/Downloads > /opt/local/bin/as --version
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Make sure you have the same, then try root again.

comment:14 Changed 6 years ago by angelog0 (Angelo Graziosi)

Good catch! The cctools installed was:

$ port installed cctools
The following ports are currently installed:
  cctools @895_5+llvm50 (active)

i.e. with llvm variant. I don't understand why cctools port was installed with this variant...

Instead the reinstallation was done with the xcode variant!... and now ROOT6 is building..

Thanks for your help and patience.

Angelo

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

Version 0, edited 6 years ago by cjones051073 (Chris Jones) (next)

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

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