[parsec-users] Adding m5op_x86.S while building Parsec with hooks statically

Fulya Kaplan fkaplan3 at bu.edu
Fri Sep 20 11:36:42 EDT 2013


Hi,
I am trying to build Parsec with hooks statically and using the m5op
assembly files for x86.
Without adding the assembly file related stuff, it compiles (at least for
canneal), however it fails when I include the assembly files. Could you
help me with that? I read the Parsec document, but could not find any
explanation about my problem.
I used the Makefile.static and only added the m5op_x86.lo to objects and
the command line for that object (this command Iine I found from a friend
who had the alpha version alpha_m5.S). My Makefile.static looks like:

PREFIX=${PARSECDIR}/pkgs/libs/hooks/inst/${PARSECPLAT}
#AR=ar
#RANLIB=ranlib

TARGET=libhooks.a
OBJS=hooks.o m5op_x86.lo
INCLUDEDIR=include

all: $(OBJS)
        $(AR) rcs $(TARGET) $(OBJS)
        $(RANLIB) $(TARGET)

%.o : %.c
        $(CC) $(CFLAGS) -Wall -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -c $<

*#My edit*
%.lo : %.S
        $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -Wall -D_GNU_SOURCE
-D_XOPEN_SOURCE=600 -c $<*#end of my edit*

clean:
        rm -f $(OBJS)
        rm -f $(TARGET)
install:
        mkdir -p $(PREFIX)/lib
        cp -f $(TARGET) $(PREFIX)/lib
        mkdir -p $(PREFIX)/include
        cp -rf $(INCLUDEDIR)/* $(PREFIX)/include
.PHONY: all clean install


The compilation fails while building hooks and the error looks like:

[PARSEC] [---------- Building package hooks ----------]
[PARSEC] Copying source code of package hooks.
[PARSEC] Running 'env /usr/bin/make':
/usr/bin/gcc -O3 -funroll-loops -fprefetch-loop-arrays -static-libgcc
-Wl,--hash-style=both,--as-needed -DPARSEC_VERSION=2.1
-DENABLE_PARSEC_HOOKS
-I/mnt/nokrb/fkaplan3/gem5/parsec-2.1/pkgs/libs/hooks/inst/amd64-linux.gcc-hooks/include
-Wall -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -c hooks.c
gcc: --hash-style=both: linker input file unused because linking not done
gcc: --as-needed: linker input file unused because linking not done
mode=compile /usr/bin/gcc -O3 -funroll-loops -fprefetch-loop-arrays
-static-libgcc -Wl,--hash-style=both,--as-needed -DPARSEC_VERSION=2.1
-DENABLE_PARSEC_HOOKS
-I/mnt/nokrb/fkaplan3/gem5/parsec-2.1/pkgs/libs/hooks/inst/amd64-linux.gcc-hooks/include
-Wall -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -c m5op_x86.S
gcc: --hash-style=both: linker input file unused because linking not done
gcc: --as-needed: linker input file unused because linking not done
/usr/bin/ar rcs libhooks.a hooks.o m5op_x86.lo
/usr/bin/ar: m5op_x86.lo: No such file or directory
make: *** [all] Error 1
[PARSEC] Error: 'env /usr/bin/make' failed.

Best,

Fulya Kaplan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/parsec-users/attachments/20130920/25bbffbf/attachment.html>


More information about the parsec-users mailing list