如何使用gcc 4.8(或更高版本)安装TPC-E EGen? [英] How to install TPC-E EGen using gcc 4.8 (or above)?

查看:65
本文介绍了如何使用gcc 4.8(或更高版本)安装TPC-E EGen?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直坚持在Mac OS X(或Linux)上安装TPC-E EGen.我已经从TPC网站下载了工作负载生成器:www.tpc.org/tpce/egen-download-request.asp,但是我无法构建它.

I am stuck with the installation of TPC-E EGen on Mac OS X (or Linux). I have downloaded the workload generator from TPC website : www.tpc.org/tpce/egen-download-request.asp but I failed to build it.

使用以下命令构建实用程序时:

When using the following command for building the utilities:

cd Utilities/prj/GNUMake/
make

我收到以下错误:

../../prj/GNUMake/Makefile.EGenUtilities:136: ../../obj/DateTime.d: No such file or directory
../../prj/GNUMake/Makefile.EGenUtilities:136: ../../obj/EGenVersion.d: No such file or directory
../../prj/GNUMake/Makefile.EGenUtilities:136: ../../obj/error.d: No such file or directory
../../obj/locking.d:3: *** missing separator.  Stop.

这不是有意义的错误,对解决问题没有帮助.

which is not a meaningful error and does not help in how to resolve the issue.

任何帮助或提示将不胜感激.

Any help or hint would be appreciated.

推荐答案

我发现了问题:

1-在EGenStandardTypes.h中,我不得不替换

1- in EGenStandardTypes.h, I had to replace

\#if defined  (__unix) || (_AIX)

作者

\#if defined(unix) || defined(\__unix__) || defined(\__unix) || defined(\__APPLE__) && defined(\__MACH__) || (_AIX)

为了使这部分代码也适用于Mac OS X.

in order to make this part of code work for Mac OS X as well.

2-在DateTime.cpp和error.cpp中

2- in DateTime.cpp and error.cpp

由于我当前的GCC版本不支持,因此我不得不注释掉 #error 指令的用法.

I had to comment out #error directive usages, as my current version of GCC did not support it.

这篇关于如何使用gcc 4.8(或更高版本)安装TPC-E EGen?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆