Proxmark3 community

Research, development and trades concerning the powerful Proxmark3 device.

Remember; sharing is caring. Bring something back to the community.


"Learn the tools of the trade the hard way." +Fravia

You are not logged in.

Announcement

Time changes and with it the technology
Proxmark3 @ discord

Users of this forum, please be aware that information stored on this site is not private.

#1 2010-03-12 02:45:15

loganWHD
Member
Registered: 2010-03-12
Posts: 10

Compiling Errors

Ok so I got the p3 and tried with Make had a few errors
came here and saw the post on the armdevkit
Tried that.
I am on a Debian Based System, BackTrack 4

When I go to the dir I get this:
bt4:~/proxmark3/linux/proxmark3-read-only# make
make -C bootrom all
make[1]: Entering directory `/root/proxmark3/linux/proxmark3-read-only/bootrom'
perl ../tools/mkversion.pl .. > version.c || cp ../common/default_version.c version.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -I. -mthumb -mthumb-interwork -o obj/version.o version.c
make[1]: arm-eabi-gcc: Command not found
make[1]: *** [obj/version.o] Error 127
make[1]: Leaving directory `/root/proxmark3/linux/proxmark3-read-only/bootrom'
make: *** [bootrom/all] Error 2

Offline

#2 2010-03-12 03:04:59

loganWHD
Member
Registered: 2010-03-12
Posts: 10

Re: Compiling Errors

An Update:

In my ~/.bashrc file i have these lines

export ARMLIB=/root/gnuarm/lib/gcc/arm-elf/4.3.3/interwork
export PATH=${PATH}:/root/gnuarm/bin/
export DEVKITPRO=/opt/devkitpro/
export DEVKITARM=$DEVKITPRO/devkitARM

Offline

#3 2010-03-12 06:47:52

iZsh
Contributor
Registered: 2010-01-02
Posts: 95

Re: Compiling Errors

Are you sure you have arm-eabi-gcc in /root/gnuarm/bin instead of $DEVKITPRO/devkitARM/bin ?

Offline

#4 2010-03-12 15:18:39

loganWHD
Member
Registered: 2010-03-12
Posts: 10

Re: Compiling Errors

yah I am
@bt4:/opt/devkitpro# locate arm-eabi-gcc
/opt/devkitpro/devkitARM/bin/arm-eabi-gcc
/opt/devkitpro/devkitARM/bin/arm-eabi-gcc-4.4.3
/opt/devkitpro/devkitARM/bin/arm-eabi-gccbug
/opt/devkitpro/devkitARM/man/man1/arm-eabi-gcc.1
/root/gnuarm/bin/arm-eabi-gcc

But still I get
make
make -C bootrom all
make[1]: Entering directory `/root/proxmark3/linux/proxmark3-read-only/bootrom'
perl ../tools/mkversion.pl .. > version.c || cp ../common/default_version.c version.c
arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -I. -mthumb -mthumb-interwork -o obj/version.o version.c
arm-eabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
make[1]: *** [obj/version.o] Error 1
make[1]: Leaving directory `/root/proxmark3/linux/proxmark3-read-only/bootrom'
make: *** [bootrom/all] Error 2

Ideas?

Offline

#5 2010-03-12 16:25:56

iZsh
Contributor
Registered: 2010-01-02
Posts: 95

Re: Compiling Errors

Are you sure your /root/gnuarm/bin/arm-eabi-gcc version is not broken?

I'd execute manually this command line:
/root/gnuarm/bin/arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -I. -mthumb -mthumb-interwork -o obj/version.o version.c

and/or

$DEVKITARM/bin/arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -I. -mthumb -mthumb-interwork -o obj/version.o version.c

To check whether or not, at least one of them work.
you could also run the same command line using strace/ltrace (probably with the -f option) to see where it's failing exactly.

Offline

#6 2010-03-12 16:34:14

loganWHD
Member
Registered: 2010-03-12
Posts: 10

Re: Compiling Errors

good call
bad outcome tho

root@bt4:/opt/devkitpro# /root/gnuarm/bin/arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -I. -mthumb -mthumb-interwork -o obj/version.o version.c
arm-eabi-gcc: version.c: No such file or directory
arm-eabi-gcc: no input files
root@bt4:/opt/devkitpro# $DEVKITARM/bin/arm-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -std=gnu99 -I. -mthumb -mthumb-interwork -o obj/version.o version.c
arm-eabi-gcc: version.c: No such file or directory
arm-eabi-gcc: no input files
root@bt4:/opt/devkitpro#

Offline

#7 2010-03-12 22:28:18

iZsh
Contributor
Registered: 2010-01-02
Posts: 95

Re: Compiling Errors

It seems you don't really understand what you're doing [1]. Are you a developer/programmer? I would suggest you use whatever binary has been released for the Summer 2009 release.

[1] Hint from what you copied/pasted above:

make[1]: Entering directory `/root/proxmark3/linux/proxmark3-read-only/bootrom'
perl ../tools/mkversion.pl .. > version.c || cp ../common/default_version.c version.c

Offline

#8 2010-03-12 22:47:48

loganWHD
Member
Registered: 2010-03-12
Posts: 10

Re: Compiling Errors

no sorry i am not a dev or programmer.  just starting out trying to understand this.
Thanks for the tips

Offline

#9 2010-03-18 07:38:56

Ground Loop
Member
Registered: 2010-01-25
Posts: 15

Re: Compiling Errors

I am a programmer smile, and I still had to change arm-eabi-gcc to arm-elf-gcc in the Makefile.  Worked fine after that.

Why the change to eabi?  The included auto-building tools script that downloads and builds all the GNU tools seems to build only arm-elf-gcc.

Offline

#10 2010-03-18 15:48:05

loganWHD
Member
Registered: 2010-03-12
Posts: 10

Re: Compiling Errors

Thank you so much for your reply

here is my problem in the makefile I dont see it?

include common/Makefile.common

all clean: %: bootrom/% armsrc/% client/%

bootrom/%: FORCE
        $(MAKE) -C bootrom $(patsubst bootrom/%,%,$@)
armsrc/%: FORCE
        $(MAKE) -C armsrc $(patsubst armsrc/%,%,$@)
client/%: FORCE
        $(MAKE) -C client $(patsubst client/%,%,$@)
FORCE: # Dummy target to force remake in the subdirectories, even if files exist (this Makefile doesn't know about the prerequisites)


.PHONY: all clean help _test flash-bootrom flash-os flash-fpga flash-both flash-all FORCE
help:
        @echo Multi-OS Makefile, you are running on $(DETECTED_OS)
        @echo Possible targets:
        @echo + all           - Make bootrom, armsrc and the OS-specific host directory
        @echo + flash-bootrom - Make bootrom and flash it
        @echo + flash-os      - Make armsrc and flash os
        @echo + flash-fpga    - Make armsrc and flash fpga
        @echo + flash-both    - Make armsrc and flash os and fpga image
        @echo + flash-all     - Make bootrom and armsrc and flash bootrom, os and fpga image
        @echo + clean         - Clean in bootrom, armsrc and the OS-specific host directory

flash-bootrom: bootrom/obj/bootrom.elf $(FLASH_TOOL)
        $(FLASH_TOOL) -b $(subst /,$(PATHSEP),$<)

flash-os: armsrc/obj/osimage.elf $(FLASH_TOOL)
        $(FLASH_TOOL) $(subst /,$(PATHSEP),$<)

flash-fpga: armsrc/obj/fpgaimage.elf $(FLASH_TOOL)
        $(FLASH_TOOL) $(subst /,$(PATHSEP),$<)

flash-both: armsrc/obj/osimage.elf armsrc/obj/fpgaimage.elf $(FLASH_TOOL)
        $(FLASH_TOOL) $(subst /,$(PATHSEP),$(filter-out $(FLASH_TOOL),$^))

flash-all: bootrom/obj/bootrom.elf armsrc/obj/osimage.elf armsrc/obj/fpgaimage.elf $(FLASH_TOOL)
        $(FLASH_TOOL) -b $(subst /,$(PATHSEP),$(filter-out $(FLASH_TOOL),$^))

# Dummy target to test for GNU make availability
_test:


I dont see where to change it.  Can you tell me where please?

Thank you

Offline

Board footer

Powered by FluxBB