{"action":"created","issue":{"url":"https://api.github.com/repos/UCATLAS/xAODAnaHelpers/issues/1008","repository_url":"https://api.github.com/repos/UCATLAS/xAODAnaHelpers","labels_url":"https://api.github.com/repos/UCATLAS/xAODAnaHelpers/issues/1008/labels{/name}","comments_url":"https://api.github.com/repos/UCATLAS/xAODAnaHelpers/issues/1008/comments","events_url":"https://api.github.com/repos/UCATLAS/xAODAnaHelpers/issues/1008/events","html_url":"https://github.com/UCATLAS/xAODAnaHelpers/issues/1008","id":252763190,"number":1008,"title":"CMTCONFIG and AnalysisBase_PLATFORM wrong variables for x86_64-centos7-gcc62-opt","user":{"login":"matthewfeickert","id":5142394,"avatar_url":"https://avatars3.githubusercontent.com/u/5142394?v=4","gravatar_id":"","url":"https://api.github.com/users/matthewfeickert","html_url":"https://github.com/matthewfeickert","followers_url":"https://api.github.com/users/matthewfeickert/followers","following_url":"https://api.github.com/users/matthewfeickert/following{/other_user}","gists_url":"https://api.github.com/users/matthewfeickert/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewfeickert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewfeickert/subscriptions","organizations_url":"https://api.github.com/users/matthewfeickert/orgs","repos_url":"https://api.github.com/users/matthewfeickert/repos","events_url":"https://api.github.com/users/matthewfeickert/events{/privacy}","received_events_url":"https://api.github.com/users/matthewfeickert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-24T23:57:34Z","updated_at":"2017-08-25T00:25:43Z","closed_at":null,"body":"I have a pretty minor bug. I'm trying to run my install script (which [follows the docs](http://xaodanahelpers.readthedocs.io/en/master/Installing.html))\r\n```bash\r\n# baseDir is set up here, but isn't relevant\r\nmkdir src run build\r\ncd src\r\ngit clone https://github.com/UCATLAS/xAODAnaHelpers\r\ngit clone ssh://git@gitlab.cern.ch:7999/johnda/StudyTrigTracks.git\r\nasetup AnalysisBase,21.2.0,here\r\ncd ../build\r\ncmake ../src\r\nmake > xAH_CMake_out.txt 2>&1\r\necho \"Build has finished at \"$(tail -n 1 ${baseDir}/build/xAH_CMake_out.txt | sed 's/].*$/]/')\" complete\"\r\ncd ..\r\nsource build/${CMTCONFIG}/setup.sh\r\n```\r\non my local [Tier-3 \"running on a RHEL7 compatible OS\"](http://www.smu.edu/Academics/CSC/Documentation) (platform `x86_64-centos7-gcc62-opt`) --- HTCondor isn't available on LXPLUS yet with a Rel21 version of `xAH_run`, so I want to try with SLURM at my Tier-3.\r\n\r\nHowever, it seems that here `${CMTCONFIG}` and `${AnalysisBase_PLATFORM}` don't get the correct variable which represents the architecture of the system. They get `x86_64-slc6-gcc62-opt` instead of `x86_64-centos7-gcc62-opt`.\r\n\r\nThis isn't that big of a deal (I know what the platform should be) but it means that I can't just run my setup environment scrip that uses `asetup --restore` to resetup the environment I need (and I'm trying to write something that will be used by more than just me).\r\n\r\nI'm having trouble finding where `${CMTCONFIG}` is actually getting set along the way with CMake. Can someone point me to where that is so I can poke at it, or tell me why the platform isn't getting picked up properly?\r\n"},"comment":{"url":"https://api.github.com/repos/UCATLAS/xAODAnaHelpers/issues/comments/324792133","html_url":"https://github.com/UCATLAS/xAODAnaHelpers/issues/1008#issuecomment-324792133","issue_url":"https://api.github.com/repos/UCATLAS/xAODAnaHelpers/issues/1008","id":324792133,"user":{"login":"matthewfeickert","id":5142394,"avatar_url":"https://avatars3.githubusercontent.com/u/5142394?v=4","gravatar_id":"","url":"https://api.github.com/users/matthewfeickert","html_url":"https://github.com/matthewfeickert","followers_url":"https://api.github.com/users/matthewfeickert/followers","following_url":"https://api.github.com/users/matthewfeickert/following{/other_user}","gists_url":"https://api.github.com/users/matthewfeickert/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewfeickert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewfeickert/subscriptions","organizations_url":"https://api.github.com/users/matthewfeickert/orgs","repos_url":"https://api.github.com/users/matthewfeickert/repos","events_url":"https://api.github.com/users/matthewfeickert/events{/privacy}","received_events_url":"https://api.github.com/users/matthewfeickert/received_events","type":"User","site_admin":false},"created_at":"2017-08-25T00:25:43Z","updated_at":"2017-08-25T00:25:43Z","body":"@kratsg \r\n\r\n```bash\r\n$ printenv | grep \"x86_64-centos7-gcc62-opt\"\r\n# returns no results\r\n$ printenv | grep \"centos7\"\r\nBINARY_TAG=x86_64-centos7-gcc49-opt\r\n$ grep -r \"BINARY_TAG\" .\r\n./src/.asetup.save:BINARY_TAG = x86_64-centos7-gcc49-opt\r\n```\r\n\r\nWhich is what I assume(?) corresponds to \"platform name\" during the `cmake ../src` step:\r\n```bash\r\n### cmake ../src\r\n-- The C compiler identification is GNU 6.2.0\r\n-- The CXX compiler identification is GNU 6.2.0\r\n-- Check for working C compiler: /cvmfs/atlas.cern.ch/repo/sw/software/21.2/sw/lcg/releases/gcc/6.2.0/x86_64-slc6/bin/gcc\r\n-- Check for working C compiler: /cvmfs/atlas.cern.ch/repo/sw/software/21.2/sw/lcg/releases/gcc/6.2.0/x86_64-slc6/bin/gcc -- works\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Detecting C compile features\r\n-- Detecting C compile features - done\r\n-- Check for working CXX compiler: /cvmfs/atlas.cern.ch/repo/sw/software/21.2/sw/lcg/releases/gcc/6.2.0/x86_64-slc6/bin/g++\r\n-- Check for working CXX compiler: /cvmfs/atlas.cern.ch/repo/sw/software/21.2/sw/lcg/releases/gcc/6.2.0/x86_64-slc6/bin/g++ -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Detecting CXX compile features\r\n-- Detecting CXX compile features - done\r\n-- Found AnalysisBase: /cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBase/21.2.0/InstallArea/x86_64-slc6-gcc62-opt (version: 21.2.0)\r\n-- Found AnalysisBaseExternals: /cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.0/InstallArea/x86_64-slc6-gcc62-opt (version: 21.2.0)\r\n-- Setting ATLAS specific build flags\r\n-- checker_gccplugins library not found\r\n-- Package(s) in AnalysisBaseExternals: 12\r\n-- Using the LCG modules without setting up a release\r\n-- Package(s) in AnalysisBase: 136\r\n-- Configuring ATLAS project with name \"WorkDir\" and version \"21.2.0\"\r\n-- Using build type: RelWithDebInfo\r\n-- Using platform name: x86_64-centos7-gcc62-opt\r\n-- Unit tests will be built by default\r\n-- Found 2 package(s)\r\n-- Using the LCG modules without setting up a release\r\n-- Considering package 1 / 2\r\n-- No package filtering rules read\r\n-- Configuring the build of package: StudyTrigTracks\r\n-- Found ROOT: /cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.0/InstallArea/x86_64-slc6-gcc62-opt/include (found version \"6.08/06\") \r\n-- Found ROOT: /cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.0/InstallArea/x86_64-slc6-gcc62-opt/include (found version \"6.08/06\") \r\n-- No package filtering rules read\r\n-- Configuring the build of package: xAODAnaHelpers\r\n-- Found ROOT: /cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.0/InstallArea/x86_64-slc6-gcc62-opt/include (found version \"6.08/06\") \r\n-- Found ROOT: /cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.0/InstallArea/x86_64-slc6-gcc62-opt/include (found version \"6.08/06\") \r\n-- Number of packages configured: 2\r\n-- Using the LCG modules without setting up a release\r\n-- Including the packages from project AnalysisBase - 21.2.0...\r\n-- Including the packages from project AnalysisBaseExternals - 21.2.0...\r\n-- Using the LCG modules without setting up a release\r\n-- Generated file: /users/mfeickert/testarea/test-2017-08-24/build/x86_64-centos7-gcc62-opt/packages.txt\r\n-- Generated file: /users/mfeickert/testarea/test-2017-08-24/build/x86_64-centos7-gcc62-opt/compilers.txt\r\n-- Generated file: /users/mfeickert/testarea/test-2017-08-24/build/x86_64-centos7-gcc62-opt/ReleaseData\r\n-- Generating external environment configuration\r\n-- Using the LCG modules without setting up a release\r\n-- Writing runtime environment to file: /users/mfeickert/testarea/test-2017-08-24/build/x86_64-centos7-gcc62-opt/env_setup.sh\r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: /users/mfeickert/testarea/test-2017-08-24/build\r\n```\r\n\r\n\r\n@kratsg In terms of reporting the bug, I should just reference this Issue and mention that `${CMTCONFIG}` isn't getting set correctly?"}}
{"actor":{"display_login":"matthewfeickert"}}