hns - 日記自動生成システム - Version 2.19.9

先月 2014年02月 来月
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2014年02月25日(火) 旧暦 [n年日記] [更新:"2015/03/24 09:33:13"]

#1 [pkgsrc] security/openssl openssl-1.0.1f on Cygwin (64)

===> Building for openssl-1.0.1f
making all in crypto...
gmake[1]: Entering directory '/usr/pkgsrc/security/openssl/work/openssl-1.0.1f/crypto'

gcc -I. -I.. -I../include -D_WINDLL -DOPENSSL_PIC
  -DOPENSSL_THREADS -DDSO_DLFCN -DHAVE_DLFCN_H -O -DTERMIOS
  -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall
  -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2
  -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM
  -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM
  -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c -o cryptlib.o
  cryptlib.c

cryptlib.c:1:0: error: CPU you selected does not support x86-64 instruction set
 /* crypto/cryptlib.c */
 ^
cryptlib.c:1:0: error: CPU you selected does not support x86-64 instruction set
<builtin>: recipe for target 'cryptlib.o' failed
gmake[1]: *** [cryptlib.o] Error 1
gmake[1]: Leaving directory '/usr/pkgsrc/security/openssl/work/openssl-1.0.1f/crypto'
Makefile:280: recipe for target 'build_crypto' failed
gmake: *** [build_crypto] Error 1
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/security/openssl
*** Error code 1
Index: Makefile
===================================================================
RCS file: /cvs/cvsroot/pkgsrc/security/openssl/Makefile,v
retrieving revision 1.183
diff -u -r1.183 Makefile
--- Makefile	10 Jan 2014 14:32:42 -0000	1.183
+++ Makefile	25 Feb 2014 03:39:37 -0000
@@ -113,6 +113,15 @@
 .  endif
 .elif ${OPSYS} == "Cygwin"
 USE_PLIST_SHLIB=	no
+. if !empty(MACHINE:Mx86_64)
+SUBST_CLASSES+=		cygwin
+SUBST_MESSAGE.cygwin=	Removing -machine=i486 and OPENSSL_IA32_SSE2 from CFLAG
+SUBST_FILES.cygwin+=	Makefile
+SUBST_STAGE.cygwin=	post-configure
+SUBST_SED.cygwin=	'-e /^CFLAG=/s/-march=i486 //' 
+SUBST_SED.cygwin+=	'-e /^CFLAG=/s/-DOPENSSL_IA32_SSE2 //'
+.endif
+
 .elif ${OPSYS} == "Linux"
 .  if ${MACHINE_ARCH} == "powerpc64"
 CONFIGURE_SCRIPT=	./Configure
and then
gcc -I. -I.. -I../include -D_WINDLL -DOPENSSL_PIC
  -DOPENSSL_THREADS -DDSO_DLFCN -DHAVE_DLFCN_H -O -DTERMIOS
  -DL_ENDIAN -fomit-frame-pointer -O3 -Wall
  -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2
  -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM
  -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM
  -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c -o x86cpuid.o
  x86cpuid.s
x86cpuid.s: Assembler messages:
x86cpuid.s:8: Error: invalid instruction suffix for `push'
gcc -I. -I.. -I../include -D_WINDLL -DOPENSSL_PIC
  -DOPENSSL_THREADS -DDSO_DLFCN -DHAVE_DLFCN_H -march=x86-64 -O
  -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -Wall
  -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT
  -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM
  -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM
  -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -c -o x86_64cpuid.o
  x86_64cpuid.s
x86_64cpuid.s: Assembler messages:
x86_64cpuid.s:2: Error: unknown pseudo-op: `.hidden'
x86_64cpuid.s:6: Error: unknown pseudo-op: `.hidden'
x86_64cpuid.s:12: Warning: .type pseudo-op used outside of .def/.endef ignored.
x86_64cpuid.s:12: Error: junk at end of line, first unrecognized character is `O'
installing 4758cca
cp: cannot stat `lib4758cca.bad': No such file or directory
Makefile:107: recipe for target 'install' failed
gmake[1]: *** [install] Error 1
gmake[1]: Leaving directory '/usr/pkgsrc/security/openssl/work/openssl-1.0.1f/engines'
Makefile:548: recipe for target 'install_sw' failed
gmake: *** [install_sw] Error 1
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/security/openssl
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/security/openssl
m08@makoto 20:16:37/140225(..security/openssl)% grep lib4758 PLIST.
grep: PLIST.: No such file or directory
m08@makoto 20:16:56/140225(..security/openssl)% grep lib4758 PLIST.*
PLIST.common:lib/engines/lib4758cca.so
m08@makoto 20:16:57/140225(..security/openssl)% find . -name lib4758\*
m08@makoto 20:17:13/140225(..security/openssl)% find . -name lib47\*  
m08@makoto 20:17:25/140225(..security/openssl)% find . -name \*cca.\*
./work/openssl-1.0.1f/engines/cyg4758cca.dll
./work/openssl-1.0.1f/engines/e_4758cca.c
./work/openssl-1.0.1f/engines/e_4758cca.ec
./work/openssl-1.0.1f/engines/e_4758cca.o
./work/openssl-1.0.1f/engines/vendor_defns/hw_4758_cca.h
m08@makoto 20:17:32/140225(..security/openssl)% 
gmake[1]: Entering directory '/usr/pkgsrc/security/openssl/work/openssl-1.0.1f/apps'
installing openssl
installing CA.sh
installing CA.pl
installing tsget
gmake[1]: Leaving directory '/usr/pkgsrc/security/openssl/work/openssl-1.0.1f/apps'
making install in test...
gmake[1]: Entering directory '/usr/pkgsrc/security/openssl/work/openssl-1.0.1f/test'
gmake[1]: Nothing to be done for 'install'.
gmake[1]: Leaving directory '/usr/pkgsrc/security/openssl/work/openssl-1.0.1f/test'
making install in tools...
gmake[1]: Entering directory '/usr/pkgsrc/security/openssl/work/openssl-1.0.1f/tools'
gmake[1]: Leaving directory '/usr/pkgsrc/security/openssl/work/openssl-1.0.1f/tools'
installing libcrypto.a
installing libssl.a
installing libcrypto
cp: cannot stat `libcrypto': No such file or directory
Makefile:548: recipe for target 'install_sw' failed
gmake: *** [install_sw] Error 1
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/security/openssl
*** Error code 1
PR pkg/48619
1.0.1-cygwin64.patch info
1.0.1-cygwin64.patch
patch to 1.0.2 ?

#2 [Windows] RAM disk Performance (性能)

By the way, I have set TIMEFMT environment as follows:
m08@makoto 23:30:17/140225(/usr/pkgsrc)% echo $TIMEFMT
%U %S %*E %P %X+%Dk %I+%Oio %Fpf+%Ww
On My diary on 2014/01/30, I had first experience on RAM disk on Windows (Softperfect version).
Before RAM Disk (without RAM disk, by the way, please IGNORE the error indicated):
cd /usr/pkgsrc/security/openssl; time bmake package
...

cp: cannot stat `libcrypto': No such file or directory
Makefile:548: recipe for target 'install_sw' failed
gmake: *** [install_sw] Error 1
*** Error code 2
Stop.
bmake: stopped in /usr/pkgsrc/security/openssl
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/security/openssl
397.29s 323.12s 13:36.14 88% 0+0k 0+0io 36000495pf+0w
m08@makoto 23:26:53/140225(..security/openssl)% 
With following line in /usr/pkg/etc/mk.conf, all build related read/write will be done on RAM disk (I hope).
m08@makoto 23:36:54/140225(/usr/pkgsrc)% grep WRKOBJDIR /usr/pkg/etc/mk.conf 
WRKOBJDIR=/cygdrive/g/WRKOBJDIR
(After RAM disk setup):
cp: cannot stat `libcrypto': No such file or directory
Makefile:548: recipe for target 'install_sw' failed
gmake: *** [install_sw] Error 1
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/security/openssl
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/security/openssl
408.01s 324.26s 13:38.15 89% 0+0k 0+0io 36016009pf+0w
m08@makoto 23:43:35/140225(..security/openssl)% 
Too many page fault implies that amount of disk i/o ?
Page Fault が多いということは、disk i/o があるということかな。
ちなみに
ML-115 G5
Memory 8GB
SoftPerfect (free version) of RAM disk 2GB
Windows 7 Professional SP1 (64bit)
CYGWIN_NT-6.1 m08 1.7.28(0.271/5/3) 2014-02-09 21:06 x86_64 Cygwin
top is not available on cygwin..
cd /usr/pkgsrc/sysutils/top; bmake
...

checking for correct ls options... ls -l
checking for a platform module... none
Configure doesn't recognize this system and doesn't know
what module to assign to it.  Help the cause and run the
following command to let the maintainers know about this
deficiency!  Thanks.  Just cut and paste the following:
uname -a | mail -s cygwin bill@lefebvre.org

configure: error: System type cygwin unrecognized
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/sysutils/top
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/sysutils/top
m08@makoto 23:57:26/140225(..sysutils/top)% 
m08@makoto 00:28:22/140226(~/c)% cat memory-allocated.c
#include "stdio.h"
main()
{
  unsigned int bit=0x40000000, sum=0;
  char *x;
  
  while (bit > 4096) 
  {
    x = malloc(bit);
    if (x)
    sum += bit;
    bit >>= 1;
  }
  printf("%08x bytes (%.1fMB)\n", sum, sum/1024.0/1024.0);
  return 0;
}
m08@makoto 00:28:48/140226(~/c)% gcc -o memory-allocated  memory-allocated.c
memory-allocated.c: In function 'main':
memory-allocated.c:10:9: warning: incompatible implicit
  declaration of built-in function 'malloc' [enabled by default]
     x = malloc(bit);
         ^
m08@makoto 00:36:31/140226(~/c)% time ./memory-allocated.exe
7fffe000 bytes (2048.0MB)
0.01s 0.05s 0.062 97% 0+0k 0+0io 4290pf+0w
何だか、このプログラム、全然信用出来ない気がする。
それとも僕が何か(趣旨を)間違えているかな、
m08@makoto 00:41:28/140226(~/c)% !cat                                       
cat memory-allocated.c
#include "stdio.h"
#include "machine/malloc.h"
main()
{
  unsigned long bit=0x7f0000000, sum=0;
  long *x;
  
  while (bit > 4096) 
  {
    x = malloc(bit);
    if (x)
    sum += bit;
    bit >>= 1;
  }
  printf("%08x bytes (%.1fMB)\n", sum, sum/1024.0/1024.0);
  return 0;
}
m08@makoto 00:42:10/140226(~/c)% !gcc
gcc -o memory-allocated  memory-allocated.c
memory-allocated.c: In function 'main':
memory-allocated.c:10:9: warning: incompatible implicit
   declaration of built-in function 'malloc' [enabled by default]
     x = malloc(bit);
         ^
m08@makoto 00:42:12/140226(~/c)% time ./memory-allocated.exe                
f1ffe040 bytes (28448.0MB)
0.14s 0.11s 0.250 99% 0+0k 0+0io 9580pf+0w
m08@makoto 00:42:15/140226(~/c)% 



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)