apps icon indicating copy to clipboard operation
apps copied to clipboard

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

Open jaspervanbrian opened this issue 11 months ago • 3 comments

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.

jaspervanbrian avatar Dec 18 '24 14:12 jaspervanbrian