Commit Graph

5418 Commits

Author SHA1 Message Date
messense
1da73325db Add glibc 2.24 fix cmpli usage in power6 memset patch
Signed-off-by: messense <messense@icloud.com>
2021-05-23 19:57:31 +08:00
Chris Packham
511442be60
Merge pull request #1512 from Bensuperpc/update_linux_package
Update linux package and add new version
2021-05-22 19:54:53 +12:00
Bensuperpc
afdab6f2ff Add config sample of Raspberry Pi 4
Add config sample of Raspberry Pi 4:
Add armv8-rpi4-linux-gnueabihf
Add aarch64-rpi4-linux-gnu

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
2021-05-19 15:18:38 +02:00
Bensuperpc
62c89c9ba0 Update linux package and add new version
Update linux package and add new version:
Add 5.12.4
From 5.11.6 to 5.11.21
From 5.4.105 to 5.4.119
From 4.20.9 to 4.20.17
From 4.19.180 to 4.19.190
From 4.9.261 to 4.9.268
From 4.4.261 to 4.4.268
From 3.18.134 to 3.18.139
From 3.16.82 to 3.16.85

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
2021-05-19 10:02:53 +02:00
Chris Packham
6d008334bc
Merge pull request #1510 from messense/glibc-ppc64le-patches
Add GLIBC 2.17 support to powerpc64le-unknown-linux-gnu
2021-05-18 20:46:49 +12:00
Chris Packham
f284f41495
Merge pull request #1508 from lancethepants/master
Update MinGW to version 8.0.2.
2021-05-14 20:06:07 +12:00
messense
0088351811 fix BZ 18116 - build failure on ppc64le: setcontext.S uses power6 mtfsf
when not supported
2021-05-13 19:09:40 +08:00
messense
798904409c Add ppc64le patches for glibc 2.17 from CentOS git 2021-05-13 15:12:54 +08:00
lancethepants
8a96209b69 Update MinGW to version 8.0.2.
Adds support for gcc11.

Signed-off-by: Lance Fredrickson <lancethepants@gmail.com>
2021-05-12 10:39:11 -06:00
Chris Packham
f9716e8b90
Merge pull request #1504 from cmuellner/git-annotated-tags
scripts/functions: Add better support for annotanted git tags
2021-05-12 19:05:16 +12:00
Chris Packham
fbccd749ec
Merge pull request #1507 from cpackham/misc-fixes
Misc fixes
2021-05-12 19:01:44 +12:00
Chris Packham
813b6877e6 strace: Add github mirror
strace.io currently has an expired certificate. The same files are
available via github so add that as a mirror.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-05-11 21:53:46 +12:00
Chris Packham
cc8c64a8dc glibc: --enable-obsolete-rpc has been removed as of 2.32
Make --enable-obsolete-rpc conditional on !GLIBC_2_32_or_later as
it's been removed from that version on.

Fixes: #1505
Fixes: commit 1ee44ab5 ("glibc: --enable-obsolete-rpc has been removed as of 2.32")
Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-05-11 21:02:29 +12:00
Chris Packham
10c21dfc17 alpha: Support 64-bit only
Alpha is a 64-bit only arch. The menu options only allowed 32 bitness to
be selected. This was harmless but confusing, update the config to
specify 64-bit only.

Fixes: #1506

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-05-11 21:02:22 +12:00
Chris Packham
bbb0db2880
Merge pull request #1501 from nikkon-dev/nikkon-dev/gcc11
Initial commit for gcc11
2021-05-11 19:45:52 +12:00
Christoph Muellner
1dc25bf611 scripts/functions: Add better support for annotanted git tags
Annotated git tags are git objects with their own ID.
They contain the commit ID where they point to.

When downloading from annotated tags, we currently get the following warning:
  "Revision being fetched changed to ${new_unique_id};"
The old unique_id is the ID of the annotated tag and the new unique_id
is the commit it points to.

Let's resolve this by first assuming to have an annotated tag and let
git ls-remote dereference it. If that fails (e.g. if it can't be
dereferenced because it is not an annotated tag), then let's proceed as
before and don't do any dereferencing.

Signed-off-by: Christoph Muellner <cmuellner@linux.com>
2021-05-06 02:21:33 +02:00
spaun2002
0cf01b55a6 Fix dynamic exception specifications in DUMA tests.
GCC11 now have -std=c++17 by default and c++17 does not allow dynamic
exception specifications.

Signed-off-by: Nik Konyuchenko <spaun2002mobile@gmail.com>
2021-05-05 01:27:57 -07:00
spaun2002
6b465e150d Remove m1 from multilibs for GCC11 on SH arch.
GCC11 somehow has different set of multilibs on SH arch than what GCC10 had.
In particular:

$ gcc10 -print-multi-lib | sed -r -e 's/@/ -/g;'
.;
mb; -mb
m2; -m2
m2e; -m2e
m4; -m4
m4-single; -m4-single
m4-single-only; -m4-single-only
mb/m2; -mb -m2
mb/m2e; -mb -m2e
mb/m4; -mb -m4
mb/m4-single; -mb -m4-single
mb/m4-single-only; -mb -m4-single-only
mb/m2a; -mb -m2a
mb/m2a-single; -mb -m2a-single

$ gcc11 -print-multi-lib | sed -r -e 's/@/ -/g;'
.;
mb; -mb
m2; -m2
m2e; -m2e
m4; -m4
m4-single; -m4-single
m4-single-only; -m4-single-only
mb/m1; -mb -m1
mb/m2; -mb -m2
mb/m2e; -mb -m2e
mb/m4; -mb -m4
mb/m4-single; -mb -m4-single
mb/m4-single-only; -mb -m4-single-only
mb/m2a; -mb -m2a
mb/m2a-single; -mb -m2a-single

mb/m1 fails to build libgcc as libgcc uses opcodes that were not
available in SH-1: libgcc/config/sh/lib1funcs.S uses 'bt/s' and 'dt'
instructions that, according to https://antime.kapsi.fi/sega/files/h12p0.pdf become available in the SH-2 only.

So I removed mb/m1 from the multilibs fog GCC11 and SH arch.
Another option would be to try not to build libgcc for this combination
of the gcc version and archichecture, but I thought this fix would be
more robust.

Signed-off-by: Nik Konyuchenko <spaun2002mobile@gmail.com>
2021-05-05 01:27:57 -07:00
spaun2002
6ca5f91fb5 Disable -Werror for GLIBC for all ARCH for GCC11.
This change replicates what GLIBC 2.23 has in the string/rawmemchr.c:

// #if __GNUC_PREREQ (11, 0)
//  /* Likewise GCC 11, with a different warning option.  */
//  DIAG_IGNORE_NEEDS_COMMENT (11, "-Wstringop-overread");
// #endif

With -Werror multiple platforms failing on the string/rawmemchr.c:40 line.

Signed-off-by: Nik Konyuchenko <spaun2002mobile@gmail.com>
2021-05-05 01:26:34 -07:00
spaun2002
37c61914ce Pull patch for macOS from GCC 10.3.0 package.
This should fix linkage error on MacOS.

Signed-off-by: Nik Konyuchenko <spaun2002mobile@gmail.com>
2021-05-05 01:15:07 -07:00
spaun2002
c4efcd7eaa Initial commit for gcc11
Signed-off-by: Nik Konyuchenko <spaun2002mobile@gmail.com>
2021-04-28 14:50:18 -07:00
Chris Packham
0528a9d744 Merge branch 'abrodkin-newlib-nano-relocatable' of git://github.com/foss-for-synopsys-dwc-arc-processors/crosstool-ng 2021-04-19 20:29:26 +12:00
Chris Packham
e27def9d3b Merge branch 'newlib-nano-target' of git://github.com/galak/crosstool-ng 2021-04-19 20:25:49 +12:00
Chris Packham
d01672ee0e Merge branch 'newlib-nano-4.1.0' of git://github.com/galak/crosstool-ng 2021-04-19 20:24:18 +12:00
Chris Packham
fe148013f0 Merge branch 'ltrace-fix' of https://github.com/cpackham/crosstool-ng 2021-04-19 20:23:17 +12:00
Chris Packham
a87b62ee11 Merge branch 'abrodkin-gdb-10-fix' of git://github.com/foss-for-synopsys-dwc-arc-processors/crosstool-ng 2021-04-19 20:22:39 +12:00
Alexey Brodkin
89273b59af newlib-nano: Use run-time calculated paths in top-level nano.specs
In currently generated top-level "nano.specs" we resolve
paths during toolchain building and then use those pre-defined
full paths once the toolchain got built.

That's OK until the toolchain is used right were it was built,
otherwise paths used in the top-level "nano.specs" become
irrelevant and linker fails to find "nano" libs reverting to
non-"nano" libs in the default location.

See https://github.com/crosstool-ng/crosstool-ng/issues/1491.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2021-04-16 17:11:01 +03:00
Kumar Gala
8e99639419 newlib-nano: Add option to copy libs into target
Add an option that will install a copy of newlib-nano lib*.a file in
the target dir but renamed with a nano.a suffix (eg: libc_nano.a) as
some default nano.spec files from newlib expect this setup.

Additionally the newlib-nano version of newlib.h will get copied to
include/newlib-nano/newlib.h.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-04-15 14:29:04 -05:00
Kumar Gala
2816a97a25 newlib-nano: remove whitespace from nano.spec file
Remove trailing whitespace from generated nano.spec file.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-04-15 14:29:04 -05:00
Alexey Brodkin
2baacbfe36 gdb: Don't mess with gdbserver config permissions
Some really old GDB releases did have gdbserver's configure
script w/o execution permissions, so there was a need in the fix.

As per Yann most likely it could have been true for GDB versions in
between v5.3 & 6.6. Moreover it could have been fixed on re-release
of GDB tarballs done in 2011, see [1].

And given we no longer support such old GDB versions in CT-NG
(as of today we have 6.8 - 9.2, moreover it's not clear which of
6.8-7.x versions are still being actively used) we'll revert that old hack
for now in a hope that it won't hurt anybody.

Though if somebody sees that problem again
we'll be able to revert this again ;)

[1] https://sourceware.org/legacy-ml/gdb/2011-09/msg00002.html

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2021-04-15 16:26:05 +03:00
Kumar Gala
934c971a2a newlib-nano: Add newlib 4.1.0 support
Add symlink to newlib-4.1.0 package details for newlib-nano/4.1.0

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-04-15 01:06:53 -05:00
Chris Packham
d95d0497db ltrace: Add patch to fix compile error for mips
Newer versions of GCC complain:

  plt.c: In function 'arch_elf_add_plt_entry':
  plt.c:359:3: error: '%s' directive argument is null [-Werror=format-overflow=]
    359 |   fprintf(stderr, "%s: failed %s(%#llx): %sn", __func__,
        | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    360 |    name, addr, strerror(errno));
        |    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cc1: all warnings being treated as errors

add a patch to avoid this error.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-04-14 22:11:35 +12:00
Chris Packham
f582f1c22d Merge pull request #1485 from galak/newlib-4.1.0
Update to newlib release 4.1.0
2021-04-14 20:17:11 +12:00
Kumar Gala
e7a59c419d Update to newlib release 4.1.0
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-04-14 20:15:58 +12:00
Chris Packham
854bb12d58
Merge pull request #1486 from galak/libelf-mirror
libelf: add some mirrors
2021-04-14 20:10:34 +12:00
Kumar Gala
6a899c6739 libelf: add some mirrors
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-04-13 10:54:03 -05:00
Chris Packham
77d75eb2ad
Merge pull request #1465 from dimkr/musl-1.2.2
Add musl 1.2.2
2021-04-12 20:04:39 +12:00
Dima Krasner
65fabf8eda Add musl 1.2.2
Signed-off-by: Dima Krasner <dima@dimakrasner.com>
2021-04-10 09:17:09 +03:00
Chris Packham
d6f7b8e43a
Merge pull request #1481 from galak/gcc-10-3
Update to gcc release 10.3.0
2021-04-10 11:43:12 +12:00
Chris Packham
2a4db99424
Merge pull request #1480 from cpackham/expat
packages/expat: Bump version to 2.3.0
2021-04-10 11:42:57 +12:00
Kumar Gala
cf0776ed04 Update to gcc release 10.3.0
Drop patches already in 10.3.0 that had been backported

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-04-08 12:52:38 -05:00
Chris Packham
b25b3d45ce packages/expat: Bump version to 2.3.0
Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-04-08 20:19:57 +12:00
Chris Packham
7915dd4fff
Merge pull request #1478 from IKukhta/fix_mingw
Fix depends generation with absolute paths
2021-04-08 19:37:34 +12:00
Ivan Kukhta
f347fef748 Fix depends generation under windows
Signed-off-by: Ivan Kukhta <Ivan.Kukhta@acronis.com>
2021-04-06 19:53:55 +03:00
Chris Packham
367fb985bd
Merge pull request #1468 from cpackham/strace-bump
Add strace 5.9, 5.10 and 5.11
2021-03-31 20:26:54 +13:00
Chris Packham
1627971209 Add strace 5.9, 5.10 and 5.11
Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-03-30 12:58:47 +13:00
Chris Packham
3fa241a4e1 build: debug: strace: Add -D__USE_MISC to target CFLAGS
Similar to commit ca45a8f9 ("Add -D__GLIBC__ to target CFLAGS") newer
versions of strace bundle the kernel headers which cause build errors
such as:

[ALL  ]    In file included from /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/bundled/linux/include/uapi/linux/in6.h:26,
[ALL  ]                     from /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/bundled/linux/include/uapi/linux/if_bridge.h:19,
[ALL  ]                     from /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/src/rtnl_mdb.c:16:
[ERROR] /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/bundled/linux/include/uapi/linux/libc-compat.h:109: error: "__UAPI_DEF_IN6_ADDR_ALT" redefined [-Werror]
[ALL  ]      109 | #define __UAPI_DEF_IN6_ADDR_ALT  1
[ALL  ]          |
[ALL  ]    In file included from /home/x-tool/.build/arm-unknown-linux-musleabi/src/strace/src/rtnl_mdb.c:15:
[ALL  ] /home/x-tool/x-tools/arm-unknown-linux-musleabi/arm-unknown-linux-musleabi/sysroot/usr/include/netinet/in.h:401: note: this is the location of the previous definition
[ALL  ]      401 | #define __UAPI_DEF_IN6_ADDR_ALT 0
[ALL  ]          |
[ALL  ]    cc1: all warnings being treated as errors

By defining __USE_MISC we get __UAPI_DEF_IN6_ADDR_ALT defined in a
compatible manner.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-03-30 12:58:47 +13:00
Chris Packham
52eeb3b433
Merge pull request #1469 from cpackham/linux-version-bump
linux: Add new version and bump LTS
2021-03-29 20:09:49 +13:00
Chris Packham
a92b22e4c7 linux: Add new version and bump LTS
Add 5.11.6
Bump 4.4.251 -> 4.4.261
Bump 4.9.251 -> 4.9.261
Bump 4.14.215 -> 4.14.225
Bump 4.19.167 -> 4.19.180
Bump 5.4.89 -> 5.4.105
Bump 5.10.7 -> 5.10.23

Signed-off-by: Chris Packham <judge.packham@gmail.com>
2021-03-26 09:46:36 +13:00
Chris Packham
cae0e72815
Merge pull request #1475 from cpackham/ci-sh-unknown-elf
CI: build sh-unknown-elf instead of sh-multilib-linux-gnu
2021-03-26 09:45:52 +13:00