[parsec-users] compiling raytrace

Hanfeng Qin hanfengtsin at gmail.com
Tue May 24 04:42:17 EDT 2011


Hi all, When I compiled the raytrace benchmark on Fedora 14-x86_64 platform.
It failed with the following errors:

[PARSEC] Packages to build:  raytrace

 

[PARSEC] [========== Building package raytrace ==========]

[PARSEC] [---------- Analyzing package raytrace ----------]

[PARSEC] raytrace depends on: cmake mesa

[PARSEC] [---------- Analyzing package cmake ----------]

[PARSEC] Package cmake already exists, proceeding.

[PARSEC] [---------- Analyzing package mesa ----------]

[PARSEC] Package mesa already exists, proceeding.

[PARSEC] [---------- Building package raytrace ----------]

[PARSEC] Removing old build directory.

[PARSEC] Copying source code of package raytrace.

[PARSEC] Running 'env
CXXFLAGS=-I/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/libs/mesa/inst/
amd64-linux.gcc/include -O3 -funroll-loops -fprefetch-loop-arrays
-fpermissive -fno-exceptions -static-libgcc
-Wl,--hash-style=both,--as-needed -DPARSEC_VERSION=2.1 -fexceptions
-fno-strict-aliasing -fno-align-labels -DNDEBUG -D_MM_NO_ALIGN_CHECK
LDFLAGS=-L/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/libs/mesa/inst/a
md64-linux.gcc/lib -L/usr/lib64 -L/usr/lib LIBS= -lXmu -lX11 -lGL -lGLU
-lpthread ./configure
--prefix=/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/ins
t/amd64-linux.gcc':

Warning: Ignoring specified arguments

-- The C compiler identification is GNU

-- The CXX compiler identification is GNU

-- Check for working C compiler: /usr/bin/gcc

-- Check for working C compiler: /usr/bin/gcc -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working CXX compiler: /usr/bin/g++

-- Check for working CXX compiler: /usr/bin/g++ -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so

-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so -
found

-- Looking for gethostbyname

-- Looking for gethostbyname - found

-- Looking for connect

-- Looking for connect - found

-- Looking for remove

-- Looking for remove - found

-- Looking for shmat

-- Looking for shmat - found

-- Looking for IceConnectionNumber in ICE

-- Looking for IceConnectionNumber in ICE - found

-- Found X11: /usr/lib64/libX11.so

-- Looking for include files CMAKE_HAVE_PTHREAD_H

-- Looking for include files CMAKE_HAVE_PTHREAD_H - found

-- Looking for pthread_create in pthreads

-- Looking for pthread_create in pthreads - not found

-- Looking for pthread_create in pthread

-- Looking for pthread_create in pthread - found

-- Configuring done

CMake Warning (dev) at CMakeLists.txt:153 (ADD_EXECUTABLE):

  Policy CMP0004 is not set: Libraries linked may not have leading or

  trailing whitespace.  Run "cmake --help-policy CMP0004" for policy
details.

  Use the cmake_policy command to set the policy and suppress this warning.

 

  Target "test_glut" links to item " -lXmu -lX11 -lGL -lGLU -lpthread" which

  has leading or trailing whitespace.

This warning is for project developers.  Use -Wno-dev to suppress it.

 

CMake Warning (dev) at CMakeLists.txt:153 (ADD_EXECUTABLE):

  Policy CMP0003 should be set before this line.  Add code such as

 

    if(COMMAND cmake_policy)

      cmake_policy(SET CMP0003 NEW)

    endif(COMMAND cmake_policy)

 

  as early as possible but after the most recent call to

  cmake_minimum_required or cmake_policy(VERSION).  This warning appears

  because target "test_glut" links to some libraries for which the linker

  must search:

 

    -lXmu -lX11 -lGL -lGLU -lpthread

 

  and other libraries with known full path:

 

 
/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/libs/mesa/inst/amd64-linux
.gcc/lib/libglut.a

 

  CMake is adding directories in the second list to the linker search path
in

  case they are needed to find libraries from the first list (for backwards

  compatibility with CMake 2.4).  Set policy CMP0003 to OLD or NEW to enable

  or disable this behavior explicitly.  Run "cmake --help-policy CMP0003"
for

  more information.

This warning is for project developers.  Use -Wno-dev to suppress it.

 

CMake Warning (dev) at LRT/CMakeLists.txt:19 (ADD_EXECUTABLE):

  Policy CMP0004 is not set: Libraries linked may not have leading or

  trailing whitespace.  Run "cmake --help-policy CMP0004" for policy
details.

  Use the cmake_policy command to set the policy and suppress this warning.

 

  Target "test_static_cube" links to item " -lXmu -lX11 -lGL -lGLU
-lpthread"

  which has leading or trailing whitespace.

This warning is for project developers.  Use -Wno-dev to suppress it.

 

CMake Warning (dev) at MiniView/CMakeLists.txt:1 (ADD_EXECUTABLE):

  Policy CMP0004 is not set: Libraries linked may not have leading or

  trailing whitespace.  Run "cmake --help-policy CMP0004" for policy
details.

  Use the cmake_policy command to set the policy and suppress this warning.

 

  Target "rtview" links to item " -lXmu -lX11 -lGL -lGLU -lpthread" which
has

  leading or trailing whitespace.

This warning is for project developers.  Use -Wno-dev to suppress it.

 

CMake Warning (dev) at MiniView/CMakeLists.txt:1 (ADD_EXECUTABLE):

  Policy CMP0004 is not set: Libraries linked may not have leading or

  trailing whitespace.  Run "cmake --help-policy CMP0004" for policy
details.

  Use the cmake_policy command to set the policy and suppress this warning.

 

  Target "rtview" links to item " -lXmu -lX11 -lGL -lGLU -lpthread" which
has

  leading or trailing whitespace.

This warning is for project developers.  Use -Wno-dev to suppress it.

 

-- Generating done

-- Build files have been written to:
/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-li
nux.gcc

[PARSEC] Running 'env
CXXFLAGS=-I/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/libs/mesa/inst/
amd64-linux.gcc/include -O3 -funroll-loops -fprefetch-loop-arrays
-fpermissive -fno-exceptions -static-libgcc
-Wl,--hash-style=both,--as-needed -DPARSEC_VERSION=2.1 -fexceptions
-fno-strict-aliasing -fno-align-labels -DNDEBUG -D_MM_NO_ALIGN_CHECK
LDFLAGS=-L/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/libs/mesa/inst/a
md64-linux.gcc/lib -L/usr/lib64 -L/usr/lib LIBS= -lXmu -lX11 -lGL -lGLU
-lpthread /usr/bin/make':

/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/tools/cmake/inst/amd64-lin
ux.gcc/bin/cmake
-H/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-
linux.gcc
-B/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-
linux.gcc --check-build-system CMakeFiles/Makefile.cmake 0

/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/tools/cmake/inst/amd64-lin
ux.gcc/bin/cmake -E cmake_progress_start
/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-li
nux.gcc/CMakeFiles
/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-li
nux.gcc/CMakeFiles/progress.make

/usr/bin/make -f CMakeFiles/Makefile2 all

make[1]: Entering directory
`/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-l
inux.gcc'

/usr/bin/make -f CMakeFiles/test_glut.dir/build.make
CMakeFiles/test_glut.dir/depend

make[2]: Entering directory
`/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-l
inux.gcc'

cd
/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-li
nux.gcc &&
/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/tools/cmake/inst/amd64-lin
ux.gcc/bin/cmake -E cmake_depends "Unix Makefiles"
/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-li
nux.gcc
/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-li
nux.gcc
/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-li
nux.gcc
/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-li
nux.gcc
/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-li
nux.gcc/CMakeFiles/test_glut.dir/DependInfo.cmake --color=

Scanning dependencies of target test_glut

make[2]: Leaving directory
`/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-l
inux.gcc'

/usr/bin/make -f CMakeFiles/test_glut.dir/build.make
CMakeFiles/test_glut.dir/build

make[2]: Entering directory
`/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-l
inux.gcc'

/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/tools/cmake/inst/amd64-lin
ux.gcc/bin/cmake -E cmake_progress_report
/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-li
nux.gcc/CMakeFiles 1

[  4%] Building CXX object CMakeFiles/test_glut.dir/Testing/testglut.o

/usr/bin/g++   -DTHIS_IS_CMAKE
-I/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/libs/mesa/inst/amd64-lin
ux.gcc/include -O3 -funroll-loops -fprefetch-loop-arrays -fpermissive
-fno-exceptions -static-libgcc -Wl,--hash-style=both,--as-needed
-DPARSEC_VERSION=2.1 -fexceptions -fno-strict-aliasing -fno-align-labels
-DNDEBUG -D_MM_NO_ALIGN_CHECK
-I/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/libs/mesa/inst/amd64-lin
ux.gcc/include
-I/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-
linux.gcc
-I/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-
linux.gcc/RTTL
-I/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-
linux.gcc/RTTL/common
-I/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-
linux.gcc/RTTL/BVH
-I/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-
linux.gcc/SG
-I/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-
linux.gcc/LRT/include
-I/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-
linux.gcc/LRT   -D__hanfeng__ -o CMakeFiles/test_glut.dir/Testing/testglut.o
-c
/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-li
nux.gcc/Testing/testglut.cxx

Linking CXX executable bin/test_glut

/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/tools/cmake/inst/amd64-lin
ux.gcc/bin/cmake -E cmake_link_script CMakeFiles/test_glut.dir/link.txt
--verbose=1

/usr/bin/g++
-I/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/libs/mesa/inst/amd64-lin
ux.gcc/include -O3 -funroll-loops -fprefetch-loop-arrays -fpermissive
-fno-exceptions -static-libgcc -Wl,--hash-style=both,--as-needed
-DPARSEC_VERSION=2.1 -fexceptions -fno-strict-aliasing -fno-align-labels
-DNDEBUG -D_MM_NO_ALIGN_CHECK   -fPIC
-L/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/libs/mesa/inst/amd64-lin
ux.gcc/lib -L/usr/lib64 -L/usr/lib
CMakeFiles/test_glut.dir/Testing/testglut.o  -o bin/test_glut -rdynamic
-L/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/libs/mesa/inst/amd64-lin
ux.gcc/lib
/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/libs/mesa/inst/amd64-linux
.gcc/lib/libglut.a
/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/libs/mesa/inst/amd64-linux
.gcc/lib/libGLU.a
/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/libs/mesa/inst/amd64-linux
.gcc/lib/libGL.a -lXmu -lX11 -lGL -lGLU -lpthread 

/usr/bin/ld:
/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/libs/mesa/inst/amd64-linux
.gcc/lib/libGL.a(xm_api.o): undefined reference to symbol 'XShmQueryVersion'

/usr/bin/ld: note: 'XShmQueryVersion' is defined in DSO
/usr/lib64/libXext.so.6 so try adding it to the linker command line

/usr/lib64/libXext.so.6: could not read symbols: Invalid operation

collect2: ld returned 1 exit status

make[2]: *** [bin/test_glut] Error 1

make[2]: Leaving directory
`/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-l
inux.gcc'

make[1]: *** [CMakeFiles/test_glut.dir/all] Error 2

make[1]: Leaving directory
`/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/apps/raytrace/obj/amd64-l
inux.gcc'

make: *** [all] Error 2

[PARSEC] Error: 'env
CXXFLAGS=-I/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/libs/mesa/inst/
amd64-linux.gcc/include -O3 -funroll-loops -fprefetch-loop-arrays
-fpermissive -fno-exceptions -static-libgcc
-Wl,--hash-style=both,--as-needed -DPARSEC_VERSION=2.1 -fexceptions
-fno-strict-aliasing -fno-align-labels -DNDEBUG -D_MM_NO_ALIGN_CHECK
LDFLAGS=-L/home/hanfeng/Workspace/benchmark/parsec-2.1/pkgs/libs/mesa/inst/a
md64-linux.gcc/lib -L/usr/lib64 -L/usr/lib LIBS= -lXmu -lX11 -lGL -lGLU
-lpthread /usr/bin/make' failed.

 

Who can help me!

 

Best rgads,

 

Hanfeng

-------------------------------------------------

Hanfeng Qin, Ph.D candidate

School of Computer Science and Technology

Huazhong University of Science and Technology

Wuhan, 430074, P.R. China

E-mail: hanfengtsin at gmail.com

-------------------------------------------------

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/parsec-users/attachments/20110524/55661c88/attachment-0001.html>


More information about the parsec-users mailing list