[parsec-users] problem compiling blackscholes

Mahmood Naderan nt_mahmood at yahoo.com
Fri May 6 03:50:39 EDT 2011


>Have you tried to run env.sh script before building the benchmarks?
 
No I didn't run that. But there is no difference. see bellow.
mahmood at pc:parsec-2.1$ ./env.sh
mahmood at pc:parsec-2.1$ ./bin/parsecmgmt -a build -p blackscholes -c gcc-hooks
[PARSEC] Packages to build:  blackscholes
[PARSEC] [========== Building package blackscholes ==========]
[PARSEC] [---------- Analyzing package blackscholes ----------]
[PARSEC] blackscholes depends on: hooks
[PARSEC] [---------- Analyzing package hooks ----------]
[PARSEC] hooks depends on: libtool
[PARSEC] [---------- Analyzing package libtool ----------]
[PARSEC] Package libtool already exists, proceeding.
[PARSEC] [---------- Building package hooks ----------]
[PARSEC] Removing old build directory.
[PARSEC] Copying source code of package hooks.
[PARSEC] Running 'env /usr/bin/make':
/home/mahmood/parsec/parsec-2.1/pkgs/tools/libtool/inst/amd64-linux.gcc-hooks/bin/libtool --mode=compile /usr/bin/gcc-4.4 -O3 -funroll-loops -fprefetch-loop-arrays -static-libgcc -Wl,--hash-style=both,--as-needed -DPARSEC_VERSION=2.1 -DENABLE_PARSEC_HOOKS -I/home/mahmood/parsec/parsec-2.1/pkgs/libs/hooks/inst/amd64-linux.gcc-hooks/include -Wall -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -c hooks.c
libtool: compile:  /usr/bin/gcc-4.4 -O3 -funroll-loops -fprefetch-loop-arrays -static-libgcc -Wl,--hash-style=both,--as-needed -DPARSEC_VERSION=2.1 -DENABLE_PARSEC_HOOKS -I/home/mahmood/parsec/parsec-2.1/pkgs/libs/hooks/inst/amd64-linux.gcc-hooks/include -Wall -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -c hooks.c  -fPIC -DPIC -o .libs/hooks.o
libtool: compile:  /usr/bin/gcc-4.4 -O3 -funroll-loops -fprefetch-loop-arrays -static-libgcc -Wl,--hash-style=both,--as-needed -DPARSEC_VERSION=2.1 -DENABLE_PARSEC_HOOKS -I/home/mahmood/parsec/parsec-2.1/pkgs/libs/hooks/inst/amd64-linux.gcc-hooks/include -Wall -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -c hooks.c -o hooks.o >/dev/null 2>&1
/home/mahmood/parsec/parsec-2.1/pkgs/tools/libtool/inst/amd64-linux.gcc-hooks/bin/libtool --mode=link /usr/bin/gcc-4.4 -O3 -funroll-loops -fprefetch-loop-arrays -static-libgcc -Wl,--hash-style=both,--as-needed -DPARSEC_VERSION=2.1 -DENABLE_PARSEC_HOOKS -I/home/mahmood/parsec/parsec-2.1/pkgs/libs/hooks/inst/amd64-linux.gcc-hooks/include hooks.lo -o libhooks.la -rpath /home/mahmood/parsec/parsec-2.1/pkgs/libs/hooks/inst/amd64-linux.gcc-hooks/lib
libtool: link: /usr/bin/gcc-4.4 -shared  .libs/hooks.o    -Wl,--hash-style=both -Wl,--as-needed   -Wl,-soname -Wl,libhooks.so.0 -o .libs/libhooks.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libhooks.so.0" && ln -s "libhooks.so.0.0.0" "libhooks.so.0")
libtool: link: (cd ".libs" && rm -f "libhooks.so" && ln -s "libhooks.so.0.0.0" "libhooks.so")
libtool: link: /usr/bin/ar cru .libs/libhooks.a  hooks.o
libtool: link: /usr/bin/ranlib .libs/libhooks.a
libtool: link: ( cd ".libs" && rm -f "libhooks.la" && ln -s "../libhooks.la" "libhooks.la" )
[PARSEC] Running 'env /usr/bin/make install':
mkdir -p /home/mahmood/parsec/parsec-2.1/pkgs/libs/hooks/inst/amd64-linux.gcc-hooks/include
install -c include TARGET=libhooks.la OBJS=hooks.lo X86_m5.lo/* /home/mahmood/parsec/parsec-2.1/pkgs/libs/hooks/inst/amd64-linux.gcc-hooks/include
cp: omitting directory `include'
make: *** [install] Error 1
[PARSEC] Error: 'env /usr/bin/make install' failed.
mahmood at pc:parsec-2.1$
 
 
> If it doesn't work, you can always compile with different paths by using the -I option of gcc compiler.

Exactly where?

// Naderan *Mahmood;

From: Can Hankendi <hankendi at gmail.com>
To: Mahmood Naderan <nt_mahmood at yahoo.com>; PARSEC Users <parsec-users at lists.cs.princeton.edu>
Sent: Friday, May 6, 2011 1:31 AM
Subject: Re: [parsec-users] problem compiling blackscholes


It's related to your environment variables. Have you tried to run env.sh script before building the benchmarks? If it doesn't work, you can always compile with different paths by using the -I option of gcc compiler. 

Can


On Fri, Apr 29, 2011 at 4:24 AM, Mahmood Naderan <nt_mahmood at yahoo.com> wrote:

Hi,
>When I run
>./bin/parsecmgmt -a build -p blackscholes -c gcc-hooks
> 
>I get this error:
> 
>libtool: link: /usr/bin/gcc-4.4 -shared  .libs/hooks.o    -Wl,--hash-style=both -Wl,--as-needed   -Wl,-soname -Wl,libhooks.so.0 -o .libs/libhooks.so.0.0.0
>libtool: link: (cd ".libs" && rm -f "libhooks.so.0" && ln -s "libhooks.so.0.0.0" "libhooks.so.0")
>libtool: link: (cd ".libs" && rm -f "libhooks.so" && ln -s "libhooks.so.0.0.0" "libhooks.so")
>libtool: link: /usr/bin/ar cru .libs/libhooks.a  hooks.o
>libtool: link: /usr/bin/ranlib .libs/libhooks.a
>libtool: link: ( cd ".libs" && rm -f "libhooks.la" && ln -s "../libhooks.la" "libhooks.la" )
>[PARSEC] Running 'env /usr/bin/make install':
>mkdir -p /home/mahmood/parsec/parsec-2.1/pkgs/libs/hooks/inst/amd64-linux.gcc-hooks/include
>install -c include TARGET=libhooks.la OBJS=hooks.lo/* /home/mahmood/parsec/parsec-2.1/pkgs/libs/hooks/inst/amd64-linux.gcc-hooks/include
>cp: omitting directory `include'
>make: *** [install] Error 1
>[PARSEC] Error: 'env /usr/bin/make install' failed.
>
>
>Any idea about that? 
>// Naderan *Mahmood;
>_______________________________________________
>parsec-users mailing list
>parsec-users at lists.cs.princeton.edu
>https://lists.cs.princeton.edu/mailman/listinfo/parsec-users
>


More information about the parsec-users mailing list