Package Details: sh-elf-gcc 10.2.0-1

Git Clone URL: https://aur.archlinux.org/sh-elf-gcc.git (read-only, click to copy)
Package Base: sh-elf-gcc
Description: The GNU Compiler Collection - cross compiler for SuperH (bare-metal) target
Upstream URL: http://gcc.gnu.org/
Licenses: GPL, LGPL, FDL
Submitter: Megver83
Maintainer: Megver83
Last Packager: Megver83
Votes: 3
Popularity: 0.24
First Submitted: 2018-05-05 22:56
Last Updated: 2021-03-13 23:57

Pinned Comments

Megver83 commented on 2019-06-14 20:02

Notes about this package:
  • For building it, you first need sh-elf-binutils and sh-elf-newlib, which requires the standalone sh-elf-gcc cross-compiler
  • For building the standalone cross-compiler, use this PKGBUILD and replace the '_target' variable with sh-elf-gcc
  • If you need help for anything that's not related about the package or its building process (e.g. technical issues related to GCC), please visit their forums and mailing lists. You'll probably find no help here in the comments.

Latest Comments

Megver83 commented on 2019-06-14 20:02

Notes about this package:
  • For building it, you first need sh-elf-binutils and sh-elf-newlib, which requires the standalone sh-elf-gcc cross-compiler
  • For building the standalone cross-compiler, use this PKGBUILD and replace the '_target' variable with sh-elf-gcc
  • If you need help for anything that's not related about the package or its building process (e.g. technical issues related to GCC), please visit their forums and mailing lists. You'll probably find no help here in the comments.

Megver83 commented on 2018-07-27 17:32

@rattboi, you've two options: the easy one is to save time and install the compiler and its dependencies from binaries:

https://www.parabola.nu/packages/libre/x86_64/sh-elf-gcc/ (there's for x86_64, i686 and armv7h)

Or clone this repo, create a new branch (say "standalone"), use a different PKGBUILD as follow:

$ git clone <https://aur.archlinux.org/sh-elf-gcc.git>
$ cd sh-elf-gcc
$ git checkout -b standalone
$ rm PKGBUILD
$ wget <https://bpaste.net/raw/707ab54c5d47> -O PKGBUILD
$ makepkg -si

Reference: https://git.parabola.nu/abslibre.git/tree/cross/cross-gcc/PKGBUILD

The PKGBUILDs at https://git.parabola.nu/abslibre.git/tree/cross/ are for building cross-compilers, in the comments there's useful documentation, specially in the "Tips for build()" part for building gcc with or without needing libc. Beware of the comments in package() too. make all-gcc can do magic if you want to save time when it comes to build a step-1 compiler.

Prefer using https://git.parabola.nu/abslibre.git/tree/cross/cross-gcc/PKGBUILD as it is up-to-date (not like the demo one from bpaste.net)

rattboi commented on 2018-07-27 04:21

I'd like to install this, but I'm having a problem because it seems like it has a cyclic dependency with sh-elf-newlib. If this isn't the case and it is installable, I would love a simple step-by-step.

Thanks