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

OOB during package build #92

Closed
iagobaapellaniz opened this issue Jun 19, 2017 · 7 comments
Closed

OOB during package build #92

iagobaapellaniz opened this issue Jun 19, 2017 · 7 comments

Comments

@iagobaapellaniz
Copy link

Building CUDArt fails. After solving the rest of problems I encountered in the way, I get this error now, which I cannot solve

LoadError: BoundsError: attempt to access 0-element Array{String,1} at index [1]
...

I'm not an expert on this, so I can give more details if you want, but I preferred to keep the thread as simple as possible.

@vchuravy
Copy link
Contributor

Can you post the full backtrace?

@iagobaapellaniz
Copy link
Author

The version info shows this

Julia Version 0.5.2
Commit f4c6c9d (2017-05-06 16:34 UTC)
Platform Info:
  OS: Linux (x86_64-redhat-linux)
  CPU: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT NO_AFFINITY NEHALEM)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, broadwell)

If I try to build CUDArt I obtain this.

julia> Pkg.build("CUDArt")
INFO: Building CUDAdrv
INFO: CUDAdrv.jl has already been built for this set-up.
INFO: Building CUDArt
===============================[ ERROR: CUDArt ]================================

LoadError: BoundsError: attempt to access 0-element Array{String,1} at index [1]
while loading /home/iapellaniz/.julia/v0.5/CUDArt/deps/build.jl, in expression starting on line 380

================================================================================

================================[ BUILD ERRORS ]================================

WARNING: CUDArt had build errors.

 - packages with build errors remain installed in /home/iapellaniz/.julia/v0.5
 - build the package(s) and all dependencies with `Pkg.build("CUDArt")`
 - build a single package by running its `deps/build.jl` script

==============================================================================

Is this what you mean by full backtrace?

@maleadt
Copy link
Contributor

maleadt commented Jun 27, 2017

The catch ex ... rethrow(ex) seems to ruin the backtrace -- anybody knows how come?

Anyway, try removing that and re-run build. That is, change CUDArt/deps/build.jl from:

try
    main()
catch ex
    # if anything goes wrong, wipe the existing ext.jl to prevent the package from loading
    rm(ext; force=true)
    rethrow(ex)
end

into

main()

and re-run Pkg.build. Now post the full back-trace.

@maleadt maleadt changed the title Build fails OOB during package build Jun 27, 2017
@timholy
Copy link
Contributor

timholy commented Jun 27, 2017

Backtraces are much better on 0.6 so it would be worth checking there.

@maleadt
Copy link
Contributor

maleadt commented Aug 9, 2017

Going to close this for lack of information. Please run deps/build.jl manually, ie. julia CUDArt/deps/build.jl instead of Pkg.build("CUDArt") as Pkg truncates the stacktrace.

Also, the build system has changed a bit, so this just might be fixed already.

@maleadt maleadt closed this as completed Aug 9, 2017
@iagobaapellaniz
Copy link
Author

iagobaapellaniz commented Aug 11, 2017 via email

@maleadt
Copy link
Contributor

maleadt commented Aug 11, 2017

I still have some problem but not related to this issue anymore.

If you do, just open another issue, or open a thread on Discourse. But please try and include a full backtrace + version/commit info, otherwise this kind of issue is really hard to debug.

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

4 participants