2017年8月2日 星期三

SPEC2006_buildtools

Step1. Mount the ISO file
rpm -ivh libstdc++-4.4.5-6.el6.i686.rpm --force --nodeps
rpm -ivh libstdc++-devel-4.4.5-6.el6.i686.rpm --nodeps
mount -o loop CPU2006-1.2.iso /mnt

Step2. Copy the data to /SPECCPU2006 I crated
cp -rf /mnt /SPECCPU2006
chmod -R +wx /SPECCPU2006





vi tar-1.25/gnu/stdio.in.h

-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16)
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+#endif
 #endif
 
 

vi specsum/gnulib/stdio.in.h

-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16)
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+#endif
 #endif
 
PERLFLAGS="-A libs=-lm -A libs=-ldl" ./buildtools
 


Step3. Copy the data to /CPU2006_20150921 I crated
$ chmod +x shrc
$ . ./shrc

$ cd /SPECCPU2006/bin
$ ./packagetools linux-ubuntu-armv7l

沒有留言:

張貼留言