Summary: | net-print/cups-1.7.1 with dev-util/ccache-3.1.9-r3 and CC=x86_64-pc-linux-gnu-clang - ccache: FATAL: Could not find compiler "x86_64-pc-linux-gnu-clang" in PATH | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Kai Wüstermann <k.wuestermann> |
Component: | [OLD] Printing | Assignee: | Printing Team <printing> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | bug, junghans |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=524340 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Kai Wüstermann
2014-02-23 05:28:45 UTC
Is net-print/cups the only build that fails with that CC variable/ccache? (In reply to Jeroen Roovers from comment #1) > Is net-print/cups the only build that fails with that CC variable/ccache? Yes it is. I never had any problem with ccache. Is there a x86_64-pc-linux-gnu-clang outside of /usr/lib64/ccache/bin/? And what does "/usr/lib64/ccache/bin/x86_64-pc-linux-gnu-clang --version" show? (In reply to Christoph Junghans from comment #3) > Is there a x86_64-pc-linux-gnu-clang outside of /usr/lib64/ccache/bin/? There is no other x86_64-pc-linux-gnu-clang > And what does "/usr/lib64/ccache/bin/x86_64-pc-linux-gnu-clang --version" > show? /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-clang --version ccache: FATAL: Could not find compiler "x86_64-pc-linux-gnu-clang" in PATH --------------------------------------------------------- ls -l /usr/lib64/ccache/bin insgesamt 0 lrwxrwxrwx 1 root root 15 24. Feb 17:07 c++ -> /usr/bin/ccache lrwxrwxrwx 1 root root 15 24. Feb 17:07 cc -> /usr/bin/ccache lrwxrwxrwx 1 root root 15 24. Feb 17:07 clang -> /usr/bin/ccache lrwxrwxrwx 1 root root 15 24. Feb 17:07 clang++ -> /usr/bin/ccache lrwxrwxrwx 1 root root 15 24. Feb 17:07 g++ -> /usr/bin/ccache lrwxrwxrwx 1 root root 15 24. Feb 17:07 gcc -> /usr/bin/ccache lrwxrwxrwx 1 root root 15 24. Feb 17:07 icc -> /usr/bin/ccache lrwxrwxrwx 1 root root 15 24. Feb 17:07 icpc -> /usr/bin/ccache lrwxrwxrwx 1 root root 15 24. Feb 17:07 x86_64-pc-linux-gnu-c++ -> /usr/bin/ccache lrwxrwxrwx 1 root root 15 24. Feb 17:07 x86_64-pc-linux-gnu-clang -> /usr/bin/ccache lrwxrwxrwx 1 root root 15 24. Feb 17:07 x86_64-pc-linux-gnu-clang++ -> /usr/bin/ccache lrwxrwxrwx 1 root root 15 24. Feb 17:07 x86_64-pc-linux-gnu-g++ -> /usr/bin/ccache lrwxrwxrwx 1 root root 15 24. Feb 17:07 x86_64-pc-linux-gnu-gcc -> /usr/bin/ccache lrwxrwxrwx 1 root root 15 24. Feb 17:07 x86_64-pc-linux-gnu-icc -> /usr/bin/ccache lrwxrwxrwx 1 root root 15 24. Feb 17:07 x86_64-pc-linux-gnu-icpc -> /usr/bin/ccache ------------------------------ /usr/bin/ccache --version ccache version 3.1.9 Copyright (C) 2002-2007 Andrew Tridgell Copyright (C) 2009-2011 Joel Rosdahl This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. for i in /usr/lib64/ccache/bin/*; do echo; echo $i; $i --version; done /usr/lib64/ccache/bin/c++ c++ (Gentoo 4.7.3-r1 p1.4, pie-0.5.5) 4.7.3 Copyright (C) 2012 Free Software Foundation, Inc. Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE. /usr/lib64/ccache/bin/cc gcc (Gentoo 4.7.3-r1 p1.4, pie-0.5.5) 4.7.3 Copyright (C) 2012 Free Software Foundation, Inc. Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE. /usr/lib64/ccache/bin/clang ccache: FATAL: Could not find compiler "clang" in PATH /usr/lib64/ccache/bin/clang++ ccache: FATAL: Could not find compiler "clang++" in PATH /usr/lib64/ccache/bin/g++ g++ (Gentoo 4.7.3-r1 p1.4, pie-0.5.5) 4.7.3 Copyright (C) 2012 Free Software Foundation, Inc. Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE. /usr/lib64/ccache/bin/gcc gcc (Gentoo 4.7.3-r1 p1.4, pie-0.5.5) 4.7.3 Copyright (C) 2012 Free Software Foundation, Inc. Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE. /usr/lib64/ccache/bin/icc ccache: FATAL: Could not find compiler "icc" in PATH /usr/lib64/ccache/bin/icpc ccache: FATAL: Could not find compiler "icpc" in PATH /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-c++ x86_64-pc-linux-gnu-c++ (Gentoo 4.7.3-r1 p1.4, pie-0.5.5) 4.7.3 Copyright (C) 2012 Free Software Foundation, Inc. Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE. /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-clang ccache: FATAL: Could not find compiler "x86_64-pc-linux-gnu-clang" in PATH /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-clang++ ccache: FATAL: Could not find compiler "x86_64-pc-linux-gnu-clang++" in PATH /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++ x86_64-pc-linux-gnu-g++ (Gentoo 4.7.3-r1 p1.4, pie-0.5.5) 4.7.3 Copyright (C) 2012 Free Software Foundation, Inc. Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE. /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-gcc x86_64-pc-linux-gnu-gcc (Gentoo 4.7.3-r1 p1.4, pie-0.5.5) 4.7.3 Copyright (C) 2012 Free Software Foundation, Inc. Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE. /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-icc ccache: FATAL: Could not find compiler "x86_64-pc-linux-gnu-icc" in PATH /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-icpc ccache: FATAL: Could not find compiler "x86_64-pc-linux-gnu-icpc" in PATH I've got similar problem (but with cups-1.7.4), I've got clang installed, cups fails with: configure:2763: checking whether the C compiler works configure:2785: x86_64-pc-linux-gnu-clang -O2 -march=native -pipe -fpeel-loops -frename-registers -frecord-gcc-switches -fno-unwind-tables -fno-asynchronous-unwind-tables -fpredictive-commoning -fweb -ftree-vectorize -floop-interchange -fivopts -ftree-loop-distribution -floop-block -floop-strip-mine -fira-loop-pressure -floop-interchange -ftree-loop-linear -Wdisabled-optimization -fuse-linker-plugin -Wl,-O1 -Wl,--as-needed -z relro -Wl,--sort-common -O2 -march=native -pipe -fpeel-loops -frename-registers -frecord-gcc-switches -fno-unwind-tables -fno-asynchronous-unwind-tables -fpredictive-commoning -fweb -ftree-vectorize -floop-interchange -fivopts -ftree-loop-distribution -floop-block -floop-strip-mine -fira-loop-pressure -floop-interchange -ftree-loop-linear -Wdisabled-optimization -fuse-linker-plugin conftest.c >&5 x86_64-pc-linux-gnu-clang-9999: error: unknown argument: '-frecord-gcc-switches' x86_64-pc-linux-gnu-clang-9999: error: unknown argument: '-fpredictive-commoning' x86_64-pc-linux-gnu-clang-9999: error: unknown argument: '-floop-interchange' x86_64-pc-linux-gnu-clang-9999: error: unknown argument: '-ftree-loop-distribution' x86_64-pc-linux-gnu-clang-9999: error: unknown argument: '-floop-block' x86_64-pc-linux-gnu-clang-9999: error: unknown argument: '-floop-strip-mine' x86_64-pc-linux-gnu-clang-9999: error: unknown argument: '-fira-loop-pressure' x86_64-pc-linux-gnu-clang-9999: error: unknown argument: '-floop-interchange' x86_64-pc-linux-gnu-clang-9999: error: unknown argument: '-ftree-loop-linear' x86_64-pc-linux-gnu-clang-9999: error: unknown argument: '-frecord-gcc-switches' x86_64-pc-linux-gnu-clang-9999: error: unknown argument: '-fpredictive-commoning' x86_64-pc-linux-gnu-clang-9999: error: unknown argument: '-floop-interchange' x86_64-pc-linux-gnu-clang-9999: error: unknown argument: '-ftree-loop-distribution' x86_64-pc-linux-gnu-clang-9999: error: unknown argument: '-floop-block' x86_64-pc-linux-gnu-clang-9999: error: unknown argument: '-floop-strip-mine' x86_64-pc-linux-gnu-clang-9999: error: unknown argument: '-fira-loop-pressure' x86_64-pc-linux-gnu-clang-9999: error: unknown argument: '-floop-interchange' x86_64-pc-linux-gnu-clang-9999: error: unknown argument: '-ftree-loop-linear' x86_64-pc-linux-gnu-clang-9999: warning: optimization flag '-fpeel-loops' is not supported x86_64-pc-linux-gnu-clang-9999: warning: optimization flag '-frename-registers' is not supported x86_64-pc-linux-gnu-clang-9999: warning: optimization flag '-fweb' is not supported x86_64-pc-linux-gnu-clang-9999: warning: optimization flag '-fivopts' is not supported x86_64-pc-linux-gnu-clang-9999: warning: optimization flag '-fuse-linker-plugin' is not supported x86_64-pc-linux-gnu-clang-9999: warning: optimization flag '-fpeel-loops' is not supported x86_64-pc-linux-gnu-clang-9999: warning: optimization flag '-frename-registers' is not supported x86_64-pc-linux-gnu-clang-9999: warning: optimization flag '-fweb' is not supported x86_64-pc-linux-gnu-clang-9999: warning: optimization flag '-fivopts' is not supported x86_64-pc-linux-gnu-clang-9999: warning: optimization flag '-fuse-linker-plugin' is not supported configure:2789: $? = 1 configure:2827: result: no configure: failed program was: Even when ccache is uninstalled cups still fails in the same way. Summary: ccache installed && clang installed => fails ccache uninstalled && clang installed => fails ccache installed && clang uninstalled => fails ccache uninstalled && clang uninstalled => compiles fine All issues in this bug report are due to cups picking up the clang compiler instead of the system compiler (if clang happens to be installed on the system). This issue should be resolved with version 1.7.5-r1 onwards that always uses the system compiler. The last compilation issue with "error: unknown argument: '-frecord-gcc-switches'" reported by Marcin I suspect such options being set as CFLAGS in make.conf - this should also be resolved with above change. At least, I cannot reproduce with cups versions 1.7.5-r1 (and later) on my machine. Therefore, I resolve with "duplicate" wrt bug 524340. Please reopen if I was mistaken. *** This bug has been marked as a duplicate of bug 524340 *** |