From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) by sourceware.org (Postfix) with ESMTPS id 73E263851C28 for ; Fri, 5 Jun 2020 16:11:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 73E263851C28 Received: by mail-il1-x12b.google.com with SMTP id a13so10146487ilh.3 for ; Fri, 05 Jun 2020 09:11:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Bg1UyK0OQTcXlSAeu6XrWPU0KLjbom/kMjb3kU9aJvU=; b=LGE1oxuZeBrHUMzJGvEl3AbfGbirjvmD0XJv7WoqF+/Kr6HOb+9ZWazYTaStB/kog+ qBe0fnlC3c0KFZYx/pc+mlrke78KV1rwtR7SUljykstboI7oCPPWnLz8nmsnbQBHSTBC xdveCzULr+X8nuteshPaCG/YIif7viL/k8EGjAEZNwJKVyowPlsmUGr+2AGFrGWS23rD rQe7ID3/DPItsr8WIKUReKAQ11xIiBUw6TupQJgKkdC88FeGeWOQs7i/GH7FQt2LDW/Y 32SgyQbi6wgAyuwpdQUgpaJm33jkPPJv9teT0PMoAXqdZhq7I1koaZuhSwctyCThN6rz D6ZA== X-Gm-Message-State: AOAM531gc2Ip28yUOlttfJV8c1gv585eY64hcinxVA6z7ruZStrb7QT5 Xjjzw+7U32h9t7Z7OLIgS4aDgcVhbKrcPVwhdLw= X-Google-Smtp-Source: ABdhPJx8cqjrud+tmBxTw72/wWfuIQbWfxJqPDMTKptdejOW4Z5foaEOhxPYJfQJm0TsLbEROsQWDWYFChLZHvsE1L0= X-Received: by 2002:a92:5ac2:: with SMTP id b63mr9623064ilg.134.1591373490748; Fri, 05 Jun 2020 09:11:30 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Fri, 5 Jun 2020 17:11:18 +0100 Message-ID: Subject: Re: riscv libsanitizer: error: missing terminating ' character To: Zdenek Sojka Cc: gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2020 16:11:32 -0000 On Fri, 5 Jun 2020 at 06:17, Zdenek Sojka via Gcc-help wrote: > > Hello, > > I've gcc x86_64-pc-linux-gnu to riscv64-unknown-linux-gnu cross-compiler > configured as: > > /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind- > annotations --disable-nls --enable-checking=yes,rtl,df,extra --with-cloog -- > with-ppl --with-isl --with-sysroot=/usr/riscv64-unknown-linux-gnu --build=x > 86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=riscv64-unknown-linux > -gnu --with-ld=/usr/bin/riscv64-unknown-linux-gnu-ld --with-as=/usr/bin/ > riscv64-unknown-linux-gnu-as --disable-multilib --disable-libstdcxx-pch -- > prefix=/repo/gcc-trunk//binary-trunk-r11-767-20200601155732-gff7da2b5d62- > checking-yes-rtl-df-extra-riscv64 > > Recently, probably since the libsanitizer master merge https://gcc.gnu.org/ > pipermail/gcc-patches/2020-June/547010.html , I am failing to build the > libsanitizer: > > libtool: compile: /repo/build-gcc-trunk-riscv64/./gcc/xgcc -shared-libgcc - > B/repo/build-gcc-trunk-riscv64/./gcc -nostdinc++ -L/repo/build-gcc-trunk- > riscv64/riscv64-unknown-linux-gnu/libstdc++-v3/src -L/repo/build-gcc-trunk- > riscv64/riscv64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/repo/build-gcc- > trunk-riscv64/riscv64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -B/ > repo/gcc-trunk//binary-trunk-r11-962-20200605114410-g6c6931a353a-checking- > yes-rtl-df-extra-riscv64/riscv64-unknown-linux-gnu/bin/ -B/repo/gcc-trunk// > binary-trunk-r11-962-20200605114410-g6c6931a353a-checking-yes-rtl-df-extra- > riscv64/riscv64-unknown-linux-gnu/lib/ -isystem /repo/gcc-trunk//binary- > trunk-r11-962-20200605114410-g6c6931a353a-checking-yes-rtl-df-extra-riscv64/ > riscv64-unknown-linux-gnu/include -isystem /repo/gcc-trunk//binary-trunk-r11 > -962-20200605114410-g6c6931a353a-checking-yes-rtl-df-extra-riscv64/riscv64- > unknown-linux-gnu/sys-include -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_ > MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_RPC_XDR_H=0 - > DHAVE_TIRPC_RPC_XDR_H=0 -I. -I/repo/gcc-trunk/libsanitizer/sanitizer_common > -I.. -I /repo/gcc-trunk/libsanitizer/include -I /repo/gcc-trunk/libsanitizer > -isystem /repo/gcc-trunk/libsanitizer/include/system -Wall -W -Wno-unused- > parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno- > exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility= > hidden -Wno-variadic-macros -I../../libstdc++-v3/include -I../../libstdc++-v > 3/include/riscv64-unknown-linux-gnu -I/repo/gcc-trunk/libsanitizer/../ > libstdc++-v3/libsupc++ -std=gnu++11 -DSANITIZER_LIBBACKTRACE -DSANITIZER_CP_ > DEMANGLE -I /repo/gcc-trunk/libsanitizer/../libbacktrace -I ../libbacktrace > -I /repo/gcc-trunk/libsanitizer/../include -include /repo/gcc-trunk/ > libsanitizer/libbacktrace/backtrace-rename.h -g -O2 -D_GNU_SOURCE -MT > sanitizer_linux.lo -MD -MP -MF .deps/sanitizer_linux.Tpo -c /repo/gcc-trunk/ > libsanitizer/sanitizer_common/sanitizer_linux.cpp -fPIC -DPIC -o .libs/ > sanitizer_linux.o > /repo/gcc-trunk/libsanitizer/sanitizer_common/sanitizer_linux.cpp:1880:12: > warning: binary constants are a C++14 feature or GCC extension > 1880 | case 0b10'010: // c.lwsp (rd != x0) > | ^~~~ > /repo/gcc-trunk/libsanitizer/sanitizer_common/sanitizer_linux.cpp:1880:16: > warning: missing terminating ' character > 1880 | case 0b10'010: // c.lwsp (rd != x0) > | ^ > /repo/gcc-trunk/libsanitizer/sanitizer_common/sanitizer_linux.cpp:1880:16: > error: missing terminating ' character > 1880 | case 0b10'010: // c.lwsp (rd != x0) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > > It seems -std=gnu++11 should be replaced by -std=gnu++14 ; but since I > couldn't find anyone else reporting this issue, maybe the problem is on my > side? The single quote as a digit separator is a C++14 feature, so the libsanitizer code should not be using it.