Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GCC Cross-compiler for LoongArch64, built with crosstool-NG (Arch Linux package)

License

NotificationsYou must be signed in to change notification settings

AnClark/loongarch64-linux-crosstool-gcc-PKGBUILD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

简体中文

This is aPKGBUILD of LoongArch64 GCC Toolchain for Arch Linux, built withCrosstool-NG.

You will get a Pacman-compatible package. You can install for yourself, or install on other devices with Arch Linux (or derivatives) installed.

This project is based on a guide fromJiege's {maintaining, programming, and board debugging} Notes. Reference:

Features

  • Uses Jiege'sCrosstool-NG fork with LoongArch64 support, andrelated config files. But he has removed the related branch, so this repo will usemy own backup.
  • No need to install Crosstool-NG into your system. Instead, directly run it withinmakepkg procedures.
  • Obeys canonical path of cross-toolchains (like MinGW-w64 in Arch official repo).

Usage

1. Install dependencies of Crosstool-NG:

sudo pacman -S bison flex autoconf automake help2man

2. Build:

makepkg

3. Install:

sudo pacman -U loongarch64-linux-crosstool-gcc-12.1.0-1-x86_64.pkg.tar.zst

License

MIT License


为 Arch Linux 设计的 LoongArch64 GCC 工具链

这是适用于Arch Linux的LoongArch64 GCC工具链PKGBUILD,借助Crosstool-NG来构建。

最终你会得到适用于Pacman的安装包,可以为自己安装,也可以在其他Arch Linux(或衍生版本)的设备上安装并运行。

本项目基于杰哥的{运维,编程,调板子}小笔记 的经验教程而编写,参考了他的以下文章:

功能特性

  • 使用杰哥提供的Crosstool-NG(加入了LoongArch64支持),以及相关的配置文件。但是,原作者已经移除了相关分支,因此本repo将使用我的备份
  • 无需将Crosstool-NG安装到系统中,直接在makepkg过程中运行之。
  • 遵循交叉编译工具链的安装路径规范(如Arch官方源的MinGW-w64)。

用法

第一步, 安装Crosstool-ng依赖项:

sudo pacman -S bison flex autoconf automake help2man

第二步, 开始构建:

makepkg

第三步, 安装:

sudo pacman -U loongarch64-linux-crosstool-gcc-12.1.0-1-x86_64.pkg.tar.zst

许可证

MIT License

About

GCC Cross-compiler for LoongArch64, built with crosstool-NG (Arch Linux package)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp