Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

XHAL not found automatically #307

Closed
1 of 2 tasks
lmoureaux opened this issue Nov 15, 2019 · 6 comments
Closed
1 of 2 tasks

XHAL not found automatically #307

lmoureaux opened this issue Nov 15, 2019 · 6 comments

Comments

@lmoureaux
Copy link

Brief summary of issue

I'm not sure if this is an issue of cmsgemos or XHAL, but I run into errors in gemhardware when building current develop. I need to add the following to my env to make it work:

export CPLUS_INCLUDE_PATH=/opt/xhal/include/
export LIBRARY_PATH=/opt/xhal/lib

I'm on gem904daq02.

Types of issue

  • Bug report (report an issue with the code)
  • Feature request (request for change which adds functionality)

Expected Behavior

XHAL is found automatically.

Current Behavior

XHAL is not found.

Steps to Reproduce (for bugs)

  1. git fetch
  2. git checkout origin/develop
  3. make

Possible Solution (for bugs)

Switch to CMake :trollface:

Context

Trying to build.

Your Environment

  • Version used: current develop
  • Shell used: bash
@jsturdy
Copy link
Contributor

jsturdy commented Nov 15, 2019

Probably you don't have XHAL_ROOT set (and possibly other expected environment things, as they have not all been added as defaults in the makefiles)

@lmoureaux
Copy link
Author

I don't think I added it, indeed. Would you accept a patch to use /opt/xhal by default or cause the build to fail with and intelligible error message if XHAL_ROOT is wrong (eg if $XHAL_ROOT/include/xhal/XHALDevice.h doesn't exist) ?

@jsturdy
Copy link
Contributor

jsturdy commented Nov 16, 2019

I think this is something that we added in the gemcalibration stuff that @cgalloni is working on, but we definitely should patch that in and merge that part to develop since everything else really depends on it.
It might actually be better to port the changes made in gembuild into here as they were partly designed to solve this type of issue in all repositories.
I'll look to see what we put in with gemcalibration and compare with how things are done in (not yet merged) gembuild and make a patch

@cgalloni
Copy link

Hi, if I remember correctly we had some compatibility issues so to make gemcalibration and gemhardware work, we had to install the xhal package locally on daq04 and add these lines to
setup/etc/profile.d/gemdaqenv.sh:

export XHAL_ROOT=/afs/cern.ch/work/c/cgalloni/cms-gem-daq-proj/cmsgemos/local/opt/xhal
export XHALROOT=$XHAL_ROOT 

@mexanick
Copy link
Contributor

shall be closed as irrelevant now?

@lpetre-ulb
Copy link
Contributor

Indeed, I think it is irrelevant now. Feel free to reopen the issue if it strikes again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants