Open bfnserra opened 2 years ago
Same problem here. [Manjaro / kernel 5.16]
❯ arm-none-eabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-none-eabi/11.2.0/lto-wrapper
Target: arm-none-eabi
Configured with: /build/arm-none-eabi-gcc/src/gcc-11.2.0/configure --target=arm-none-eabi --prefix=/usr --with-sysroot=/usr/arm-none-eabi --with-native-system-header-dir=/include --libexecdir=/usr/lib --enable-languages=c,c++ --enable-plugins --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-gnu-as --with-gnu-ld --with-system-zlib --with-newlib --with-headers=/usr/arm-none-eabi/include --with-python-dir=share/gcc-arm-none-eabi --with-gmp --with-mpfr --with-mpc --with-isl --with-libelf --enable-gnu-indirect-function --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-pkgversion='Arch Repository' --with-bugurl=https://bugs.archlinux.org/ --with-multilib-list=rmprofile
Thread model: single
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.0 (Arch Repository)
How did you manage to come that far? I am already stuck at compiling version.c:
arm-none-eabi-gcc -c -I../include -I../common -I. -Wall -Werror -pedantic -std=c99 -I. -Os -mthumb -mthumb-interwork -o obj/version.o version.c
In file included from ../include/usb_cmd.h:21,
from ../include/proxmark3.h:17,
from version.c:1:
/usr/lib/gcc/arm-none-eabi/11.1.0/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory
9 | # include_next <stdint.h>
| ^~~~~~~~~~
compilation terminated.
@pwpiwi - looks like you have a different error, probably related to some dependencies... ? I googled "stdint.h: No such file or directory" and found some interesting things, hope it helps !
@bnfserra: sudo dnf install arm-none-eabi-newlib
fixed my issue on Fedora. I now can confirm your issue. Looking into it..
In the meantime, I was able to start playing via docker : docker run -it --device="/dev/ttyACM0" --privileged -v /tmp/share:/opt/proxmark3/Data iceman1001/proxmark3:1.7.0
Hope it helps.
I made these changes to have it compile: https://github.com/Proxmark/proxmark3/commit/ee8491b04a5ef3950c2fdc1dd2c2a14706247e7e
Same issue (array subscript 'uint32_t {aka long unsigned int}[0]' is partly outside array bounds of 'char[1]'
) on Windows following these instructions.
you can also try https://github.com/rfidresearchgroup/proxmark3 which is a more up-to-date client / firmware for your proxmark3
The changes from @crazyquark's commit solved the issue.
This is not the way you're supposed to use linker defined symbols. It should be
extern uint8_t _bootrom_start[], _bootrom_end[], _flash_start[], _flash_end[];
https://github.com/rfidresearchgroup/proxmark3 has
extern uint32_t _bootrom_start[], _bootrom_end[], _flash_start[], _flash_end[], _osimage_entry[];
that makes a ton more sense. thanks.
Hello Proxmark team !
I'm trying to build proxmark on fedora 35 (arm-none-eabi-gcc 11.1.0) and got the following error:
Here is information about arm-none-eabi-gcc:
Thanks in advance for your help !