Code Monkey home page Code Monkey logo

Comments (3)

yizhanglinux avatar yizhanglinux commented on June 2, 2024

Here is the readable log:
https://pastebin.com/5SEaWkp3

from blktests.

bvanassche avatar bvanassche commented on June 2, 2024

Which version of g++ are you using? Can you provide the output of g++ -v? Can you try to add -std=c++11 to CXXFLAGS in src/Makefile and rerun "make"?

from blktests.

yizhanglinux avatar yizhanglinux commented on June 2, 2024

Hi Bart
Here is the g++ version, and it works now after add -std=c++11, thanks.

g++ -v

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)

[root@storageqe-62 blktests]# git diff
diff --git a/src/Makefile b/src/Makefile
index da6b7ef..0b43495 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -12,7 +12,7 @@ CXX_TARGETS :=
TARGETS := $(C_TARGETS) $(CXX_TARGETS)

CFLAGS := -O2 -Wall
-CXXFLAGS := -O2 -Wall -Wextra -Wno-sign-compare -Werror
+CXXFLAGS := -O2 -Wall -Wextra -Wno-sign-compare -Werror -std=c++11

all: $(TARGETS)

[root@storageqe-62 blktests]# make
make -C src all
make[1]: Entering directory /mnt/tests/kernel/storage/SSD/nvme_blktest/blktests/src' cc -O2 -Wall -o loblksize loblksize.c cc -O2 -Wall -o loop_get_status_null loop_get_status_null.c cc -O2 -Wall -o openclose openclose.c cc -O2 -Wall -o sg/dxfer-from-dev sg/dxfer-from-dev.c cc -O2 -Wall -o sg/syzkaller1 sg/syzkaller1.c cc -O2 -Wall -o nbdsetsize nbdsetsize.c g++ -O2 -Wall -Wextra -Wno-sign-compare -Werror -std=c++11 -o discontiguous-io discontiguous-io.cpp make[1]: Leaving directory /mnt/tests/kernel/storage/SSD/nvme_blktest/blktests/src'

Thanks
Yi

from blktests.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.