Skip to content

[Nexus] Getting mix setup error for :crc dependency on first run. #76

@jaspervanbrian

Description

@jaspervanbrian

Seems renaming of crc_algorithm fails on the first try.
Can confirm I both have gcc and make, but it's giving errors on the first mix setup

Second run of mix setup, seems the app is fine though.

Error message:

==> ex_stun                                                                                                                                                                                                                                   
Compiling 16 files (.ex)                                                                                                                                                                                                                      
warning: 0..(2 <<< 14) - 1 inside guards requires an explicit step, please write 0..(2 <<< 14) - 1//1 or 0..(2 <<< 14) - 1//-1 instead
  lib/ex_stun/message/type.ex:51: ExSTUN.Message.Type.from_value/1                                                     

Generated ex_stun app                                      
==> elixir_make                                            
Compiling 8 files (.ex)                                    
Generated elixir_make app                                  
==> crc                                                    
 C      checksum_xor.c                                     
 C      crc_8.c                                            
 C      crc_algorithm.c                                    
Rename failed: /Users/user/Projects/phoenix-projects/apps/nexus/_build/dev/lib/crc/obj/crc_algorithm-dc3af234.o.tmp -> /Users/user/Projects/phoenix-projects/apps/nexus/_build/dev/lib/crc/obj/crc_algorithm.o: No such file or directory
error: unable to rename temporary '/Users/user/Projects/phoenix-projects/apps/nexus/_build/dev/lib/crc/obj/crc_algorithm-dc3af234.o.tmp' to output file '/Users/user/Projects/phoenix-projects/apps/nexus/_build/dev/lib/crc/obj/crc_algorithm
.o': 'No such file or directory'                           
1 error generated.                                         
make: *** [/Users/user/Projects/phoenix-projects/apps/nexus/_build/dev/lib/crc/obj/crc_algorithm.o] Error 1            
could not compile dependency :crc, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile crc --force", update it with "mix deps.update crc" or clean it with "mix deps.clean crc"
==> nexus                                                  
** (Mix) Could not compile with "make" (exit status: 2).
You need to have gcc and make installed. Try running the
commands "gcc --version" and / or "make --version". If these programs                                                  
are not installed, you will be prompted to install them.

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