Parsec Compile Error

795 views
Skip to first unread message

Digant Desai

unread,
Jan 24, 2013, 6:51:48 PM1/24/13
to snip...@googlegroups.com
Hi All,
I am trying to compile Parsec downloaded form Sniper website. And followed the instruction given on the website.
But during Parsec compilation I got following error,

[ 40%] Building CXX object RTTL/CMakeFiles/RTTL.dir/common/MapOptions.o
.
.
.
In file included from /opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/apps/raytrace/obj/amd64-linux.gcc-sniper/RTTL/common/MapOptions.cxx:1:0:
/opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/apps/raytrace/obj/amd64-linux.gcc-sniper/RTTL/common/MapOptions.hxx: In member function ‘bool MapOptions::parse(int, const char**)’:
/opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/apps/raytrace/obj/amd64-linux.gcc-sniper/RTTL/common/MapOptions.hxx:428:39: error: ‘access’ was not declared in this scope
make[4]: *** [RTTL/CMakeFiles/RTTL.dir/common/MapOptions.o] Error 1
make[4]: Leaving directory `/opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/apps/raytrace/obj/amd64-linux.gcc-sniper'
make[3]: *** [RTTL/CMakeFiles/RTTL.dir/all] Error 2
make[3]: Leaving directory `/opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/apps/raytrace/obj/amd64-linux.gcc-sniper'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/apps/raytrace/obj/amd64-linux.gcc-sniper'
[PARSEC] Error: 'env CXXFLAGS=-I/opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/libs/mesa/inst/amd64-linux.gcc-sniper/include -O3 -funroll-loops -fprefetch-loop-arrays -fpermissive -fno-exceptions -static-libgcc -Wl,--hash-style=both,--as-needed -DPARSEC_VERSION=2.1 -DENABLE_PARSEC_HOOKS -I/opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/libs/hooks/inst/amd64-linux.gcc-sniper/include -I/opt/sniper/benchmarks/benchmarks/tools/hooks -I/opt/sniper/include -fexceptions -fno-strict-aliasing -fno-align-labels -DNDEBUG -D_MM_NO_ALIGN_CHECK LDFLAGS=-L/opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/libs/mesa/inst/amd64-linux.gcc-sniper/lib -L/usr/lib64 -L/usr/lib -L/opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/libs/hooks/inst/amd64-linux.gcc-sniper/lib -uparmacs_roi_end -uparmacs_roi_start -L/opt/sniper/benchmarks/benchmarks/tools/hooks -lhooks_base -lrt -pthread LIBS= -lhooks -lXmu -lX11 -lGL -lGLU -lpthread /usr/bin/make' failed.
make[1]: *** [parsec-build] Error 1
make[1]: Leaving directory `/opt/sniper/benchmarks/benchmarks/parsec'
make: *** [all] Error 2

Is this a known issue or some dependencies issue ?

thanks


Trevor Carlson

unread,
Jan 25, 2013, 12:24:56 AM1/25/13
to snip...@googlegroups.com
Digant,

     This looks like it could be a problem with a very new GCC version. Recently, GCC has been become more strict about the C/C++ standard which can break legacy code. Which version of GCC and which OS / version are you using?

     If you wanted to try and fix it yourself while you are waiting for a response from us, you can take a look at the "access" variable in mapOptions.hxx/cxx. It is probably just defined or accessed in the wrong scope.

Trevor
--
--
--
You received this message because you are subscribed to the Google
Groups "Sniper simulator" group.
To post to this group, send email to snip...@googlegroups.com
To unsubscribe from this group, send email to
snipersim+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/snipersim?hl=en
 
 
 

Trevor Carlson

unread,
Jan 25, 2013, 8:23:46 AM1/25/13
to snip...@googlegroups.com
Digant,

��� I was able to fix it with a small patch that #includes the unistd.h file. You can patch your benchmarks directory with the supplied file for now, and we'll roll together a new benchmarks release with the fix shortly.
$ cd benchmarks/parsec
$ patch -p0 < raytrace-unistd-gcc-fix.patch

Trevor


On 01/25/2013 06:24 AM, Trevor Carlson wrote:
Digant,

� � �This looks like it could be a problem with a very new GCC version. Recently, GCC has been become more strict about the C/C++ standard which can break legacy code. Which version of GCC and which OS / version are you using?

� � �If you wanted to try and fix it yourself while you are waiting for a response from us, you can take a look at the "access" variable in mapOptions.hxx/cxx. It is probably just defined or accessed in the wrong scope.

Trevor

On Jan 25, 2013, at 12:51 AM, Digant Desai <digan...@gmail.com> wrote:

Hi All,
I am trying to compile Parsec downloaded form Sniper website. And followed the instruction given on the website.
But during Parsec compilation I got following error,

[ 40%] Building CXX object RTTL/CMakeFiles/RTTL.dir/common/MapOptions.o
.
.
.
In file included from /opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/apps/raytrace/obj/amd64-linux.gcc-sniper/RTTL/common/MapOptions.cxx:1:0:
/opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/apps/raytrace/obj/amd64-linux.gcc-sniper/RTTL/common/MapOptions.hxx: In member function �bool MapOptions::parse(int, const char**)�:
/opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/apps/raytrace/obj/amd64-linux.gcc-sniper/RTTL/common/MapOptions.hxx:428:39: error: �access� was not declared in this scope
make[4]: *** [RTTL/CMakeFiles/RTTL.dir/common/MapOptions.o] Error 1
make[4]: Leaving directory `/opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/apps/raytrace/obj/amd64-linux.gcc-sniper'
make[3]: *** [RTTL/CMakeFiles/RTTL.dir/all] Error 2
make[3]: Leaving directory `/opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/apps/raytrace/obj/amd64-linux.gcc-sniper'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/apps/raytrace/obj/amd64-linux.gcc-sniper'
[PARSEC] Error: 'env CXXFLAGS=-I/opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/libs/mesa/inst/amd64-linux.gcc-sniper/include -O3 -funroll-loops -fprefetch-loop-arrays -fpermissive -fno-exceptions -static-libgcc -Wl,--hash-style=both,--as-needed -DPARSEC_VERSION=2.1 -DENABLE_PARSEC_HOOKS -I/opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/libs/hooks/inst/amd64-linux.gcc-sniper/include -I/opt/sniper/benchmarks/benchmarks/tools/hooks -I/opt/sniper/include -fexceptions -fno-strict-aliasing -fno-align-labels -DNDEBUG -D_MM_NO_ALIGN_CHECK LDFLAGS=-L/opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/libs/mesa/inst/amd64-linux.gcc-sniper/lib -L/usr/lib64 -L/usr/lib -L/opt/sniper/benchmarks/benchmarks/parsec/parsec-2.1/pkgs/libs/hooks/inst/amd64-linux.gcc-sniper/lib -uparmacs_roi_end -uparmacs_roi_start -L/opt/sniper/benchmarks/benchmarks/tools/hooks -lhooks_base -lrt -pthread LIBS= -lhooks -lXmu -lX11 -lGL -lGLU -lpthread /usr/bin/make' failed.
make[1]: *** [parsec-build] Error 1
make[1]: Leaving directory `/opt/sniper/benchmarks/benchmarks/parsec'
make: *** [all] Error 2

Is this a known issue or some�dependencies�issue ?

thanks


--
--
--
You received this message because you are subscribed to the Google
Groups "Sniper simulator" group.
To post to this group, send email to snip...@googlegroups.com
To unsubscribe from this group, send email to
snipersim+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/snipersim?hl=en
�
�
�
--
--
--
You received this message because you are subscribed to the Google
Groups "Sniper simulator" group.
To post to this group, send email to snip...@googlegroups.com
To unsubscribe from this group, send email to
snipersim+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/snipersim?hl=en
�
�
�


-- 
----------------------------------------------
Trevor E. Carlson
Trevor....@elis.UGent.be
http://users.elis.ugent.be/~tcarlson
Computer Systems Laboratory, Ghent University
Electronics and Information Systems Department
work:   +32 9 264 3456
mobile: +32 474 545 987
raytrace-unistd-gcc-fix.patch

Digant Desai

unread,
Jan 25, 2013, 4:24:49 PM1/25/13
to snip...@googlegroups.com
It works now :D 
Thanks 
Reply all
Reply to author
Forward
0 new messages