This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/80139] New: Use of non-gcc build compiler causes unsupported option error
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 21 Mar 2017 17:58:38 +0000
- Subject: [Bug c/80139] New: Use of non-gcc build compiler causes unsupported option error
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80139
Bug ID: 80139
Summary: Use of non-gcc build compiler causes unsupported
option error
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
I just tried to build trunk gcc with clang.
I got the following error message
clang-5.0: error: unsupported option '-print-multi-os-directory'
It seems that the build system assumes that all possible
C compilers know the -print-multi-os-directory option.
Configure line is
CC="/home/dcb/llvm/results/bin/clang" \
CXX="/home/dcb/llvm/results/bin/clang++" \
../trunk/configure --prefix=/home/dcb/gcc/results.246284 \
--disable-bootstrap \
--disable-multilib \
--disable-werror \
--enable-checking=df,extra,fold,rtl,yes \
--enable-languages=c,c++
Maybe the build system should test for this feature before using it ?