Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22287

GCC with -march : invalid switch

$
0
0

OS: Ubuntu 16.04 s390x
Gcc: Build from source v7.3.0 using steps mentioned below:

mkdir gcccd gccwget https://ftpmirror.gnu.org/gcc/gcc-7.3.0/gcc-7.3.0.tar.xztar -xf gcc-7.3.0.tar.xzcd gcc-7.3.0./contrib/download_prerequisitesmkdir objdircd objdir../configure --prefix=/opt/gcc --enable-languages=c,c++ --enable-shared --with-system-zlib --enable-threads=posix --enable-__cxa_atexit --enable-checking --enable-gnu-indirect-function  --disable-bootstrap --disable-multilibmakemake installln -sf /opt/gcc/bin/gcc /usr/bin/gccln -sf /opt/gcc/bin/g++ /usr/bin/g++ln -sf /opt/gcc/bin/g++ /usr/bin/c++export PATH=/opt/gcc/bin:"$PATH"export LD_LIBRARY_PATH=/opt/gcc/lib64:"$LD_LIBRARY_PATH"export C_INCLUDE_PATH=/opt/gcc/lib/gcc/s390x-linux-gnu/7.3.0/includeexport CPLUS_INCLUDE_PATH=/opt/gcc/lib/gcc/s390x-linux-gnu/7.3.0/includesudo ln -sf /opt/gcc/lib64/libstdc++.so.6.0.24 /usr/lib/s390x-linux-gnu/libstdc++.so.6

gcc --version

gcc (GCC) 7.3.0Copyright (C) 2017 Free Software Foundation, Inc.

Then on compiling code for cockroachDB using make. Build fails with an error:

Error: invalid switch -march=z14Error: unrecognized option -march=z14

Is there any flag which needs to enable here?
(No such error was observed if gcc is installed from repo using apt-get install g++-7 on Ubuntu 18.04)


Viewing all articles
Browse latest Browse all 22287

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>