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

Cannot compile on Mageia (shell script permission denied?) #8669

Closed
eldiegoefe opened this issue Oct 13, 2014 · 10 comments
Closed

Cannot compile on Mageia (shell script permission denied?) #8669

eldiegoefe opened this issue Oct 13, 2014 · 10 comments
Labels
domain:building Build system, or building Julia or its dependencies system:linux Affects only Linux

Comments

@eldiegoefe
Copy link

First time reporting an issue on github, not sure if it's the right place. It might be that the problem is my beginner condition in Linux. When trying to install Julia in Mageia 4 i get this errors:

➜ julia git:(release-0.3) make
make: execvp: /home/eldiegoefe/programas/julia/contrib/relative_path.sh: Permiso denegado
make: execvp: /home/eldiegoefe/programas/julia/contrib/relative_path.sh: Permiso denegado
make[1]: execvp: /home/eldiegoefe/programas/julia/contrib/relative_path.sh: Permiso denegado
make[1]: execvp: /home/eldiegoefe/programas/julia/contrib/relative_path.sh: Permiso denegado
make[2]: execvp: /home/eldiegoefe/programas/julia/deps/jldownload: Permiso denegado
Makefile:546: recipe for target 'double-conversion-1.1.1.tar.gz' failed
make[2]: *** [double-conversion-1.1.1.tar.gz] Error 127
Makefile:87: recipe for target 'julia-release' failed
make[1]: *** [julia-release] Error 2
Makefile:37: recipe for target 'release' failed
make: *** [release] Error 2

I also tried with "sudo make" but obtained the same message.

@pao pao changed the title Failing installation Cannot compile on Mageia (shell script permission denied?) Oct 13, 2014
@pao pao added domain:building Build system, or building Julia or its dependencies system:linux Affects only Linux labels Oct 13, 2014
@tkelman
Copy link
Contributor

tkelman commented Oct 13, 2014

What version of git do you have? git --version
Also are you using a non-standard shell by any chance? echo $SHELL

I would think git should give scripts proper executable privileges, but maybe not always? What do
ls -l /home/eldiegoefe/programas/julia/contrib/relative_path.sh and
ls -l /home/eldiegoefe/programas/julia/deps/jldownload say?
If they're missing executable privileges, you may need to do
chmod +x /home/eldiegoefe/programas/julia/contrib/relative_path.sh and similarly on any other script files that need to run during the build process.

@ivarne
Copy link
Sponsor Member

ivarne commented Oct 14, 2014

@eldiegoefe Can you answer the questions?

@eldiegoefe
Copy link
Author

I reinstalled the system, since it all started to work strangely. Now I'm on Manjaro with Julia and IJulia running (and I could install them also on my laptop with Mint). While still on Mageia:

  • git was version 1.8
  • shell was zsh (with oh my zsh)
  • relative_path.sh and jldownload were property of eldiegoefe (the user executing the installation), and were executables without the need to chmod +x them.

My mageia installation was buggy, I couldn't make rpmdrake (the gui to install packages) work, I could only use the console and urpmi to update and install things. I might try Mageia again on a virtual machine, but right now I uninstalled it.

@pao
Copy link
Member

pao commented Oct 14, 2014

Since the system that this occurred on no longer exists to further test on, we should probably just close this since there's not really any actions we can take. If you go back to that system and have problems again, post here and we can reopen.

@pao pao closed this as completed Oct 14, 2014
@evanmason
Copy link

I'm trying to install Julia on Mageia 5; the problem is a bootstrap problem. I run make clean, make cleanall, then make:
...............................

more information, such as the ld(1) and ld.so(8) manual pages.

/usr/bin/mkdir -p '/opt/julia/julia/usr/lib/pkgconfig'
/usr/bin/install -c -m 644 arpack.pc '/opt/julia/julia/usr/lib/pkgconfig'
Making install in TESTS
Making install in EXAMPLES
Making install in BAND
Making install in COMPLEX
Making install in NONSYM
Making install in SIMPLE
Making install in SVD
Making install in SYM
CC src/jltypes.o
CC src/gf.o
CC src/support/hashing.o
CC src/support/timefuncs.o
CC src/support/ptrhash.o
CC src/support/operators.o
CC src/support/utf8.o
CC src/support/ios.o
CC src/support/htable.o
CC src/support/bitvector.o
CC src/support/int2str.o
CC src/support/libsupportinit.o
CC src/support/arraylist.o
CC src/support/strtod.o
LINK src/support/libsupport.a
CC src/flisp/flisp.o
CC src/flisp/builtins.o
CC src/flisp/string.o
CC src/flisp/equalhash.o
CC src/flisp/table.o
CC src/flisp/iostream.o
CC src/flisp/julia_extensions.o
LINK src/flisp/libflisp.a
CC src/flisp/flmain.o
LINK src/flisp/flisp
FLISP src/julia_flisp.boot
FLISP src/julia_flisp.boot.inc
CC src/ast.o
CC src/builtins.o
CC src/module.o
CC src/codegen.o
In file included from codegen.cpp:766:0:
debuginfo.cpp: In function ‘void jl_getDylibFunctionInfo(const char**, size_t*, const char**, size_t, int_, int)’:
debuginfo.cpp:359:16: warning: unused variable ‘msize’ [-Wunused-variable]
size_t msize = (size_t)(((uint64_t)-1)-fbase);
^
CC src/interpreter.o
CC src/alloc.o
CC src/dlload.o
CC src/sys.o
CC src/init.o
CC src/task.o
CC src/array.o
CC src/dump.o
CC src/toplevel.o
CC src/jl_uv.o
CC src/jlapi.o
CC src/profile.o
CC src/llvm-simdloop.o
CC src/gc.o
LINK usr/lib/libjulia.so
PERL base/pcre_h.jl
PERL base/errno_h.jl
PERL base/build_h.jl.phony
PERL base/fenv_constants.jl
PERL base/file_constants.jl
PERL base/uv_constants.jl
fatal: bad revision '^origin/release-0.3'
fatal: Not a valid object name origin/release-0.3
PERL base/version_git.jl.phony
CC ui/repl.o
LINK usr/bin/julia
exports.jl
base.jl
reflection.jl
build_h.jl
error during bootstrap: LoadError(at "sysimg.jl" line 28: LoadError(at "build_h.jl" line 2: ErrorException("syntax: invalid character "")))
Makefile:127: recipe for target '/opt/julia/julia/usr/lib/julia/sys0.o' failed
make[1]: *_* [/opt/julia/julia/usr/lib/julia/sys0.o] Error 1
Makefile:37: recipe for target 'release' failed
make: *** [release] Error 2
[emason@marula julia]$

I'd be grateful for any help with this.

@ivarne
Copy link
Sponsor Member

ivarne commented Sep 10, 2015

@evanmason seems like some of the system information we include when we generate base/build_h.jl on your system breaks Julia syntax. Can you post the content of the generated file so we can see what is wrong.

@evanmason
Copy link

@ivarne here is base/build_h.jl

# This file is automatically generated in base/Makefile
^[[01;31m^[[Kc^[[m^[[K^[[01;31m^[[Ko^[[m^[[K^[[01;31m^[[Kn^[[m^[[K^[[01;31m^[[Ks^[[m^[[K^[[01;31m^[[Kt^[[m^[[K^[[01;31m^[[K ^[[m^[[K^[[01;31m^[[KO^[[m^[[K^[[01;31m^[[KS^[[m^[[K^[[01;31m^[[K_^[[m^[[K^[[01;31m^[[KN^[[m^[[K^[[01;31m^[[KA^[[m^[[K^[[01;31m^[[KM^[[m^[[K^[[01;31m^[[KE^[[m^[[K^[[01;31m^[[K ^[[m^[[K^[[01;31m^[[K=^[[m^[[K^[[01;31m^[[K ^[[m^[[K^[[01;31m^[[K:^[[m^[[K^[[01;31m^[[KL^[[m^[[K^[[01;31m^[[Ki^[[m^[[K^[[01;31m^[[Kn^[[m^[[K^[[01;31m^[[Ku^[[m^[[K^[[01;31m^[[Kx^[[m^[[K
const ARCH = :x86_64
const MACHINE = "x86_64-mageia-linux-gnu"
const libm_name = "libopenlibm"
const libblas_name = "libopenblas"
const liblapack_name = "libopenblas"
const USE_BLAS64 = true
const libfftw_name = "libfftw3_threads"
const libfftwf_name = "libfftw3f_threads"
const libllvm_version = "3.5.2"
const VERSION_STRING = "0.3.12-pre"
const TAGGED_RELEASE_BANNER = ""
const SYSCONFDIR = "../etc"
const DATAROOTDIR = "../share"

@ivarne
Copy link
Sponsor Member

ivarne commented Sep 11, 2015

That looks really strange. Can you try to delete base/build_h.j and rebuild. (If that doesn't work, you should just delete the garage line(s) to see if that works.)

@evanmason
Copy link

I deleted base/build_h.jl then ran make, but the result is the same, i.e., it created a new build_h.jl with a corrupted line 2.

Then I deleted just the bad line 2 and ran make clean, make cleanall and make:

    PERL base/file_constants.jl
    PERL base/uv_constants.jl
fatal: bad revision '^origin/release-0.3'
fatal: Not a valid object name origin/release-0.3
    PERL base/version_git.jl.phony
    CC ui/repl.o
    LINK usr/bin/julia
could not open file boot.jlMakefile:127: recipe for target '/opt/julia/julia/usr/lib/julia/sys0.o' failed
make[1]: *** [/opt/julia/julia/usr/lib/julia/sys0.o] Error 1
Makefile:37: recipe for target 'release' failed
make: *** [release] Error 2
[emason@marula julia]$

@pao
Copy link
Member

pao commented Sep 11, 2015

Given that this is a very different series of events than the original issue reported here, I'd suggest opening a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:building Build system, or building Julia or its dependencies system:linux Affects only Linux
Projects
None yet
Development

No branches or pull requests

5 participants