https://github.com/eclipse-score/toolchains_gcc_packages
Bazel toolchains for GNU GCC
https://github.com/eclipse-score/toolchains_gcc_packages
Last synced: 3 months ago
JSON representation
Bazel toolchains for GNU GCC
- Host: GitHub
- URL: https://github.com/eclipse-score/toolchains_gcc_packages
- Owner: eclipse-score
- License: apache-2.0
- Created: 2025-04-22T08:29:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-10T18:40:33.000Z (10 months ago)
- Last Synced: 2025-09-10T22:50:33.073Z (10 months ago)
- Language: Shell
- Homepage: https://eclipse-score.github.io/toolchains_gcc_packages
- Size: 17.6 KB
- Stars: 0
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# toolchains_gcc_packages
Bazel toolchains for GNU GCC
## Overview
This repository builds GCC toolchains for use with Bazel build system using crosstool-ng.
## Supported Architectures
- x86_64 (AMD64)
- aarch64 (ARM64)
## Building
### Using Docker (recommended)
```bash
# Build for x86_64 (default)
./docker_build_and_run.sh
# Build for ARM64
./docker_build_and_run.sh arm64
# Build for specific architecture and GCC version
./docker_build_and_run.sh arm64 12
```
### Manual Build
```bash
# Set required environment variables
export GCC=12 # GCC major version
export ARCH=x86_64 # or arm64/aarch64
# Run the build
./build.sh
```
## Output
The build will create a tarball in the `output/` directory:
- For x86_64: `x86_64-unknown-linux-gnu_gcc12.tar.gz`
- For ARM64: `aarch64-unknown-linux-gnu_gcc12.tar.gz`