LongDirtyAnimAlf / fpcupdeluxe

A GUI based installer for FPC and Lazarus
476 stars 88 forks source link

riscv(64) support in fpcupdeluxe #674

Closed overanalytcl closed 1 month ago

overanalytcl commented 3 months ago

Hello! I have been trying to use fpcupdeluxe to build a cross-compiler for RISC-V (RV64), but I have noticed the option is hidden with 2.4.0d: image

Additionally, when I try to compile with riscv32 selected (since I can't select riscv64), this is the output I get:


Going to install a cross-compiler from available sources.
fpcupdeluxe: FPC cross-builder: Building compiler for linux-riscv32.
FPCUP(deluxe) is starting up.

FPCupdeluxe basedir:       /home/oracle/.local/fpc
Bootstrap dir:             /home/oracle/.local/fpc/fpcbootstrap

FPC URL:                   https://gitlab.com/freepascal.org/fpc/source
FPC source directory:      /home/oracle/.local/fpc/fpcsrc
FPC install directory:     /home/oracle/.local/fpc/fpc
FPC options:               

Lazarus URL:               https://gitlab.com/freepascal.org/lazarus/lazarus
Lazarus source directory:  /home/oracle/.local/fpc/lazarus
Lazarus install directory: /home/oracle/.local/fpc/lazarus
Lazarus options:           -g -gl -O1

Please stand back and enjoy !

15-4-24 05:00:54: fpcupdeluxe: V492 (20240301) started.
FPCUPdeluxe V2.4.0d for x86_64-linux running on Fedora Linux
Build with: FPC 3.3.1 on Win11 x86_64

Found valid as application.
Found valid gunzip application.
Found valid tar application.
Found valid make application.
fpcupdeluxe: info: FPC Cross Installer (CleanModule: FPC): Looking for crosstools and crosslibs on system. Please wait.
fpcupdeluxe: ERROR: Failed to get crossbinutils.
fpcupdeluxe: ERROR: Failed to get crosslibrary.

fpcupdeluxe: ERROR: Failure due to missing cross binary tools.
fpcupdeluxe: ERROR: Failure due to missing cross libraries.

Looking for FPCUPdeluxe cross-tools on GitHub (if any).
Going to look for the right cross-bins. Can (will) take some time !
Going to get the libs from glibc with version 225
Looking for: CrossBinsLinuxriscv32

If you can guide me on how to make said binary tools myself (I have the whole GCC toolchain for RISC-V), it would be appreciated.

LongDirtyAnimAlf commented 1 month ago

I have sucessfully cross-build a native Linux bootstrapper on Windows. Will check further and implement riscv64 for Linux if all is working.

LongDirtyAnimAlf commented 1 month ago

Done.