Search Criteria
Package Details: m68k-elf-gcc 14.1.0-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/m68k-elf-gcc.git (read-only, click to copy) |
---|---|
Package Base: | m68k-elf-gcc |
Description: | The GNU Compiler Collection (m68k-elf) |
Upstream URL: | http://gcc.gnu.org |
Licenses: | GPL, custom, LGPL, FDL |
Conflicts: | m68k-elf-gcc-bootstrap |
Replaces: | m68k-elf-gcc-bootstrap |
Submitter: | doragasu |
Maintainer: | doragasu |
Last Packager: | doragasu |
Votes: | 8 |
Popularity: | 0.065651 |
First Submitted: | 2017-10-27 17:31 (UTC) |
Last Updated: | 2024-07-11 20:44 (UTC) |
Dependencies (4)
- m68k-elf-binutilsAUR
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compat)
- m68k-elf-newlibAUR (make)
- m68k-elf-newlibAUR (optional)
Required by (2)
- m68k-elf-gdb
- pce-git (make)
Sources (8)
- https://ftp.gnu.org/gnu/gcc/gcc-14.1.0/gcc-14.1.0.tar.xz
- https://ftp.gnu.org/gnu/gcc/gcc-14.1.0/gcc-14.1.0.tar.xz.sig
- https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz
- https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz.sig
- https://ftp.gnu.org/gnu/mpc/mpc-1.3.1.tar.gz
- https://ftp.gnu.org/gnu/mpc/mpc-1.3.1.tar.gz.sig
- https://ftp.gnu.org/gnu/mpfr/mpfr-4.2.1.tar.xz
- https://ftp.gnu.org/gnu/mpfr/mpfr-4.2.1.tar.xz.sig
Latest Comments
doragasu commented on 2021-01-09 22:14 (UTC)
@Un1Gfn: Thanks for the feedback. I think I should be able to remove the
m68k-elf-gcc-bootstrap
if I move them68k-elf-gcc-bootstrap
in newlib to the build dependencies. Otherwise, if I do not touch the newlib PKGBUILD but remove the bootstrap provide fromm68k-elf-gcc
, you will be able to build it, but installation will fail (because newlib depends onm68k-elf-gcc-bootstrap
andm68k-elf-gcc
replaces it (and wants to uninstall it).zkm2fw commented on 2021-01-09 02:42 (UTC) (edited on 2021-01-09 02:50 (UTC) by zkm2fw)
@doragasu Oops I didn't know it was for baremetal. I've switched to buildroot(uClibc) now. Thanks.
BTW:
m68k-elf-gcc-bootstrap
providesm68k-elf-gcc
. But maybem68k-elf-gcc
should not providem68k-elf-gcc-bootstrap
the other way around.doragasu commented on 2021-01-08 16:20 (UTC) (edited on 2021-01-08 16:23 (UTC) by doragasu)
@Un1Gfn: This compiler is for bare metal targets, and it uses newlib instead of glibc. Most of the C standard library functions are usable without any additional requirements. But some of them like e.g. malloc() or printf() require you to implement some syscalls like the ones you are seeing in your error tailored for your specific target. For example where do you intend printf() to output the characters? On a bare metal target it could be an UART, an embedded screen with a framebuffer device, a memory region...
For more information read newlib documentation, specifically syscalls are documented here: https://sourceware.org/newlib/libc.html#Stubs
zkm2fw commented on 2021-01-08 09:19 (UTC)
test.c
build w/
m68k-elf-gcc -std=c99 -o test.out test.c
fail
doragasu commented on 2020-05-24 18:57 (UTC)
Makes sense, added to both makedepends and optdepends. Thanks for the suggestion!
BTW I have never user freestanding mode. I have built things without using standard libraries, linking with -nostdlib. But never used -ffreestanding before.
rouhannb commented on 2020-05-24 15:41 (UTC)
Then perhaps you should add newlib as both a makedepend and an optdepend?
(Also, I’m not sure if you know this or not, but you can build executables without a library by using freestanding mode.)
doragasu commented on 2020-05-23 19:13 (UTC)
I'm sure the puzzle I am doing with the bootstrap package can be improved. But I don't think putting newlib in the makedepends is a good idea, since if you remove the library after building the compiler, resulting compiler will fail to build executables.
rouhannb commented on 2020-05-18 17:23 (UTC)
Should m68k-elf-newlib be added as a makedepend?