| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
toolchain.eclass constructs correct GCC_PATH since 2007:
commit 7d9f89700a2ee50674c0d871ec6d21b468ac6206
("start moving to GCC_PATH for env.d #174422 and cleanup "
"gcc-config logic so that it doesnt matter what the ROOT value is")
gcc-config moved over as well. Let's leave GCC_PATH as
the only available variable to locate gcc's whereabouts.
Bug: https://bugs.gentoo.org/174422
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
From #gentoo-toolchain:
"""
<+[Arfrever]> It will cause that empty /etc/revdep-rebuild directory
will be installed by gcc. Please move dodir to after
'is_crosscompile || return 0'.
<+[Arfrever]> ${revdep_rebuild_file} should be quoted.
"""
Reported-by: Arfrever Frehtes Taifersar Arahesis
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
/usr/lib/gcc/${CTARGET}/${GCC_CONFIG_VER} contains libraries
destined to be used by ${CTARGET}. revdep-rebuild complains
about missing dependencies against them as we don't populate
LDPATH (or anything else) for them.
The change populates /etc/revdep-rebuild/05cross-${CTARGET}-${GCC_CONFIG_VER}
with a single entry:
SEARCH_DIRS_MASK="/usr/lib/gcc/${CTARGET}/${GCC_CONFIG_VER}"
crossdev will still own root's SEARCH_DIRS_MASK="/usr/${CTARGET}".
Reported-by: crocket
Closes: https://bugs.gentoo.org/692844
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
USE=nptl is neededonly for compilers that target userspace.
kgcc64 is for building kernels only.
Reported-by: Rolf Eike Beer
Closes: https://bugs.gentoo.org/642932
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
| |
Closes: https://bugs.gentoo.org/552882
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
|
|
|
|
|
|
| |
Reported-and-fixed-by: Hristo Venev
Bug: https://bugs.gentoo.org/572480
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
USE=cxx presence on typical systems is maintained by
profiles/base/package.use.force entry. Let's drop
silent override from the eclass.
Reported-by: Agostino Sarubbo
Bug: https://bugs.gentoo.org/692126
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
| |
Closes: https://bugs.gentoo.org/690686
Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
gcc-config-2 changed /usr/bin/gcc from a binary to symlink
in commit b907ef80bc421df23515afc4c306e4d96c67649
("Convert binary wrapper to a symlink wrapper.")
Before the above change /usr/bin/gcc worked in both cases
when active cross-gcc is being uninstalled. After the above
change symlink becomes dangling.
The change runs `gcc-config` more aggressively.
Reported-by: Pietro
Closes: https://bugs.gentoo.org/680360
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
| |
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
| |
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
|
|
|
|
| |
Signed-off-by: Jory Pratt <anarchy@gentoo.org>
|
|
|
|
|
|
|
| |
Bug: https://bugs.gentoo.org/685634
Signed-off-by: Shane Peelar <lookatyouhacker@gmail.com>
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
| |
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
| |
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
USE=jit is not very useful for a cross-compiler as it assumes
running generated code on the host. At least avr-* targets
can't build libgccjit.so.
The change disables IUSE=jit for cross-compilers only.
Cross-built compilers could still get libgccjit.so built for a
target.
Reported-by: Maciej Piechotka
Reported-by: Marco Sirabella
Closes: https://bugs.gentoo.org/594572
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
| |
This is s small incremental change over EAPI=5.
For example epatch() is still heavily used, we'll sort
it out for EAPI=7.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Another tiny step towards EAPI=6+ support.
'in_iuse' helper is not allowed to query IUSE (even though we set
all values locally in the eclass).
Use 'TC_FEATURES' array and 'tc_has_feature' helper for equivalent
purpose.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
| |
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
| |
gcc treats --enable-libvtv as an override on top of
autodetection. It it never what we want. Happens to break
at least powerpc64 cross-compilers:
https://bugs.gentoo.org/661252
Reported-by: Ilia Mirkin
Closes: https://bugs.gentoo.org/661252
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
| |
Starting from gcc-8.3.0 FEATURES=test USE=test will be enough
to run gcc's testsuite.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
| |
Reported-by: Arfrever Frehtes Taifersar Arahesis
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
gcc treats --enable-libsanitizer as an override on top of
autodetection. It it never what we want. Happens to break
at least mips cross-compilers and likely many more minor
targets.
Bug: https://gcc.gnu.org/PR85663
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
IUSE_DEF is just an IUSE with '+' prepended.
IUSE_DEF was not used consistently.
Use '+' form consistently.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
| |
Preparation to EAPI=6+ support in gcc ebuilds.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As explained by Zac in #672408 prepinfo() was used to drop 'info/dir'
index to allow portage regenerate it.
gcc package does not always install 'info/dir' files (USE-dependent).
This causes nondeterminism for 'info/dir' to be owned or be an orphan
file.
This change drops 'info/dir' unconditionally to avoid owned/orphan
collisions and always make it an orphan file.
Reported-by: Michal Jakubowski
Bug: https://bugs.gentoo.org/672408
Bug: https://bugs.gentoo.org/587316
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
| |
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
| |
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
This disables all stripping in gcc. As PMS does
not provide an alternative just drop stripping
for now.
Reported-by: Michał Górny
Closes: https://bugs.gentoo.org/587316
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
| |
These functions are no-op in portage-2.3.50+.
Bug: https://bugs.gentoo.org/587316
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
gcc does not build final 'go' and 'gofmt' tools when cross-compiler
is built (CHOST != CTARGET).
This change fixes gcc-stage2 building for USE=go case.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
| |
On gcc-3.x -Wextra -Wstack-protector were not yet present.
These options are seen occasionally in users' CFLAGS.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Christian reports 'make install' failure caused by limitation
of ancient autotools in detecting CONFIG_SHELL:
```
/bin/bash .../gcc-3.3.6/libstdc++-v3/../mkinstalldirs \
.../gcc-3.3.6-r2/image//usr/lib/../lib32
/bin/bash ../libtool --mode=install /bin/bash .../gcc-3.3.6/install-sh \
-c libsupc++.la .../gcc-3.3.6-r2/image//usr/lib/../lib32/libsupc++.la
libtool: install: `.../gcc-3.3.6-r2/image//usr/lib/../lib32/libsupc++.la' \
is not a directory
```
We already pass CONFIG_SHELL to top-level ./configure.
The workaround is to pass CONFIG_SHELL variable to 'make' as well.
Reported-by: Christian Schmidt
Fixed-by: Christian Schmidt
Bug: https://bugs.gentoo.org/664486
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
| |
-fdiagnostics-show-option was added in gcc-4.1.0.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
| |
|
|
|
|
|
|
| |
Download and apply patches found in Cygwin's gcc.cygport, maintained at
github/cygwinports/gcc, for a compiler running on cygwin. The ebuild
can define the cygwinports' git commit id as CYGWINPORTS_GITREV.
|
|
|
|
|
| |
Upstream Cygwin does build their gcc with posix threads for ages,
at least since gcc4-4.5.1-1.cygport (committed on Oct 3, 2010).
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
These variables may or may not have the trailing slash. Additionally,
avoid leading double slash (a network location for Cygwin) with ROOT and
EROOT because they may be empty, while D and ED never should be empty
and there is no reason so far to avoid double slashes in between.
On the other hand, eclass variables like DATAPATH and LIBPATH do contain
the leading slash, so an extra slash reduces readability for no reason.
|
|
|
|
|
| |
Closes: https://bugs.gentoo.org/659798
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
| |
Avoid automagic dependency on systemtap installed.
Reported-by: lekto@o2.pl
Bug: https://bugs.gentoo.org/654748
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
gcc-8 added --disable-libssp flag. It used to be gentoo-specific
flag up to gcc-5.4.0 and gentoo was passing --disable-libssp on
all targets except solaris.
On gcc-6 gentoo stopped providing --disable-libssp flag (it became
no-op). USE=ssp became the default with gcc-6.
gcc-8 reintroduced --disable-libssp and that broke mingw. mingw
libc does not provide stack_check_*() functions and USE=ssp forces
compiler to emit those calls.
This change disallows disabling libssp on mingw if USE=ssp is set.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
| |
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
| |
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Historically Gentoo unconditionally sets --enable-libstdcxx-time=yes
to avoid --enable-libstdcxx-time=rt on linux targets, bug #411681
Unfortunately this conflicts with arm-none-eabi and other
bare-metal targets that don't provide enough plumbing
to support for POSIX timers.
This change ogerrides our default to --disable-libstdcxx-time
on *-elf and *-eabi targets.
Tested as:
$ crossdev --stage4 arm-none-eabi
Reported-by: scheer@wsoptics.de
Reported-by: Thomas Schneider
Bug: https://bugs.gentoo.org/411681
Bug: https://bugs.gentoo.org/589672
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Don't install plugin's .la file. Plugins are meant
to be loaded at runtime (they all export the same sympols, etc.).
Plugins don't have static library equivalent.
Drop 'libcp1plugin.la'.
Reported-by: Paolo Pedroni
Closes: https://bugs.gentoo.org/638216
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
| |
Closes: https://bugs.gentoo.org/650170
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
|
|
|
|
|
|
| |
With the latest changes (slot operators) we need at least EAPI 5 when
inheriting toolchain.eclass. Thus, in case of EAPI=4, die early with a
more descriptive error message.
|