Commit Graph

31 Commits

Author SHA1 Message Date
Andi McClure
05b9e05023 Recipe fixup: Fix errors in recipe files, add descriptions for all non-WIP 2026-11-03 17:21:41 -03:00
Wildan M
78f1d0351d
prefix: Move clang env to compiler option 2026-09-13 23:53:37 +07:00
Konstantin Shabanov
52871803b2 nix: Fix gcc13-freestanding-install again
It appears, that in a clean state it's still failing:

+ cd ./zlib/contrib/minizip
+ autoreconf2.69 -fvi -I/home/kis/Projects/tryredox/redox/recipes/dev/gcc13/source/config -I/usr/share/aclocal
configure.ac:7: error: required file './compile' not found
configure.ac:7:   'automake --add-missing' can install 'compile'
configure.ac:7: error: required file './config.guess' not found
configure.ac:7:   'automake --add-missing' can install 'config.guess'
configure.ac:7: error: required file './config.sub' not found
configure.ac:7:   'automake --add-missing' can install 'config.sub'
configure.ac:6: error: required file './install-sh' not found
configure.ac:6:   'automake --add-missing' can install 'install-sh'
configure.ac:7: error: required file './ltmain.sh' not found
configure.ac:6: error: required file './missing' not found
configure.ac:6:   'automake --add-missing' can install 'missing'
Makefile.am: error: required file './depcomp' not found
Makefile.am:   'automake --add-missing' can install 'depcomp'
autoreconf: automake failed with exit status: 1
cook host:gcc13 - failed

Fix it by putting copy operations before executing
autotools_recursive_regenerate.
Also, copy all the required files to fix the issue.
2026-08-28 12:35:20 +07:00
Wildan M
4fed741db6
prefix: Allow unprefixed autoreconf with version check 2026-08-26 10:25:53 +07:00
Konstantin Shabanov
a2f375d0ef nix: native: Fix gcc(-freestanding)-install
Provide ACLOCAL_PATH explicitly to avoid the error:

+ autoreconf2.69 -fvi -I/mnt/redox/recipes/dev/gcc13/source/config -I/usr/share/aclocal
+ for f in $(find . -name configure.ac -o -name configure.in -type f | sort)
++ dirname ./zlib/contrib/minizip/configure.ac
+ echo '* autotools regen in '\''./zlib/contrib/minizip'\''...'
* autotools regen in './zlib/contrib/minizip'...
++ dirname ./zlib/contrib/minizip/configure.ac
+ cd ./zlib/contrib/minizip
+ autoreconf2.69 -fvi
-I/mnt/redox/recipes/dev/gcc13/source/config
-I/usr/share/aclocal
Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:1:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:1:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Makefile.am:1:
Makefile.am:1:   If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:1:   its definition is in aclocal's search path.
Makefile.am:1:
Makefile.am:1:   If you install Automake in its own prefix,
Makefile.am:1:   you'll need to arrange for the Libtool m4 files
Makefile.am:1:   to be found by aclocal.  For info on this, see:
Makefile.am:1:     https://gnu.org/s/automake/manual/automake.html#Libtool-library-used-but-LIBTOOL-is-undefined
autoreconf: automake failed with exit status: 1
cook host:gcc13 - failed
Failed to run [cd "recipes/dev/gcc13/source" && "bash" "-ex"]: exited with status exit status: 1
make: *** [mk/prefix.mk:250: prefix/x86_64-unknown-redox/gcc-freestanding-install] Error 1
missing LT_INIT
2026-07-30 22:29:48 +07:00
Wildan M
8d2330dbc9 Revert enable PIE via gcc flags 2026-06-04 09:50:25 +02:00
Wildan M
9dba94a28a
Enable PIE by default in GCC 2026-05-31 03:08:43 +07:00
Wildan M
5887700979
Fix rebuilding gcc13 2026-04-16 05:20:52 +07:00
Wildan M
7d56229f15
Revert removing GCC with-sysroot 2026-04-07 00:34:28 +07:00
Wildan M
eaa211dfbc
Set rpath and add more deps to cookbook 2026-04-02 06:15:48 +07:00
Wildan M
d07cdf6400
Disable frame pointer for i586 2026-02-28 15:55:46 +07:00
Ojus Chugh
e6c5483748 gcc13: add --disable-bootstrap flag to native build configuration 2026-02-09 18:34:36 +05:30
Wildan M
e9d0d843d0
Avoid overriding GCC build sysroot 2026-01-06 09:44:21 +07:00
Wildan M
570f2537fe
Fix libtool init in prefix gcc 2026-01-03 15:42:06 +07:00
Wildan M
5e9f08ac05
Fix prefix build in podman 2026-01-02 18:29:35 +07:00
Wildan M
d034e6a381
Fixes for other arch like RISC-V 2025-12-30 11:03:37 +07:00
Wildan M
2fe4fdc2fb
Further fixes to make gcc13 compile 2025-12-30 11:03:36 +07:00
Wildan M
eb2a7d7413
Bootstrap GCC prefix using cookbook 2025-12-30 11:03:34 +07:00
Wildan M
b5c9bc2e18
Implement optional packages 2025-12-03 15:15:55 +07:00
Wildan Mubarok
97bab15d69 Add gnu-binutils as depedency of gcc13 2025-09-15 18:31:53 +00:00
Wildan Mubarok
bf8d95bef2 Fix install failure due to symlink 2025-09-10 17:36:54 +00:00
Wildan Mubarok
46fa0798f8 Compile gcc libraries in gcc13 2025-07-22 20:15:37 +00:00
Ron Williams
76c77039cc Copy missing .o and .a files from prefix into the gcc package (Janky fix) 2025-07-07 06:37:18 -06:00
Ron Williams
aced42af12 Add POSIX test suite, improve gcc recipe 2025-06-20 19:14:26 -07:00
Ron Williams
39aa043c35 Add cc1 to path 2025-06-12 11:03:55 -06:00
Jeremy Soller
6b617d0ad1
gcc13: remove redundant package depends 2025-04-21 13:16:10 -06:00
Jeremy Soller
289c3e69b8
Drop COOKBOOK_PREFER_STATIC 2025-04-18 10:52:50 -06:00
Anhad Singh
3ee1f4da00 feat(cookbook): add the option to prefer static
By default all libraries and applications that can be dynamically linked
will be dynamically linked. You can override this behaviour by setting
the `COOKBOOK_PREFER_STATIC` environment variable. Note that if you
perviously did not use this flag, it might (most likely will) require a
complete userland sysroot recompilation.

It will look like this:
```bash
$ make clean
$ COOKBOOK_PREFER_STATIC=yes make image
```

For testing, the following will also work:
```bash
$ COOKBOOK_PREFER_STATIC=yes make cr.{PACKAGE_NAME} # obviously replace
                                                    # PACKAGE_NAME with
                                                    # the name of a package :)
```

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-01-20 19:55:37 +11:00
Anhad Singh
61b536c275 feat(gcc13): dynamic
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-01-20 19:01:36 +11:00
Jeremy Soller
97aa876f2a
gcc13: disable LTO 2024-04-01 11:06:17 -06:00
Ribbon
7f926bf64d Add partial ABI separation on recipe dependencies and improve names 2023-12-11 16:10:06 +00:00