This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/80139] New: Use of non-gcc build compiler causes unsupported option error


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 ?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]