Bug 2010474 - can not compile proxmark3 firmware for arm (can not find -lgcc)
Summary: can not compile proxmark3 firmware for arm (can not find -lgcc)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: arm-none-eabi-gcc-cs
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Michal Hlavinka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-04 18:17 UTC by oli
Modified: 2021-11-04 01:46 UTC (History)
2 users (show)

Fixed In Version: arm-none-eabi-gcc-cs-11.1.0-2.fc35
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-04 01:46:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description oli 2021-10-04 18:17:38 UTC
Description of problem:
i downloaded proxmark3 user space utilities but i can not compile them

Version-Release number of selected component (if applicable):
arm-none-eabi-binutils-cs-2.37-2.fc35.x86_64
arm-none-eabi-gcc-cs-11.1.0-0.fc35.x86_64
arm-none-eabi-newlib-4.1.0-3.fc35.noarch
arm-none-eabi-gcc-cs-c++-11.1.0-0.fc35.x86_64

How reproducible:
always

Steps to Reproduce:
1. clone https://github.com/Proxmark/proxmark3/
2. execute make in proxmark3 (requires *)
3.
*) arm-none-eabi-binutils-cs.x86_64 arm-none-eabi-gcc-cs.x86_64 arm-none-eabi-gcc-cs-c++.x86_64 arm-none-eabi-newlib.noarch
python3-devel
qt-devel
bzip2-devel
readline-devel

Actual results:
[*] MAKE client/all
===================================================================
Version info:      RRG/Iceman/master/v4.14434-15-gf4209bd1d
Client platform:   Linux
GUI support:       QT4 found, enabled ()
native BT support: Bluez not found, disabled
Jansson library:   system library not found, using local library
Lua library:       system library not found, using local library
Python3 library:   Python3 v3.10 found, enabled
Readline library:  enabled
Whereami library:  system library not found, using local library
Lua SWIG:          wrapper found
Python SWIG:       wrapper found
compiler version:  gcc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1)
===================================================================
[*] MAKE deps/amiitool/libamiibo.a
make[2]: Für das Ziel „all“ ist nichts zu tun.
[*] MAKE deps/cliparser/libcliparser.a
PLATFORM Linux
make[2]: Für das Ziel „all“ ist nichts zu tun.
[*] MAKE deps/hardnested/libhardnested.a
make[2]: Für das Ziel „all“ ist nichts zu tun.
[*] MAKE deps/liblua/liblua.a for linux
make[3]: Für das Ziel „all“ ist nichts zu tun.
[*] MAKE deps/jansson/libjansson.a
make[2]: Für das Ziel „all“ ist nichts zu tun.
[*] MAKE obj/libmbedtls.a
make[2]: Für das Ziel „all“ ist nichts zu tun.
[*] MAKE deps/reveng/libreveng.a
make[2]: Für das Ziel „all“ ist nichts zu tun.
[*] MAKE deps/tinycbor/tinycbor.a
make[2]: Für das Ziel „all“ ist nichts zu tun.
[*] MAKE deps/whereami/libwhereami.a
make[2]: Für das Ziel „all“ ist nichts zu tun.
[*] MAKE bootrom/all
compiler version:  arm-none-eabi-gcc (Fedora 11.1.0-0.fc35) 11.1.0
[=] LD obj/bootrom.elf
/usr/lib/gcc/arm-none-eabi/11.1.0/../../../../arm-none-eabi/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:55: obj/bootrom.elf] Fehler 1
make: *** [Makefile:131: bootrom/all] Fehler 2


Expected results:
no error and an executable

Additional info:

Comment 1 oli 2021-10-20 07:17:26 UTC
it seems like that package is somehow broken, please see the bug report i created in the proxmark github where doegox found some very useful information: https://github.com/RfidResearchGroup/proxmark3/issues/1524

quote:
arm-none-eabi-gcc-cs-11.1.0-0.fc35.x86_64.rpm is missing all the usual target binary libs & stubs.
Easy to see:

arm-none-eabi-gcc-cs-11.1.0-0.fc35.x86_64.rpm 26Mb
arm-none-eabi-gcc-cs-10.2.0-4.fc34.x86_64.rpm 173Mb

Comment 2 oli 2021-10-20 18:04:48 UTC
as workaround i followed doegox advice and copied that gcc.a file manually, with that i was able to compile proxmark.

Comment 3 Fedora Update System 2021-10-27 15:00:09 UTC
FEDORA-2021-d6cdd42bb4 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-d6cdd42bb4

Comment 4 Fedora Update System 2021-10-27 19:00:26 UTC
FEDORA-2021-d6cdd42bb4 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-d6cdd42bb4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-d6cdd42bb4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 oli 2021-10-28 08:00:43 UTC
looks ok to me, i was able to compile proxmark3 with that update

Comment 6 Fedora Update System 2021-11-04 01:46:14 UTC
FEDORA-2021-d6cdd42bb4 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.