Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with unixbench.spec of centos, after unixbench rpm installation, run unixbench and got error #48

Open
indicolite opened this issue Dec 5, 2017 · 2 comments

Comments

@indicolite
Copy link

with unixbench.spec file, make rpm file, install and then run,

[root@917-centos66 tmp]# unixbench
make: *** No rule to make target `check'.  Stop.
make: *** No rule to make target `all'.  Stop.

**********************************************
Run: "make all" failed; aborting

unixbench.spec

cat unixbench.spec
Summary: BYTE's UNIX Benchmarks
Name: unixbench
Version: 5.1.3
Release: 1%{?dist}
License: Distributable
Group: Applications/System
URL: http://www.hermit.org/Linux/Benchmarking/
Source: http://www.hermit.org/Linux/Benchmarking/UnixBench%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
This page presents some information on Linux benchmarking; and in particular,
UnixBench Version 5, a version of the venerable Byte benchmarks updated to
handle multi-CPU systems.

%prep
%setup -n UnixBench

### Add old XFree86 library path, add -lm for EL2
#%{__perl} -pi.orig -e 's|(GL_LIBS\s*=\s*)(.*)$|$1 -L%{_prefix}/X11R6/%{_lib} -lm $2|' Makefile

%build
%{__make} %{?_smp_mflags} OPTION="%{optflags}"

%install
%{__rm} -rf %{buildroot}
#sed -i '1767s/.*/#&/' Run
%{__install} -Dp -m0755 Run %{buildroot}%{_bindir}/unixbench

%{__install} -d -m0755 %{buildroot}%{_libdir}/unixbench/
%{__cp} -av pgms/ testdir/ %{buildroot}%{_libdir}/unixbench/

%clean
%{__rm} -rf %{buildroot}

%files
%doc README USAGE WRITING_TESTS
%{_bindir}/unixbench
%{_libdir}/unixbench/

%changelog
* Fri Aug 01 2014 Nux <[email protected]> - 5.1.3-1
- update to 5.1.3

* Wed Dec 10 2008 Dag Wieers <[email protected]> - 5.1.2-1 - 7981/dag
- Updated to release 5.1.2.

* Fri Feb 16 2007 Dag Wieers <[email protected]> - 4.0.1-1
- Initial package. (using DAR)
@indicolite
Copy link
Author

rpm -qpl unixbench-5.1.3-1.el6.nux.x86_64.rpm

warning: unixbench-5.1.3-1.el6.nux.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 85c6cd8a: NOKEY
/usr/bin/unixbench
/usr/lib64/unixbench
/usr/lib64/unixbench/pgms
/usr/lib64/unixbench/pgms/arithoh
/usr/lib64/unixbench/pgms/context1
/usr/lib64/unixbench/pgms/dhry2
/usr/lib64/unixbench/pgms/dhry2reg
/usr/lib64/unixbench/pgms/double
/usr/lib64/unixbench/pgms/execl
/usr/lib64/unixbench/pgms/float
/usr/lib64/unixbench/pgms/fstime
/usr/lib64/unixbench/pgms/gfx-x11
/usr/lib64/unixbench/pgms/hanoi
/usr/lib64/unixbench/pgms/index.base
/usr/lib64/unixbench/pgms/int
/usr/lib64/unixbench/pgms/long
/usr/lib64/unixbench/pgms/looper
/usr/lib64/unixbench/pgms/multi.sh
/usr/lib64/unixbench/pgms/pipe
/usr/lib64/unixbench/pgms/register
/usr/lib64/unixbench/pgms/short
/usr/lib64/unixbench/pgms/spawn
/usr/lib64/unixbench/pgms/syscall
/usr/lib64/unixbench/pgms/tst.sh
/usr/lib64/unixbench/pgms/unixbench.logo
/usr/lib64/unixbench/pgms/whetstone-double
/usr/lib64/unixbench/testdir
/usr/lib64/unixbench/testdir/cctest.c
/usr/lib64/unixbench/testdir/dc.dat
/usr/lib64/unixbench/testdir/large.txt
/usr/lib64/unixbench/testdir/sort.src
/usr/share/doc/unixbench-5.1.3
/usr/share/doc/unixbench-5.1.3/README
/usr/share/doc/unixbench-5.1.3/USAGE
/usr/share/doc/unixbench-5.1.3/WRITING_TESTS

@indicolite
Copy link
Author

cat v5.1.3.patch,
run the patch, the command will change dir to /usr/lib64/unixbench,
then just waiting for the result.

diff --git a/UnixBench/Run b/UnixBench/Run
index d615935..28942e4 100755
--- a/UnixBench/Run
+++ b/UnixBench/Run
@@ -84,6 +84,12 @@ my $cCompiler = 'gcc';
 # Establish full paths to directories.  These need to be full pathnames
 # (or do they, any more?).  They can be set in env.
 # variables whose names are the first parameter to getDir() below.
+
+my $d="/usr/lib64/unixbench";
+chdir $d;
+my $now=`pwd`;
+print $now,"\n";
+
 my $BASEDIR = `pwd`;
 chomp($BASEDIR);

@@ -1764,7 +1770,8 @@ sub main {
         $tests = $index;
     }

-    preChecks();
+    #preChecks();
+
     my $systemInfo = getSystemInfo();

     # If the number of copies to run was not set, set it to 1

indicolite added a commit to indicolite/toolkit that referenced this issue Dec 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant