RHEL: kde sehnat arm-linux-gnueabihf-gcc?

RHEL: kde sehnat arm-linux-gnueabihf-gcc?
« kdy: 18. 04. 2024, 13:14:13 »
Zdravím,
nevíte prosím někdo, jak na oracle linux 9 - (rhel 9), aarch64 zprovoznit arm-linux-gnueabihf-gcc? Nejde mi cross kompilace box86. Balicek je snad jen v ubuntu a debianu. Zdroják, abych si to zkompiloval sám jsem nenašel. V epel a cbr take nic podobného není :(

-- Didn't find assembler
CMake Error at CMakeLists.txt:92 (project):
  The CMAKE_C_COMPILER:
    arm-linux-gnueabihf-gcc


Re:RedHat - kde sehnat arm-linux-gnueabihf-gcc?
« Odpověď #1 kdy: 18. 04. 2024, 13:28:16 »

Re:RHEL: kde sehnat arm-linux-gnueabihf-gcc?
« Odpověď #2 kdy: 18. 04. 2024, 13:42:18 »
Všechny zmíněné balíčky mám nainstalované. Není ještě potřeba nějak nastavit PATH (a jak případně)?

Kód: [Vybrat]
[root@vps build]# cmake .. -DADLINK=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo; make -j
-- The C compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:92 (project):
  The CMAKE_C_COMPILER:

    arm-linux-gnueabihf-gcc

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.

Kód: [Vybrat]
[root@vps build]# arm-linux-gnueabihf-gcc
bash: arm-linux-gnueabihf-gcc: command not found

Kód: [Vybrat]
[root@vps build]# arm-none-eabi-gcc --version
arm-none-eabi-gcc (Fedora 12.2.0-4.el9) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



« Poslední změna: 18. 04. 2024, 13:44:11 od prokopv »

Re:RHEL: kde sehnat arm-linux-gnueabihf-gcc?
« Odpověď #3 kdy: 18. 04. 2024, 14:40:22 »
Podle toho odkazu od ogdru6jahad máš nainstalovaný balík gcc-arm-linux-gnu?

Jestli je chyba jen v PATH, tak jednoduše najdi, kde se ta binárka nachází a to pak přidej do PATH

Kód: [Vybrat]
find / -name arm-linux-gnueabihf-gcc
Stejně tam pak níže píší:
Citace
To cross-compile hello-world as a 32-bit Linux application. On Fedora, only building kernels is currently supported. Support for cross-building user space programs is not currently provided as that would massively multiply the number of packages.

alex6bbc

  • *****
  • 1 616
    • Zobrazit profil
    • E-mail
Re:RHEL: kde sehnat arm-linux-gnueabihf-gcc?
« Odpověď #4 kdy: 18. 04. 2024, 17:44:34 »
myslim, ze ve vsech distrech je gcc jen link na pozadovanou verzi, pripadne i architekturu.


Re:RHEL: kde sehnat arm-linux-gnueabihf-gcc?
« Odpověď #5 kdy: 19. 04. 2024, 11:09:28 »
Tak jsem to rychle vyzkoušel na Oracle9, přidal jsem balík gcc-arm-linux-gnu a řekl bych, že to bude prostě /usr/bin/arm-linux-gnu-gcc

Takže udělat link z tohoto souboru na požadovaný arm-linux-gnueabihf-gcc a mělo by to jet?

Kód: [Vybrat]
cd /usr/bin
sudo ln -s arm-linux-gnu-gcc arm-linux-gnueabihf-gcc