Re: [DynInst_API:] dyninst and nullptr don't build with g++ 4.4


Date: Tue, 29 Nov 2016 17:04:15 +0000
From: Bill Williams <bill@xxxxxxxxxxx>
Subject: Re: [DynInst_API:] dyninst and nullptr don't build with g++ 4.4
Addressed with PR 277, which should be merged as soon as it tests clean. Sorry, I left these fixes sitting on po during SC.

--bw

________________________________________
From: Dyninst-api <dyninst-api-bounces@xxxxxxxxxxx> on behalf of Mark W. Krentel <krentel@xxxxxxxx>
Sent: Monday, November 28, 2016 6:36 PM
To: dyninst-api@xxxxxxxxxxx
Subject: [DynInst_API:] dyninst and nullptr don't build with g++ 4.4

The latest Dyninst master fails to build with g++ 4.4.  It builds ok
with g++ 4.8, but not 4.4.

The problem is that dataflowAPI/src/stackanalysis.C now uses nullptr
which is not supported in g++ 4.4.

[ 55%] Building CXX object
parseAPI/CMakeFiles/parseAPI.dir/__/dataflowAPI/src/stackanalysis.C.o
/home/krentel/newelf/externals/BUILD/symtabAPI/dyninst/dataflowAPI/src/stackanalysis.C:64:
error: 'nullptr' was not declared in this scope
/home/krentel/newelf/externals/BUILD/symtabAPI/dyninst/dataflowAPI/src/stackanalysis.C:66:
error: 'nullptr' was not declared in this scope
/home/krentel/newelf/externals/BUILD/symtabAPI/dyninst/dataflowAPI/src/stackanalysis.C:68:
error: 'nullptr' was not declared in this scope
/home/krentel/newelf/externals/BUILD/symtabAPI/dyninst/dataflowAPI/src/stackanalysis.C:70:
error: 'nullptr' was not declared in this scope
make[5]: ***
[parseAPI/CMakeFiles/parseAPI.dir/__/dataflowAPI/src/stackanalysis.C.o]
Error 1

Looking at the table of C++11 features in GCC, it seems that nullptr
is not supported until 4.6.

    https://gcc.gnu.org/projects/cxx-status.html

So, I'm not sure how you want to handle this.  But using nullptr means
that you can't build Dyninst from source on RH 6.x, at least not
without installing a whole new compiler.

--Mark
_______________________________________________
Dyninst-api mailing list
Dyninst-api@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api
[← Prev in Thread] Current Thread [Next in Thread→]