Skip to content

rerunning build_executable gives ERROR: IOError: symlink: file already exists (EEXIST) #258

@scottstanie

Description

@scottstanie

Is there a flag to overwrite the last executables/symlinks created by build_executable? If I run it two times in a row, the first time it succeeds, but the second time I get

ERROR: IOError: symlink: file already exists (EEXIST)
Stacktrace:
 [1] #cp at ./none:0 [inlined]
 [2] copy_files_array(::Array{String,1}, ::String, ::Bool, ::String) at /home/scott/.julia/packages/PackageCompiler/CJQcs/src/static_julia.jl:351
 [3] copy_julia_libs(::String, ::Bool) at /home/scott/.julia/packages/PackageCompiler/CJQcs/src/static_julia.jl:372
 [4] #static_julia#5(::Nothing, ::Bool, ::Bool, ::Nothing, ::String, ::Nothing, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Bool, ::Nothing, ::Bool, ::Bool, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::typeof(static_julia), ::String) at /home/scott/.julia/packages/PackageCompiler/CJQcs/src/static_julia.jl:175
 [5] #static_julia at ./none:0 [inlined]
 [6] #build_executable#31 at /home/scott/.julia/packages/PackageCompiler/CJQcs/src/api.jl:104 [inlined]
 [7] build_executable at /home/scott/.julia/packages/PackageCompiler/CJQcs/src/api.jl:104 [inlined] (repeats 2 times)
 [8] top-level scope at util.jl:156

I can't tell if there is some option in the function to do this that I am missing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions