question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failing to compile from install.sh

See original GitHub issue

I’m getting the following two errors while compiling the code:

csrc/lamb/fused_lamb_cuda_kernel.cu:58:10: fatal error: type_shim.h: No such file or directory
 #include "type_shim.h"
          ^~~~~~~~~~~~~
compilation terminated.

I copied two files from thirdparty/apex/csrc (compat.h and type_shim.h) and it worked.

csrc/transformer/general_kernels.cu:1:10: fatal error: general_kernels.h: No such file or directory
 #include "general_kernels.h"

It seems that (for some reason) the -I flag is not using absolute paths, but the compiled files are. I fixed that by adding absolute paths in setup.py, replacing all relevant include_dirs lines with:

include_dirs=[os.path.join(os.path.abspath(os.path.dirname(__file__)), 'csrc', 'includes')],

I can also upload a pull request if that works better.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tbennuncommented, Sep 17, 2020

@vfdev-5 if it’s still not working for you I’ll reopen.

0reactions
tbennuncommented, Sep 17, 2020

I can confirm this issue has been resolved for me on the latest master. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

debian - Trying to execute a .sh file. However, I get the error ...
apt-get install install.sh. The first two above commands gave me the error "Configuration Absent: Installation Failed". The third command gave ...
Read more >
command line - Unable to install a .sh file - Ask Ubuntu
I am trying to use a package called mgl-tools and when I run ./install.sh, it isn't working. It used to work a few...
Read more >
Issues - GitHub
Failed installation when running './install.sh' · Issue #239 · torch/distro · GitHub.
Read more >
BUG.am: error: 'install.sh' is an anachronism - Neuron.yale.edu
Dear Neuron developers, I'm experiencing some issues with the build.sh script and the configure step of NEURON on a cluster.
Read more >
docker container failing to start after running install.sh script
I am trying to run a bash script (install.sh) after the container is created to run apt-get update install wget etc, but the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found