Comments (3)
Here is the readable log:
https://pastebin.com/5SEaWkp3
from blktests.
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.
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 :=
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)
- scsi_debug module is not available HOT 4
- nbd/003 issue HOT 2
- Shellcheck will help to clean up your code... HOT 2
- nvme: fc: add a test case to check module unload before fc resource cleanup HOT 3
- RFE - Provide option to test against a real target array HOT 5
- src/miniublk.c does not link on Debian HOT 3
- loop0 loop1 loop2 still exists after loop/006 HOT 2
- loop/009 fails with unrecognized option '--ping' HOT 4
- srp/** tests fails on power with error scsi_transport_srp is in use HOT 8
- _have_cpu_hotplug lost the latest cpu HOT 1
- block/009 verify cache dropped HOT 1
- block/010 fail HOT 1
- block 012 set read only twice HOT 1
- what's the fail case of block/016 HOT 2
- block/005 fail HOT 2
- block/018 question HOT 1
- tests/loop/006 losetup option question
- scsi/004 question HOT 1
- Use 'set -o errexit' to catch script errors HOT 6
- nvme/033 failed HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blktests.