LoginSignup
1
1

More than 5 years have passed since last update.

SPEC OMP2012 のインストールメモ (Ubuntu 14.04)

Posted at

概要

SPEC OMP2012 ベンチマークのインストールに関して、Tool Suite のビルドがそのままでは通らなかったり、インストールではねられたりしたのでメモ。

Tool Suite の修正

Tool Suite のビルドに際し、tools/src 以下の tar と specsum の stdio.in.h を修正する必要がある(修正内容は同一)。

tar-1.25/gnu/stdio.in.h
--- tar-1.25/gnu/stdio.in.h.orig    2011-01-12 16:27:13.000000000 -0800
+++ tar-1.25/gnu/stdio.in.h 2015-03-06 11:26:23.859421832 -0800
@@ -144,7 +144,9 @@
    so any use of gets warrants an unconditional warning.  Assume it is
    always declared, since it is required by C89.  */
 #undef gets
+#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16)
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+#endif

 #if @GNULIB_FOPEN@
 # if @REPLACE_FOPEN@
specsum/gnulib/stdio.in.h
--- specsum/gnulib/stdio.in.h.orig  2011-02-14 06:56:46.000000000 -0800
+++ specsum/gnulib/stdio.in.h   2015-03-06 11:33:02.507415000 -0800
@@ -159,7 +159,9 @@
    so any use of gets warrants an unconditional warning.  Assume it is
    always declared, since it is required by C89.  */
 #undef gets
+#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16)
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+#endif

 #if @GNULIB_FOPEN@
 # if @REPLACE_FOPEN@

インストール

チェックサムの確認でエラーになるときは、環境変数 SPEC_INSTALL_NOCHECK=1 を設定すればチェックサムの確認プロセスをスキップできます(ぉぃ)。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1