nerves_io_rc522

Build log

host

nerves_io_rc522 0.1.0 · fail · run nerves_io_rc522-0.1.0-1791011989892
123 of 123 lines
1Resolving Hex dependencies...2Resolution completed in 0.11s3Unchanged:4  circular_buffer 1.1.05  elixir_make 0.10.06  interactive_cmd 0.1.47  nerves 2.0.0-pre.28  nerves_discovery 0.1.59  nerves_io_rc522 0.1.010  nerves_logging 0.2.411  nerves_runtime 0.13.1312  nerves_system_bbb 2.30.213  nerves_system_br 1.34.414  nerves_system_mangopi_mq_pro 0.17.215  nerves_system_qemu_aarch64 0.4.216  nerves_system_rpi0 2.1.217  nerves_system_rpi4 2.1.218  nerves_system_rpi5 2.1.219  nerves_system_trellis 0.5.020  nerves_system_x86_64 1.34.221  nerves_toolchain_aarch64_nerves_linux_gnu 15.3.122  nerves_toolchain_armv6_nerves_linux_gnueabihf 15.3.123  nerves_toolchain_armv7_nerves_linux_gnueabihf 15.3.124  nerves_toolchain_riscv64_nerves_linux_gnu 15.3.125  nerves_toolchain_x86_64_nerves_linux_musl 15.3.126  nerves_uevent 0.1.727  property_table 0.3.428  ring_logger 0.11.729  tablet 0.3.330  toolshed 0.5.031  uboot_env 1.0.232All dependencies have been fetched33==> nerves_io_rc52234cc -c -I/usr/local/lib/erlang/usr/include -O2 -Wall -Wextra -Wno-unused-parameter -o src/main.o src/main.c35cc -c -I/usr/local/lib/erlang/usr/include -O2 -Wall -Wextra -Wno-unused-parameter -o src/bcm2835.o src/bcm2835.c36src/bcm2835.c: In function ‘bcm2835_peri_read’:37src/bcm2835.c:117:51: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]38  117 |         printf("bcm2835_peri_read  paddr %08X\n", (unsigned) paddr);39      |                                                   ^40src/bcm2835.c: In function ‘bcm2835_peri_read_nb’:41src/bcm2835.c:139:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]42  139 |         printf("bcm2835_peri_read_nb  paddr %08X\n", (unsigned) paddr);43      |                                                      ^44src/bcm2835.c: In function ‘bcm2835_peri_write’:45src/bcm2835.c:155:63: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]46  155 |         printf("bcm2835_peri_write paddr %08X, value %08X\n", (unsigned) paddr, value);47      |                                                               ^48src/bcm2835.c: In function ‘bcm2835_peri_write_nb’:49src/bcm2835.c:171:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]50  171 |                (unsigned) paddr, value);51      |                ^52src/bcm2835.c: In function ‘bcm2835_gpio_pad’:53src/bcm2835.c:409:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]54  409 |   if (bcm2835_pads == MAP_FAILED)55      |   ^~56src/bcm2835.c:412:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’57  412 |     volatile uint32_t* paddr = bcm2835_pads + BCM2835_PADS_GPIO_0_27/4 + group;58      |     ^~~~~~~~59src/bcm2835.c: In function ‘bcm2835_gpio_set_pad’:60src/bcm2835.c:422:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]61  422 |   if (bcm2835_pads == MAP_FAILED)62      |   ^~63src/bcm2835.c:425:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’64  425 |     volatile uint32_t* paddr = bcm2835_pads + BCM2835_PADS_GPIO_0_27/4 + group;65      |     ^~~~~~~~66src/bcm2835.c: In function ‘bcm2835_delayMicroseconds’:67src/bcm2835.c:450:46: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]68  450 |         printf("bcm2835_delayMicroseconds %lld\n", micros);69      |                                           ~~~^     ~~~~~~70      |                                              |     |71      |                                              |     uint64_t {aka long unsigned int}72      |                                              long long int73      |                                           %ld74src/bcm2835.c: In function ‘bcm2835_init’:75src/bcm2835.c:1329:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]76 1329 |           bcm2835_peripherals_base = (uint32_t *)(buf[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3] << 0);77      |                                      ^78src/bcm2835.c:1355:77: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]79 1355 |       bcm2835_peripherals = mapmem("gpio", bcm2835_peripherals_size, memfd, (uint32_t)bcm2835_peripherals_base);80      |                                                                             ^81src/bcm2835.c:1386:77: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]82 1386 |       bcm2835_peripherals = mapmem("gpio", bcm2835_peripherals_size, memfd, (uint32_t)bcm2835_peripherals_base);83      |                                                                             ^84cc -c -I/usr/local/lib/erlang/usr/include -O2 -Wall -Wextra -Wno-unused-parameter -o src/rc522.o src/rc522.c85cc -c -I/usr/local/lib/erlang/usr/include -O2 -Wall -Wextra -Wno-unused-parameter -o src/rfid.o src/rfid.c86cc src/main.o src/bcm2835.o src/rc522.o src/rfid.o -L/usr/local/lib/erlang/usr/lib -lei  -o priv/rc52287Compiling 1 file (.ex)88    warning: using single-quoted strings to represent charlists is deprecated.89    Use ~c"" if you indeed want a charlist or use "" instead.90    You may run "mix format --migrate" to change all single-quoted91    strings to use the ~c sigil and fix this warning.92    │93 53 │     executable = :code.priv_dir(:nerves_io_rc522) ++ '/rc522'94    │                                                      ~95    │96    └─ lib/nerves_io_rc522.ex:53:549798    warning: variable args in code block has no effect as it is never returned (remove the variable or assign it to _ to avoid warnings)99    │100 54 │     args101    │     ~102    │103    └─ lib/nerves_io_rc522.ex:54:5: Nerves.IO.RC522.restart/1104105    error: undefined variable "args"106    │107 56 │                      [{:args, args},108    │                               ^^^^109    │110    └─ lib/nerves_io_rc522.ex:56:31: Nerves.IO.RC522.restart/1111112    error: undefined variable "args"113    │114 54 │     args115    │     ^^^^116    │117    └─ lib/nerves_io_rc522.ex:54:5: Nerves.IO.RC522.restart/1118119120== Compilation error in file lib/nerves_io_rc522.ex ==121** (CompileError) lib/nerves_io_rc522.ex: cannot compile module Nerves.IO.RC522 (errors have been logged)122123could not compile dependency :nerves_io_rc522, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile nerves_io_rc522 --force", update it with "mix deps.update nerves_io_rc522" or clean it with "mix deps.clean nerves_io_rc522"