Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Triton installation fails #77

Open
andrewmogan opened this issue May 13, 2024 · 9 comments
Open

Triton installation fails #77

andrewmogan opened this issue May 13, 2024 · 9 comments

Comments

@andrewmogan
Copy link

spack install triton fails when adding fnal_art into a fresh spack environment. Steps to reproduce the issue:

git clone --depth=100 --branch=releases/v0.22 https://github.com/spack/spack.git ~/spack
cd ~/spack
 . share/spack/setup-env.sh
cd ~
git clone https://github.com/FNALssi/fnal_art.git
spack repo add fnal_art
spack info triton # Works
spack install triton # Spins its wheels for a while before failing 

I ran this as myself on daq.fnal.gov, which has been upgraded to AL9. The last command fails when building grpc. The full error output is very long, but I think the relevant bit is

  >> 927     /tmp/amogan/spack-stage/spack-stage-grpc-1.55.0-l7bz3k2qzquzgwlhjxzgmix6dbek7f2t/spack-src/src/core/lib/iomgr/event_engine_shims/tcp_client.cc:74:23: e
             rror: 'StrCat' is not a member of 'absl'
     928        74 |                 absl::StrCat("tcp-client:", addr_uri.value()))
     929           |                       ^~~~~~

After a bunch of Googling, it seems like abseil and grpc have a troubled history of not talking to each other and breaking things. This abseil issue seems to suggest some mutex destructor is missing, but I'm not sure if that's what's causing this problem.

In any case, it seems like there's some incompatibility between grpc and abseil in this environment. I've tried a handful of different versions of each with similar results. I also tried compiling with [email protected], which failed with a different error that still appeared to be related to a conflict between these two packages.

Any suggestions would be much appreciated.

@marcmengel
Copy link
Collaborator

We haven't updated versions on abseil-cpp in a while, mabye do a:

spack checksum abseil-cpp 20240116.2

add the resulting version line to the recipe with 'spack edit abseil-cpp' and try and build that version?
It may actually be an incompatability with, i.e. gcc@13 which is already fixed. I think the last time
the whole triton thing was built successfully it was with [email protected] or so...

@marcmengel
Copy link
Collaborator

Or alternately, specify that we want gcc@8 for triton and abseil-cpp?

@andrewmogan
Copy link
Author

Thanks, Marc.

Unfortunately, I get similar errors in both cases. For example, when building with [email protected],

  >> 940     /tmp/amogan/spack-stage/spack-stage-grpc-1.55.0-w2g4l4uxwehlezbvp76iwomwhojrzeyq/spack-src/src/core/lib/iomgr/event_engine_shims/tcp_client.cc:74:23: er
             ror: 'StrCat' is not a member of 'absl'
     941        74 |                 absl::StrCat("tcp-client:", addr_uri.value()))
     942           |    

Adding the newer checksum for abseil-cpp 20240116.2 also had the same issue.

@marcmengel
Copy link
Collaborator

marcmengel commented May 14, 2024

Did it actually build the latest abseil-cpp after you added the version? If so we may need to actually patch that tcp_client.cc
in the recipe; perhaps to add an #include <absl/strings/str_cat.h> ?

@andrewmogan
Copy link
Author

Yes, I can see this line in the output during the install:

Installing abseil-cpp-20240116.2-ti5bd3iedsluao235ibmmjilnvtea7xh [35/51]

However, it seems like upgrading to [email protected] along with that newer abseil-cpp works! Other versions may work as well; I just tried that one on a whim.

@marcmengel
Copy link
Collaborator

marcmengel commented May 14, 2024 via email

@andrewmogan
Copy link
Author

Sure thing. Which list, specifically?

@marcmengel
Copy link
Collaborator

Actually, just posting it here on the ticket should be fine.

@andrewmogan
Copy link
Author

Here, I'm using [email protected] because that's what came out of the box when I setup spack. But the build also seems to work with [email protected] and [email protected].

TL;DR I updated to [email protected] and [email protected]. There are newer versions of grpc that may work as well, but I haven't tried them.

amogan@daq:~/spack$ spack spec -l triton
Input spec
--------------------------------
 -   triton

Concretized
--------------------------------
[+]  tub3v6e  [email protected]%[email protected]~cuda~ipo build_system=cmake build_type=Release generator=make arch=linux-almalinux9-zen3
[+]  ypbwh7u      ^[email protected]%[email protected]~ipo+shared build_system=cmake build_type=Release cxxstd=14 generator=make arch=linux-almalinux9-zen3
[+]  bn2ebyy      ^[email protected]%[email protected]~ipo build_system=cmake build_type=Release generator=make arch=linux-almalinux9-zen3
[+]  q7jw434      ^[email protected]%[email protected]~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-almalinux9-zen3
[+]  dewgz2x          ^[email protected]%[email protected]~symlinks+termlib abi=none build_system=autotools patches=7a351bc arch=linux-almalinux9-zen3
[+]  uzzfyl2          ^[email protected]%[email protected]+compat+new_strategies+opt+pic+shared build_system=autotools arch=linux-almalinux9-zen3
[+]  gytwb4o      ^[email protected]%[email protected]~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs=shared,static tls=openssl arch=linux-almalinux9-zen3
[+]  ob2ebbs          ^[email protected]%[email protected] build_system=autotools arch=linux-almalinux9-zen3
[+]  7bmwc7t              ^[email protected]%[email protected] build_system=autotools arch=linux-almalinux9-zen3
[+]  fhlosnb          ^[email protected]%[email protected]+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=linux-almalinux9-zen3
[+]  cepu74p              ^[email protected]%[email protected]+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-almalinux9-zen3
[+]  xbdphso              ^[email protected]%[email protected]~debug~pic+shared build_system=generic arch=linux-almalinux9-zen3
[+]  qz6gbyw              ^[email protected]%[email protected] build_system=autotools arch=linux-almalinux9-zen3
[+]  6yi6wxc          ^[email protected]%[email protected] build_system=autotools arch=linux-almalinux9-zen3
[+]  i5myjny      ^[email protected]%[email protected] build_system=generic arch=linux-almalinux9-zen3
[e]  vr7gip6      ^[email protected]%[email protected] build_system=autotools arch=linux-almalinux9-zen3
[+]  ppzyjdw      ^[email protected]%[email protected]~guile build_system=generic arch=linux-almalinux9-zen3
[+]  pc53sah      ^[email protected]%[email protected]+gmock~ipo+pthreads+shared build_system=cmake build_type=Release cxxstd=11 generator=make arch=linux-almalinux9-zen3
[+]  7njb7c5      ^[email protected]%[email protected]+codegen~ipo~shared build_system=cmake build_type=Release cxxstd=11 generator=make arch=linux-almalinux9-zen3
[+]  nb2f4kr      ^[email protected]%[email protected]~docs+shared build_system=generic certs=mozilla arch=linux-almalinux9-zen3
[+]  kurk3aw          ^ca-certificates-mozilla@2023-05-30%[email protected] build_system=generic arch=linux-almalinux9-zen3
[+]  6liflwt      ^[email protected]%[email protected] build_system=autotools arch=linux-almalinux9-zen3
[+]  ue7j7a6      ^[email protected]%[email protected]~ipo+shared build_system=cmake build_type=Release generator=make arch=linux-almalinux9-zen3
[+]  2ezcilf      ^[email protected]%[email protected] build_system=python_pip arch=linux-almalinux9-zen3
[+]  l7ne5oh          ^[email protected]%[email protected] build_system=generic arch=linux-almalinux9-zen3
[+]  eatcgy6          ^[email protected]%[email protected]+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=13fa8bf,b0615b2,ebdca64,f2fd060 arch=linux-almalinux9-zen3
[+]  eb5sjm5              ^[email protected]%[email protected]+libbsd build_system=autotools arch=linux-almalinux9-zen3
[+]  rsl3rjx                  ^[email protected]%[email protected] build_system=autotools arch=linux-almalinux9-zen3
[+]  7jucked                      ^[email protected]%[email protected] build_system=autotools arch=linux-almalinux9-zen3
[+]  pqffw4d              ^[email protected]%[email protected]+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools arch=linux-almalinux9-zen3
[+]  fjilbzl                  ^[email protected]%[email protected]+pic~python+shared build_system=autotools arch=linux-almalinux9-zen3
[+]  2zi7fmg                  ^[email protected]%[email protected] build_system=autotools zip=pigz arch=linux-almalinux9-zen3
[+]  vky7umw                      ^[email protected]%[email protected] build_system=makefile arch=linux-almalinux9-zen3
[+]  pu3yf6l                      ^[email protected]%[email protected]+programs build_system=makefile compression=none libs=shared,static arch=linux-almalinux9-zen3
[+]  wrb2o2m              ^[email protected]%[email protected] build_system=autotools arch=linux-almalinux9-zen3
[+]  f4rrlhs              ^[email protected]%[email protected]~obsolete_api build_system=autotools patches=4885da3 arch=linux-almalinux9-zen3
[+]  lgvya55              ^[email protected]%[email protected] build_system=autotools patches=bbf97f1 arch=linux-almalinux9-zen3
[+]  xrthtyh              ^[email protected]%[email protected]+column_metadata+dynamic_extensions+fts~functions+rtree build_system=autotools arch=linux-almalinux9-zen3
[+]  7ijppn7              ^[email protected]%[email protected] build_system=autotools arch=linux-almalinux9-zen3
[+]  jcrslac              ^[email protected]%[email protected]~pic build_system=autotools libs=shared,static arch=linux-almalinux9-zen3
[+]  dbaek5i          ^[email protected]%[email protected] build_system=generic arch=linux-almalinux9-zen3
[+]  pgz25mu      ^[email protected]%[email protected] build_system=python_pip arch=linux-almalinux9-zen3
[+]  rqgncoj          ^[email protected]%[email protected] build_system=python_pip patches=c4369ad arch=linux-almalinux9-zen3
[+]  4jarczr      ^[email protected]%[email protected] build_system=python_pip arch=linux-almalinux9-zen3
[+]  m3rqh2k      ^[email protected]%[email protected] build_system=python_pip patches=873745d arch=linux-almalinux9-zen3
[+]  uhyftgn          ^[email protected]%[email protected]~bignuma~consistent_fpcsr+dynamic_dispatch+fortran~ilp64+locking+pic+shared build_system=makefile symbol_suffix=none threads=none arch=linux-almalinux9-zen3
[+]  6lst4ie          ^[email protected]%[email protected] build_system=python_pip arch=linux-almalinux9-zen3
[+]  xkxbzyd              ^[email protected]%[email protected] build_system=python_pip patches=0f0b1bd arch=linux-almalinux9-zen3
[+]  374pfmf                  ^[email protected]%[email protected]+re2c build_system=generic arch=linux-almalinux9-zen3
[+]  bgegqqw                      ^[email protected]%[email protected] build_system=generic arch=linux-almalinux9-zen3
[+]  lxpenva              ^[email protected]%[email protected] build_system=python_pip arch=linux-almalinux9-zen3
[+]  ddh34em                  ^[email protected]%[email protected] build_system=python_pip arch=linux-almalinux9-zen3
[+]  kg373o4                      ^[email protected]%[email protected] build_system=python_pip arch=linux-almalinux9-zen3
[+]  m4ayb46      ^[email protected]%[email protected] build_system=python_pip arch=linux-almalinux9-zen3
[+]  vvkx57x      ^[email protected]%[email protected] build_system=generic arch=linux-almalinux9-zen3
[+]  w4xmzc5      ^[email protected]%[email protected] build_system=generic arch=linux-almalinux9-zen3
[+]  xhljbc2      ^[email protected]%[email protected]~doc~ipo build_system=cmake build_type=Release generator=make patches=a4316c5 arch=linux-almalinux9-zen3
[+]  yzphmun      ^re2@2023-09-01%[email protected]~ipo+pic+shared build_system=cmake build_type=Release generator=make arch=linux-almalinux9-zen3

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

No branches or pull requests

2 participants