Commit Graph

225 Commits

Author SHA1 Message Date
Rich Felker 0ce03e0f46 bump default gcc version to 9.4.0 2021-06-23 21:53:57 -04:00
rofl0r aec25e57eb add GCC 9.4.0
0017-pr93402.diff was dropped, as it was merged upstream.
2021-06-23 21:53:57 -04:00
rofl0r c4c5b49efa update GCC 8.3.0 to 8.5.0
0017-pr93402.diff was removed, as it was merged upstream.
2021-06-23 21:53:57 -04:00
IceCodeNew 52858e01e5 Use GNU Mirror 2021-06-23 21:53:48 -04:00
IceCodeNew ad8387d91f Update `MUSL_SITE` 2021-06-23 20:25:16 -04:00
rofl0r f442c9178b replace GCC 7.3.0 with 7.5.0 2021-06-23 20:19:07 -04:00
Rich Felker 7d4c0c0dd0 update default musl version to 1.2.2 2021-06-23 16:27:00 -04:00
Rich Felker f04af98d77 add hash for musl 1.2.2 2021-06-23 16:26:33 -04:00
Rich Felker b12ded5078 add linux-5.8.5 headers support 2020-10-01 15:15:30 -04:00
Rich Felker b29ed1829e update gcc futex time64 patch for compat with riscv32
riscv32 will define both syscalls but with equal value, and long will
not be the right timespec member type.
2020-09-23 17:56:47 -04:00
Rich Felker 87157fa4b4 add pattern for linux 5.x sources to makefile 2020-08-28 18:56:20 -04:00
Rich Felker 5171ee8724 update default musl version to 1.2.1 2020-08-04 12:05:32 -04:00
Rich Felker af5993a561 add hash for musl 1.2.1 2020-08-04 12:05:04 -04:00
Rich Felker 531af98526 improve m68k sqrt patch not to suppress insn on archs where it works
the 60840 fpu and later, and coldfire fpus, have precision-specific
sqrt instructions that get used and do the right thing. only when
targeting baseline (or near-baseline) ISA does the ld80-only
instruction get used, and that's all that needs to be suppressed.
2020-07-02 12:22:13 -04:00
Rich Felker d04fb4943f add patch fixing broken m68k sqrt
gcc pr 95921. the m68k sqrt rtl handles excess precision wrong. I
couldn't figure out how to make gcc generate the insn only for long
double, but since long double usage is rare anyway, just remove it.
this can be replaced with a proper fix later if there's ever one
upstream.
2020-06-30 16:35:55 -04:00
Rich Felker b0820cc501 don't replace config.sub in gmp
gmp has its own wrapper version of this file and calls the real one
configfsf.sub. within the gcc build, replacing the wrong one is
harmless, but it breaks independent use of the patched gmp tree and
it's logically wrong.

patch by Laurent Bercot.
2020-06-27 01:35:13 -04:00
Rich Felker d6ded50dd7 add patch to disable arm vdso in musl 1.2.0
reportedly the vdso version of clock_gettime64 produces erratic
results on arm with linux 5.6, and earlier versions did not have the
vdso function at all. it's not clear what the eventual upstream
solution will be, but something needs to be done so as not to be
producing binaries that seem to work now but will break fantastically
when moving to newer kernels.
2020-04-26 14:05:29 -04:00
Peter Jin 5086175f29 allow sha1 hash checking command to be configured 2020-03-07 20:55:08 -05:00
Filippo Valsorda a54eb56f33 Use CURDIR instead of PWD
PWD is set by the shell, not make, and might not match.

For example, this broke the build through Homebrew, because
PWD stays at the directory where brew is ran.
2020-03-07 20:53:13 -05:00
Rich Felker aacd84ed2c update cowpatch from upstream to fix regression on bash
upstream commit 1db812b0ca94d07ede9891883484f2a76dae8e23
2020-02-24 21:57:15 -05:00
Rich Felker 75e6c618ad add musl 1.2.0 and make it default 2020-02-21 23:52:34 -05:00
Rich Felker a69bac0464 use new cowpatch -I command rather than open-coding same thing in Makefile 2020-02-17 15:10:44 -05:00
Rich Felker 6b7083fa6a update cowpatch.sh from upstream
upstream commit b3a885f71ce31dff0c60dab6f5b6cb5ded4c9fb4
2020-02-17 15:08:10 -05:00
Rich Felker b49456e19a fix gcc 8+ static pie patches to make -static-pie pass -static to ld
previously this was missed because there's target-specific spec magic
for a few targets to do it, but many including arm don't have it.
without this, use of -static-pie produces broken binaries which lack
an interpreter but link to shared libraries on the targets affected.

use of -static -pie (preferred form) is not affected. gcc versions
prior to 8.x did not have -static-pie (because there was no upstream
static pie support) so this patch is only needed for 8+, and only to
prevent breakage if someone uses the -static-pie option instead of
-static with -pie.
2020-02-10 12:18:24 -05:00
Rich Felker d7f31bde7e pass --disable-assembly to gcc configure, for gmp
gmp does not build correctly with compilers that default to emitting
PIE/PIC, due to custom-preprocessed asm source files which have wrong
logic for determining if PIC-compatibility is needed. ideally this
would be patched in gmp, but I don't know how to do that, so for the
time being, just disable the asm.
2020-02-03 14:27:19 -05:00
Rich Felker 97b7d13f65 force cross compiler/cross compiling
now that config.guess knows how to detect musl, it's possible when
building on a musl-based system that $build will spuriously match
$target, preventing the desired behavior of building as a cross
compiler or as a cross-compiled native compiler.

run config.guess and config.sub from the litecross makefile to check
if $build is going to match $target, and if so, append junk to the
libc/abi part of the $build tuple so that it no longer matches.
2020-02-03 01:09:08 -05:00
Rich Felker 463cd3e669 pass --disable-bootstrap to gcc
this should be a nop since we're either building a cross compiler or
cross compiling, but due to recent gcc's config.guess detecting musl,
it's possible to spuriously get $build=$host=$target, and then the
dreaded bootstrap procedure runs and breaks the output.
2020-02-03 01:07:22 -05:00
Rich Felker 03b296f811 fix missing exec permissions on replaced config.sub 2020-02-02 23:35:52 -05:00
Rich Felker b3970874c3 add some more things you can turn off to config.mak.dist examples 2020-02-02 21:24:08 -05:00
Rich Felker a00f88f20e clarify that --enable-languages=c,c++ is default in config.mak.dist 2020-02-02 21:21:18 -05:00
Rich Felker 2954bf4b6d remove --disable-multilib from config.mak.dist example
this is now mandatory and always passed to configure
2020-02-02 21:19:25 -05:00
Rich Felker 59d9dff00c improve patch dependency rules
approach in commit 8a92c5230c only
worked for the "current version" of the packages configured with
GCC_VER, etc. now, all versions have proper dependencies so that it's
possible to test applicability of new patches just by running make
with the directory name.
2020-01-31 16:53:24 -05:00
Rich Felker 9515af5143 add binutils patches for pr22269
needed to fix static pie linking bugs on arm.
2020-01-31 16:33:42 -05:00
Rich Felker 3cfbdabfd6 add asound uapi patches for linux 4.19.90, headers-4.19.88
these are needed for time64 compatibility, and are backported from the
y2038-endgame kernel branch and squashed with non-uapi changes
removed.

with just these patches applied the kernel will not build since
changes at the source level are also needed. but it is not practical
to backport source changes to an old kernel, and even if it were, it
would not make sense to include irrelevant changes that need rebasing
in a patchset intended only for the purpose of uapi header
installation.
2020-01-30 22:11:51 -05:00
Rich Felker 6a73704be3 re-add archscripts removal patch for linux 4.19.90
forward-ported from the now-removed 4.4.10 patch, needed to fix #8,
spurious dependency on host elf.h header. I checked x86 and mips which
seem to be the only archs with archscripts rules, and these rules have
nothing to do with building headers, so omitting them should still be
safe.
2020-01-30 22:09:15 -05:00
Rich Felker 1645ae3476 remove support for old linux headers
these can no longer be supported since they are incompatible with
time64.
2020-01-30 22:08:34 -05:00
Rich Felker 19568178bd fix wrong ac_cv_prog_lex_root value
the value should only be the root, not including the .c suffix. as
noted in commit 2d0015f547 which added
this, the result is not actually used, so it doesn't matter that it's
wrong, but the wrong value produces spurious error output in configure
logs.
2020-01-29 23:06:02 -05:00
Rich Felker 03d6d755c7 add patch fixing gcc pr93402 (wrong codegen)
affects all gcc versions 6.x and later. same patch works for all.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93402
2020-01-23 19:38:39 -05:00
Rich Felker de5dc219d8 add safety in make rules involving rm -rf
error out if there are any slashes in the name that will later be
passed to rm -rf since these are implicit rules and could
theoretically get instantiated in unintended ways.
2020-01-23 13:22:12 -05:00
Rich Felker eb979cc08b remove old patched source dir before trying to rename new one over it 2020-01-23 13:18:17 -05:00
Rich Felker 1be04b50ec move config.sub dependency to patched source trees instead of orig ones
this was overlooked when cowpatch was introduced.
2020-01-22 17:26:56 -05:00
Rich Felker 8a92c5230c add dependencies on patches for patched/patchable source trees 2020-01-22 17:25:53 -05:00
Travis Cross a226f5f416 Fix initialization of CoW source trees
As part of creating a CoW source tree, we symlink all top-level paths
from the original directory.  In commit ebf93035c, we removed a shell
glob used for this and replaced it with an invocation of `find`.

However, our invocation of `find ... -exec sh -c '... $@ ...' {} \+`
is causing the first path in every directory to be skipped, breaking
the build.  This is because arguments to `sh -c ...` begin with the
zeroth argument, while `$@` only returns the first argument onward.

Let's fix this by providing an explicit zeroth argument to `sh -c`.
2020-01-22 15:49:28 -05:00
Rich Felker 1e4e952ed2 bump default gcc version to 9.2.0 2020-01-22 01:13:14 -05:00
Rich Felker 8adcc4bec7 bump default binutils version to 2.33.1 2020-01-22 00:03:07 -05:00
Rich Felker 3d26f0cf02 add binutils 2.33.1
included are new or1k support patches that are not easily backported
to earlier versions.
2020-01-22 00:02:12 -05:00
Rich Felker ebf93035c6 make initialization of cow source trees robust
shell glob of ../$</* fails to catch filenames beginning with dot, and
the easy mitigations for that all produce bad results on non-match.
use find to do it robustly.
2020-01-21 23:49:56 -05:00
Rich Felker 49f489e5c6 remove support for non-latest versions in gcc 6 and 7 series 2020-01-21 19:39:04 -05:00
Rich Felker c7557051a5 integrate cowpatch for preservation of original source trees
this makes it far easier to iterate testing of patches, and sets the
stage for enforcing re-patching with makefile-level dependencies.

the pristine sources are kept in directories suffixed with ".orig",
and the unsuffixed directory now contains the result of running
cowpatch -- that is, a mix of symlinks to the original files, and
modified copies of the files/directories affected by patches.
2020-01-21 02:49:07 -05:00
Rich Felker 431a47af9e add gcc patch fixing libstdc++ futex use for time64 compatibility
this is not the cleanest fix but should at least make it non-broken.
2020-01-21 00:07:40 -05:00