alisw / alibuild

A simple build tool for ALICE software
http://alisw.github.io/alibuild/
GNU General Public License v3.0
24 stars 47 forks source link

aliBuild and aliDoctor disagree on packages to build (Ubuntu 14.04) #479

Closed aphecetche closed 7 years ago

aphecetche commented 7 years ago

Hi,

I'm trying to build o2 on Ubuntu 14.04 (in a container, image from travis), and it seems aliDoctor and aliBuild disagree on the packages to be built. Specifically aliBuild wants to build the GCC toolchain (which I'd rather avoid) while aliDoctor says it's ok (see below the tail of the output of both commands).

GCC 5 (5.4) (including fortran) is installed in $HOME/bin and $HOME/bin is added to PATH.

What stupid mistake am I making ;-) ?

Thanks,


> which gfortran /home/travis/bin/gfortran

> travis@442c2165269e:~/build$ ls -l $HOME/bin total 0 lrwxrwxrwx 1 travis travis 14 Sep 4 09:50 c++ -> /usr/bin/g++-5 lrwxrwxrwx 1 travis travis 14 Sep 4 09:50 cc -> /usr/bin/gcc-5 lrwxrwxrwx 1 travis travis 19 Sep 4 09:50 gfortran -> /usr/bin/gfortran-5

> aliDoctor O2 ... snip...

==> The following packages will be picked up from the system:

- FreeType
- Python
- libxml2
- SWIG
- zlib
- OpenSSL
- GCC-Toolchain
- libpng
- autotools

If this is not you want, you have to uninstall / unload them.

==> The following packages will be build by aliBuild because they couldn't be picked up from the system:

- Python-modules
- Vc
- CMake
- protobuf
- yaml-cpp
- nanomsg
- ZeroMQ
- boost
- GSL

This is not a real issue, but it might take longer the first time you invoke aliBuild.

> aliBuild --dry-run --defaults o2 build O2

==> aliBuild can take the following packages from the system and will not build them: Python, libpng, FreeType, autotools

==> The following packages cannot be taken from the system and will be built: Python-modules, Vc, CMake, protobuf, GCC-Toolchain, yaml-cpp, nanomsg, ZeroMQ, boost, GSL

==> Packages will be built in the following order:

Barthelemy commented 7 years ago

Did you set the same defaults when calling aliDoctor ?

aphecetche commented 7 years ago

Damn it. Nooooo !

Sure enough with aliDoctor --defaults o2 I get the source of the problem :

GCC-Toolchain: :3:2: error: #error "System's GCC cannot be used: we need at least GCC 6.X. We are going to compile our own version.

Thanks Barth !

Barthelemy commented 7 years ago

@ktf @dberzano Shouldn't aliDoctor have complained that O2 requires a defaults ? @aphecetche Was your alidist up to date ?

ktf commented 7 years ago

@Barthelemy yes, I agree. aliDoctor should have said something about the default.

ktf commented 7 years ago

See also #480

Barthelemy commented 7 years ago

@ktf thank you for the ticket

aphecetche commented 7 years ago

@Barthelemy yes my alidist was up to date ( f60ceb886736b167618fb53f5edb5a3105d07449 Mon Sep 4 11:07:16 2017 +0200)