Closed josefsachsconning closed 8 years ago
Did you check out things with Windows file extensions accidentally.
Not sure what you mean. With no .julia/v0.5
directory, I did:
Pkg.add("Gallium")
Pkg.checkout("Reactive")
Pkg.checkout("ObjFileBase")
Pkg.checkout("StructIO")
Pkg.checkout("AbstractTrees")
Pkg.checkout("DWARF")
Pkg.checkout("ELF")
Pkg.checkout("MachO")
Pkg.clone("https://github.com/Keno/COFF.jl")
Pkg.checkout("TerminalUI")
Pkg.checkout("ASTInterpreter")
Pkg.checkout("VT100")
Pkg.checkout("JuliaParser")
Pkg.checkout("Gallium")
using Gallium
and got the previously posted output.
It looks like the package got checked out with \r\n file endings rather than \n file endings.
Isn't \r\n the expected line ending on Windows?
JuliaParser should probably be fixed to handle this case, but it is convention to leave file endings as is for cross-os files.
Is there something I can do to configure the Julia package manager or git to use \n line ending?
Not sure. It has the proper line endings on my windows machine. I can take a look at JuliaParser tomorrow though and make it robust against this case.
After I do
git config --global core.eol lf
git config --global core.autocrlf input
and reinstall packages, Gallium precompiles successfully.
After changing back my git configuration and reinstalling packages, I get
C:\Users\s2sajs>C:\cygwin64\home\s2sajs\julia-master\usr\bin\julia.exe
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.5.0-dev+4374 (2016-05-28 19:50 UTC)
_/ |\__'_|_|_|\__'_| | Commit 6591216 (0 days old master)
|__/ | x86_64-w64-mingw32
julia> using Gallium
INFO: Precompiling module Gallium...
WARNING: deprecated syntax "call(::Type{ObjFileBase.StrTab}, ...)".
Use "(::Type{ObjFileBase.StrTab})(...)" instead.
ERROR: LoadError: too many parameters for type Sections
in include_from_node1(::String) at .\loading.jl:426
in macro expansion; at .\none:2 [inlined]
in anonymous at .\<missing>:?
in eval(::Module, ::Any) at .\boot.jl:225
in process_options(::Base.JLOptions) at .\client.jl:243
in _start() at .\client.jl:322
while loading C:\Users\s2sajs\.julia\v0.5\ELF\src\ELF.jl, in expression starting on line 458
ERROR: LoadError: Failed to precompile ELF to C:\Users\s2sajs\.julia\lib\v0.5\ELF.ji
in compilecache(::String) at .\loading.jl:505
in require(::Symbol) at .\loading.jl:337
in include_from_node1(::String) at .\loading.jl:426
in macro expansion; at .\none:2 [inlined]
in anonymous at .\<missing>:?
in eval(::Module, ::Any) at .\boot.jl:225
in process_options(::Base.JLOptions) at .\client.jl:243
in _start() at .\client.jl:322
while loading C:\Users\s2sajs\.julia\v0.5\Gallium\src\Gallium.jl, in expression starting on line 7
ERROR: Failed to precompile Gallium to C:\Users\s2sajs\.julia\lib\v0.5\Gallium.ji
in compilecache(::String) at .\loading.jl:505
in require(::Symbol) at .\loading.jl:364
in eval(::Module, ::Any) at .\boot.jl:225
in macro expansion at .\REPL.jl:92 [inlined]
in (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at .\event.jl:46
Outdated ELF package?
Pkg.update() did not report updating ELF.
julia> Pkg.status("ELF")
- ELF 0.0.2+ master
ObjFileBase then maybe? Looks like you may not have https://github.com/Keno/ObjFileBase.jl/commit/27354db5b72bd0103f9f4cde4e67d109fa990d89
Yes, I neglected to Pkg.checkout("ObjFileBase")
. Sorry for the confusion.
Using master branch of Julia and Gallium and its dependencies.