Closed hmax42 closed 2 years ago
First,
you say you cloned the repo, but the source seems to a very old project
You have 259
compared to my latest source which is 939
Version info: RRG/Iceman/HEAD/v4.14831-259-g3169bf2-dirty
^^^
Second and the most disturbing is the fact you are using an ancient GCC compiler.
compiler version: gcc (Debian 4.9.2-10+deb8u2) 4.9.2
GCC is up on v12 now, I think we support 7.9 and forward. I recommend you upgrade to a modem compiler and try again.
On my ubuntu setup:
Version info: Iceman/master/v4.14831-963-gba1def240-dirty
compiler version: cc (Ubuntu 11.1.0-1ubuntu1~20.04) 11.1.0
Thank you for explaining
your note about the gcc version explains a lot, and the version of gcc is the main culprit, i think the gcc i am using is the latest, the apt-get repo for jessie is providing
the revision of the proxmark code does not make any differences, i started with a clean "newest" clone, then changed to "my" older revision which seems to have the number 259 i just not switch back to the newest version, when i created the log out put today for the git issue
hm, does make clean; make -j;
do a difference for your revision output?
Let me know how a more modern GCC works for you
will try gcc 8.3.0 as a start it will be interesting, i have never built a compiler with itself.
but i have to take a detour first, because
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
usually you can download gcc binaries.
But compiling it also works.
where would i download binaries for a raspberry 2 armhf platform? i thought that if apt-get cannot supply any newer version of gcc for this old platform than already installed (4.9...), i have to compile them myself. remember i am not on an regular linux pc, but on a raspberry pi.
and the same goes for the 3 libs gmp, mpfr & mpc. the versions of these libs apt-get would install were older than what gcc demanded for each i did
make sudo make install that worked for all 3
at some point i got
libmpc.so.2: cannot open shared object file: No such file or directory
so i googled and then
export LD_LIBRARY_PATH="/usr/local/lib" sudo ldconfig
then it failed at
In file included from /usr/include/stdio.h:27, from ../../../gcc-8.3.0/libgcc/../gcc/tsystem.h:87, from ../../../gcc-8.3.0/libgcc/libgcc2.c:27: /usr/include/features.h:374:12: fatal error: sys/cdefs.h: Datei oder Verzeichnis nicht gefunden
i found this file in gcc-8.3.0/fixincludes/tests/base/sys/cdefs.h and someone on stackoverflow suggested
sudo cp /home/pi/gcc/gcc-8.3.0/fixincludes/tests/base/sys/cdefs.h /usr/include/sys/
then
gnu/stubs.h s missing
and i can't find that so thats all for today
i see it this way: if i cannot build the old versions of gcc on this old platform, then i surely won't be able to build a more current version as well! i did download the tar.gz for gcc 8, 9 & 12.
ps: sorry, i forgot this is not a issue tracker for building gcc
i gave up - with jessie
i asked in the github for the hyperpixel(my reason for jessie) about the current state and seems like it works in buster now
https://github.com/pimoroni/hyperpixel/issues/58
buster comes with gcc 8, which compiles the current version
Iceman/master/v4.14831-971-geeb83e112
but thank you for the support anyway
Things gets EOL:d eventually. Hard to keep backward compatibility in the long run.
At least you tried.
What I want to do: Compile Proxmark3 on a Raspberry Pi 2 running Debian Jessie.
Why do I want to do this on this old platform: I have a Pimoroni Hyperpixel Display ( https://github.com/pimoroni/hyperpixel ) for Raspberry Pi which is incompatible with anything beyond Jessie. I'd like to use this RasPi with the display as a small mobile cli-client for various hardwares. I do not want to accept that the display is a piece of trash now.
What did i do:
following this advice i get this error
i removed the -Werror=missing-field-initializers from makefile.defs which led to
i did not find the missing-braces parametre in Makefile.def so that became the moment i stopped fiddling around and asked on discord, where i was advised to make a ticket. i did not make a ticket at first, but went to discord, because i suspect my old platform is at fault here
Further experiments I also tried to compile at an older commit revision 3169bf2763d6bfdfafc6b077ffac1cf839ff0a77 but that changes nothing
Why this old revision: it compiles on my old macbook core2duo with kali linux and this is the firmware i have currently on my proxmark 3 easy 512
Note the only c-programming i do usually is on arduino i am a java-programmer by profession
I hope this is a not doomed cause!