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.000000
First Submitted: 2018-05-05 22:56 (UTC)
Last Updated: 2021-03-13 23:57 (UTC)

Pinned Comments

Megver83 commented on 2019-06-14 20:02 (UTC) (edited on 2019-06-14 20:03 (UTC) by Megver83)

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

kallisti5 commented on 2021-10-19 14:15 (UTC) (edited on 2021-10-19 14:15 (UTC) by kallisti5)

ISL download link is broken. Here's a fix:

diff --git a/PKGBUILD b/PKGBUILD
index 7ef0bcb..109f786 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,7 +15,7 @@ makedepends=(gmp mpfr $_target-newlib)
 optdepends=("$_target-newlib: Standard C library ($_target target)")
 options=(!emptydirs !strip)
 source=(https://gcc.gnu.org/pub/gcc/releases/gcc-$_pkgver/gcc-$_pkgver.tar.xz{,.sig}
-        http://isl.gforge.inria.fr/isl-$_islver.tar.bz2)
+       https://libisl.sourceforge.io/isl-$_islver.tar.bz2)
 sha512sums=('42ae38928bd2e8183af445da34220964eb690b675b1892bbeb7cd5bb62be499011ec9a93397dba5e2fb681afadfc6f2767d03b9035b44ba9be807187ae6dc65e'
             'SKIP'
             'fc2c9796979610dd51143dcefe4f5c989c4354571cc5a1fcc6b932fd41f42a54f6b43adfd289af61be7bd06f3a523fa6a7d7ee56680e32d8036beb4c188fa668')

Megver83 commented on 2019-06-14 20:02 (UTC) (edited on 2019-06-14 20:03 (UTC) by Megver83)

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 (UTC) (edited on 2018-09-16 16:13 (UTC) by Megver83)

@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 (UTC)

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