try "ldd path/to/binary/". If it shows some .so files them you built it as shared.
I added the "-static" to COPTIMIZE, CXXOPTIMIZE, FOPTIMIZE in the config file (linux64-amd64-gcc42.cfg) which is used by runspe command. Try that. On 11/12/11, 马君 <[email protected]> wrote: > Hello, everyone: > > I’m using m5’s SE mode to run SPEC2006 which are built by > downloaded Alpha pre-compiled cross-compiler. > > I’ve added “-static” option into the > “/***/SPECcpu2006/benchspec/Makefile.defaults”. Command lines in Makefile. > defaults are as follows: > > ----------------------------------------- > > ifeq ($(OS),windows_nt) > > OBJ ?= .obj > > OBJOPT ?= -c -Fo$@ > > LDOUT ?= -Fe$@ > > MATHLIBOPT ?= > > RMRF ?= del /q /f /s > > CPUFLAGS += -DSPEC_CPU_WINDOWS > > else > > OBJ ?= .o > > OBJOPT ?= -static -c -o $@ > > LDOUT ?= -o $@ > > MATHLIBOPT ?= -lm > > RMRF ?= rm -rf > > ----------------------------------------- > > And during the process of compiling, I could see the “-static” was > available. Example for perlbench is as follows: > > -------------------------------------------------------------- > > Benchmarks selected: 400.perlbench > > Compiling Binaries > > Building 400.perlbench ref base amd64-m64-gcc42-nn default: > (build_base_amd64-m64-gcc42-nn.0000) > > specmake clean 2> make.clean.err | tee make.clean.out > > rm -rf perlbench perlbench.exe *.o *.fppized.f* > > find . \( -name \*.o -o -name '*.fppized.f*' \) -print | xargs rm -rf > > rm -rf core > > specmake build 2> make.err | tee make.out > > /dist/alphaev67-unknown-linux-gnu/bin/alphaev67-unknown-linux-gnu-gcc > -static -c -o av.o -DSPEC_CPU -DNDEBUG -DPERL_CORE -O2 > -DSPEC_CPU_LP64 -DSPEC_CPU_LINUX_X64 av.c > > /dist/alphaev67-unknown-linux-gnu/bin/alphaev67-unknown-linux-gnu-gcc > -static -c -o deb.o -DSPEC_CPU -DNDEBUG -DPERL_CORE -O2 > -DSPEC_CPU_LP64 -DSPEC_CPU_LINUX_X64 deb.c > > /dist/alphaev67-unknown-linux-gnu/bin/alphaev67-unknown-linux-gnu-gcc > -static -c -o doio.o -DSPEC_CPU -DNDEBUG -DPERL_CORE -O2 > -DSPEC_CPU_LP64 -DSPEC_CPU_LINUX_X64 doio.c > > …… > > ----------------------------------------------------------------- > > But when I simulate m5 with command: ./build/ALPHA_SE/gem5.debug > configs/example/cmp.py --benchmark perlbench,I still got the error: > > ----------------------------------------------------------------- > > gem5 Simulator System. http://gem5.org > > gem5 is copyrighted software; use the --copyright option for details. > > > > gem5 compiled Sep 26 2011 17:37:39 > > gem5 started Nov 12 2011 22:25:55 > > gem5 executing on ubuntu > > command line: ./build/ALPHA_SE/gem5.debug configs/example/cmp.py --benchmark > perlbench > > /dist/m5/configs/example > > /dist/m5/configs > > /dist/m5 > > Global frequency set at 1000000000000 ticks per second > > fatal: Object file is a dynamic executable however only static executables > are supported! > > Please recompile your executable as a static binary and try again. > > @ cycle 0 > > [create:build/ALPHA_SE/sim/process.cc, line 609] > > Memory Usage: 4259840 Kbytes > > ----------------------------------------------------------------- > > The cmp.py and Mybench.py are written similar to the templets on gem5 > homepage. > > Can anyone help? > > > > Thanks > > > > Jun Ma > > > > > > -- -- // Naderan *Mahmood; _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
