O2 build error: package arrow missing

Hi.
I am trying to build O2 on Ubuntu 18.04. I checked all the prerequisites with aliDoctor and there were no errors. All the other packages were built, but while building O2, an error occurred:

ERROR:O2:O2:0: Error while executing /home/diana/alice/sw/SPECS/ubuntu1804_x86-64/O2/v1.2.0-1/build.sh on `ThinkPad-E480'.
ERROR:O2:O2:0: Log can be found in /home/diana/alice/sw/BUILD/O2-latest/log.
ERROR:O2:O2:0: Please upload it to CERNBox/Dropbox if you intend to request support.
ERROR:O2:O2:0: Build directory is /home/diana/alice/sw/BUILD/O2-latest/O2.
ERROR:O2:O2:0: 
ERROR:O2:O2:0: Note that you have packages in development mode.
ERROR:O2:O2:0: Devel sources are not updated automatically, you must do it by hand.
ERROR:O2:O2:0: This problem might be due to one or more outdated devel sources.
ERROR:O2:O2:0: To update all development packages required for this build it is usually sufficient to do:
ERROR:O2:O2:0: 
ERROR:O2:O2:0:   ( cd O2 && git pull --rebase )

However, even if I try to cd O2 && git pull --rebase, I still get the same error.
In the log file (attached), I found this:

-- The following REQUIRED packages have not been found:

 * arrow

CMake Error at /home/diana/alice/sw/ubuntu1804_x86-64/CMake/v3.17.0-1/share/cmake-3.17/Modules/FeatureSummary.cmake:457 (message):
  feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
  run.
Call Stack (most recent call first):
  dependencies/O2Dependencies.cmake:151 (feature_summary)
  dependencies/CMakeLists.txt:11 (include)
  CMakeLists.txt:45 (include)


-- Configuring incomplete, errors occurred!

Is there a way could I add the package arrow if aliBuild is unable to do so? Could anyone help me with this issue?log_arrow.txt (5.1 KB)

Hi Diana,

did you update alidist as well? I think, recently there have been quite some changes to the recipies which may be needed, so if you did not do, yet, you might update alidist:

cd alidist && git pull --rebase

Cheers,
Stefan

Hi Stefan,
thanks for your reply. I tried to do what you suggested, however, I still get the same error.

Hello, I also had the same problem, with a freshly installed ubuntu 18.04 using alidock. Was the problem solved?
Best regards
Alessandro

Hi Alessandro,
unfortunately, I haven’t found any solution to this problem.
Cheers,
Diana

Hi,

I am also no expert and not sure about the origin of this issue, but I have had another look. I find it especially strange, that in you log in the first comment here you have

-- Could NOT find arrow (missing: ARROW_INCLUDE_DIR) (found version "0.17.0")
CMake Warning at dependencies/Findarrow.cmake:13 (find_package):
  Found package configuration file:

    /home/diana/alice/sw/ubuntu1804_x86-64/arrow/v0.17.0-1/lib/cmake/arrow/arrow-config.cmake

  but it set arrow_FOUND to FALSE so package "arrow" is considered to be NOT
  FOUND.
Call Stack (most recent call first):
  dependencies/O2Dependencies.cmake:39 (find_package)
  dependencies/CMakeLists.txt:11 (include)
  CMakeLists.txt:45 (include)

So it seems, that arrow indeed is available, but somehow broken or at least cannot be used.

Here a few ideas you might try:

  • Check, that you really have all prerequisits, for Ubuntu see here.
  • Try aliBuild clean to clean up your installation (although on a new one makes not much sense maybe?)
  • Try aliBuild clean --aggressive cleaning up more thoroughly your sw directory.
  • Before recompiling, also update your alidist and O2 (see in the comments above). E.g. I see, that you still have arrow version 0.17.0, while in my case it is 0.17.1.

Hope, this helps!

Cheers,
Stefan

Can you try:

aliBuild init O2@dev

and retry?

Hi Stefan and Giulio,
first of all, thanks for your help, however, I am still stuck on the problem with arrow. I tried to do what Stefan suggested and a similar error occurred again:
The following REQUIRED packages have not been found:

 * arrow

CMake Error at /home/diana/alice/sw/ubuntu1804_x86-64/CMake/v3.17.0-1/share/cmake-3.17/Modules/FeatureSummary.cmake:457 (message):
  feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
  run.
Call Stack (most recent call first):
  dependencies/O2Dependencies.cmake:151 (feature_summary)
  dependencies/CMakeLists.txt:11 (include)
  CMakeLists.txt:45 (include)

When I try

aliBuild init O2@dev

as Giulio suggested, I get the following message:

WARNING: using existing recipes from ./alidist
ERROR: Specified default `release’ is not compatible with the packages you want to build.
ERROR: Valid defaults:
ERROR:
ERROR: - alo
ERROR: - o2
ERROR: - o2-dataflow
ERROR: - o2-dev-fairrot
ERROR: - o2-prod

Try adding --defaults o2.

That is what I have tried before (according to the tutorial).

Can you try by doing simply:

git clone -b dev https://github.com/AliceO2Group/AliceO2 O2
aliBuild build --defaults o2 O2

?

Thanks Giulio, this actually helped!

Hello! I have the same problem. Rebuilding of O2 with “–defaults o2 O2” did not help me. What can I do else? Help me please!
Ubuntu 18.04, CMake-3.18, building is based on root 6.