[#8168] {literal}#[]= — EGUCHI Osamu <eguchi@...>

えぐち@エスアンドイーです。

16 messages 1999/11/01
[#8172] Re: {literal}#[]= — matz@... (Yukihiro Matsumoto) 1999/11/01

まつもと ゆきひろです

[#8176] Multiple self assignment — Kazuhiro Yoshida <moriq.kazuhiro@...>

もりきゅうです。

35 messages 1999/11/01
[#8178] Re: Multiple self assignment — matz@... (Yukihiro Matsumoto) 1999/11/01

まつもと ゆきひろです

[#8212] Re: Multiple self assignment — Kazuhiro Yoshida <moriq.kazuhiro@...> 1999/11/02

もりきゅうです。

[#8213] Re: Multiple self assignment — matz@... (Yukihiro Matsumoto) 1999/11/03

まつもと ゆきひろです

[#8232] 例外を処理する 2 項演算子 — Kazunori NISHI <kazunori@...> 1999/11/05

西@九大です。

[#8233] Re: 例外を処理する 2 項演算子 — matz@... (Yukihiro Matsumoto) 1999/11/05

まつもと ゆきひろです

[#8236] Re: 例外を処理する 2 項演算子 — Kazuhiro Yoshida <moriq.kazuhiro@...> 1999/11/05

もりきゅうです。

[#8266] Re: 例外を処理する 2 項演算子 — EGUCHI Osamu <eguchi@...> 1999/11/07

えぐち@エスアンドイー です。

[#8269] Re: 例外を処理する 2 項演算子 — gotoken@... (GOTO Kentaro) 1999/11/07

In message "[ruby-dev:8266] Re: 例外を処理する 2 項演算子"

[#8271] Re: 例外を処理する 2 項演算子 — matz@... (Yukihiro Matsumoto) 1999/11/08

まつもと ゆきひろです

[#8274] Re: 例外を処理する 2 項演算子 — keiju@... (石塚圭樹) 1999/11/08

けいじゅ@日本ラショナルソフトウェアです.

[#8204] Re: [ruby-list:18281] Re: アクセス制御について — Shugo Maeda <shugo@...>

前田です。

12 messages 1999/11/02
[#8205] Re: [ruby-list:18281] Re: アクセス制御について — Shin-ichiro Hara <sinara@...> 1999/11/02

原です。

[#8315] Re: [ruby-list:18601] Re: [REQ] [].grep(pat){} ==> [].grep(pat).collect{} — Kazunori NISHI <kazunori@...>

西@九大です。

37 messages 1999/11/15
[#8316] Re: [ruby-list:18601] Re: [REQ] [].grep(pat){} ==> [].grep(pat).collect{} — matz@... (Yukihiro Matsumoto) 1999/11/15

まつもと ゆきひろです

[#8369] Re: [REQ] [].grep(pat){} ==> [].grep(pat).collect{} — Koji Arai <JCA02266@...> 1999/11/18

新井です。

[#8374] Re: [REQ] [].grep(pat){} ==> [].grep(pat).collect{} — matz@... (Yukihiro Matsumoto) 1999/11/18

まつもと ゆきひろです

[#8384] Re: [REQ] [].grep(pat){} ==> [].grep(pat).collect{} — Koji Arai <JCA02266@...> 1999/11/19

新井です。

[#8405] 1.4.3 (Re: Re: [REQ] [].grep(pat){} ==> [].grep(pat).collect{}) — matz@... (Yukihiro Matsumoto) 1999/11/24

[#8319] Re: Exception handling — Jun Adachi <adachi@...>

安達@沖データと申します。

21 messages 1999/11/16
[#8350] Re: Exception handling — Kazunori NISHI <kazunori@...> 1999/11/17

西@九大です。

[#8446] [REQ] {enumerable, integer, range}.rand — Kazunori NISHI <kazunori@...>

西@九大です。

37 messages 1999/11/29
[#8449] Re: [REQ] {enumerable, integer, range}.rand — matz@... (Yukihiro Matsumoto) 1999/11/30

まつもと ゆきひろです

[#8463] Re: [REQ] {enumerable, integer, range}.rand — Kazunori NISHI <kazunori@...> 1999/11/30

西@九大です。

[#8474] Re: [REQ] {enumerable, integer, range}.rand — matz@... (Yukihiro Matsumoto) 1999/12/01

まつもと ゆきひろです

[#8476] Re: [REQ] {enumerable, integer, range}.rand — Kazunori NISHI <kazunori@...> 1999/12/01

西@九大です。

[#8487] Re: [REQ] {enumerable, integer, range}.rand — matz@... (Yukihiro Matsumoto) 1999/12/02

まつもと ゆきひろです

[#8494] Re: [REQ] {enumerable, integer, range}.rand — Kazunori NISHI <kazunori@...> 1999/12/02

西@九大です。

[#8451] new Hash (Re: [ruby-list:19043]) — Wakou Aoyama <wakou@...>

青山です。

18 messages 1999/11/30

[ruby-dev:8371] Cygwin 1.0

From: Katsuyuki Komatsu <komatsu@...>
Date: 1999-11-18 14:30:23 UTC
List: ruby-dev #8371
小松です。

In the message of [ruby-dev:8207] Re: error.c for latest cygwin
    on 1999/11/2 13:11 Katsuyuki Komatsu <komatsu@sarion.co.jp> wrote:
|そういえば、Cygwin 1.0 CD-ROMが出てますけど、いったいどの
|バージョンのcygwin1.dllが入っているんでしょう?
|
|どなたか入手されましたか?

入手しました (笑)。

インストール先のデフォルトは、%SystemDrive%\Cygwinで、
インストール先を"/"とするsystemのmountのエントリを
インストーラーが作ります。

bash-2.03$ mount
Device              Directory           Type         Flags
C:\Cygwin           /                   system       binmode
bash-2.03$ 

インストール後のディレクトリ構成を最後に添付しました。

また、インストーラーはSystemの環境変数のPATHの*最後*に、
    C:\Cygwin\bin;C:Cygwin\contrib\bin
を追加し、バッチファイル経由でなく直接bashを起動する
メニューを作成します。

# このあたりのデフォルトの選択は、結構問題を引き起こしそう。

bash-2.03$ uname -mrsv
CYGWIN_NT-4.0 21.0 (0.14/2/2) 1999-9-13 20:44:35 i686
bash-2.03$ ls -l cygwin1.dll
-rw-r--r--   1 komatsu  users      804728 Sep 13 12:15 cygwin1.dll
bash-2.03$ size cygwin1.dll
   text    data     bss     dec     hex filename
 430592   72704   21104  524400   80070 cygwin1.dll
bash-2.03$ fgrep %%% cygwin1.dll
%%% Cygwin dll major: 21
%%% Cygwin dll minor: 0
%%% Cygwin dll epoch: 19
%%% Cygwin dll bad signal mask: 19005
%%% Cygwin dll old termios: 00005
%%% Cygwin api major: 0
%%% Cygwin api minor: 14
%%% Cygwin shared data: 2
%%% Cygwin dll identifier: cygwin
%%% Cygwin mount registry: 2
%%% Cygwin cygnus registry name: Cygnus Solutions
%%% Cygwin cygwin registry name: Cygwin
%%% Cygwin program options name: Program Options
%%% Cygwin cygwin mount registry name: mounts v2
%%% Cygwin build date: Mon Sep 13 20:44:35 1999
%%% Cygwin shared id: cygwinS2
bash-2.03$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-cygwin/2.9-cygwin-990830/specs
gcc version 2.9-cygwin-990830
bash-2.03$ 

gccに限らず"--host=i686-cygwin --target=i686-cygwin"で
configurationされています。

# i586はサポートしない?

src/winsup/ChangeLogの先頭は、

1999-09-10  DJ Delorie  <dj@cygnus.com>

	* exec.cc (_execve): check for an empty environment

でした。

で、やっと本題。

コンパイラを入れ替える前にと思って、素の状態でRubyのコンパイルを
試したところ、1999-11-11のRuby 1.5.0のmakeで2個所引っかかかりました。
最終的にできたruby.exeはmake testをパスしてます。

(1) numeric.cを"-g -O2"でコンパイルするとcc1が落ちます。
    "-g -O"や"-O"なら通りました。

bash-2.03$ make numeric.o
gcc -g -O2  -I. -I.. -I/usr/local/include -c ../numeric.c
../numeric.c: In function `flo_gt':
../numeric.c:473: internal error--unrecognizable insn:
(insn 177 114 178 (set (reg:SI 42)
        (and:SI (zero_extract:SI (reg:HI 35)
                (const_int 8)
                (const_int 8))
            (const_int 69))) -1 (insn_list 114 (nil))
    (expr_list:REG_DEAD (reg:HI 35)
        (nil)))
    0       0 [main] C:\cygwin\usr\lib\gcc-lib\i686-cygwin\2.9-cygwin-990830\cc1.exe 1016 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
    0    3579 [main] cc1 1016 stackdump: Dumping stack trace to cc1.exe.stackdump
make: *** [numeric.o] Error 1
bash-2.03$ gcc -g -O -I. -I.. -I/usr/local/include -c ../numeric.c
bash-2.03$ 

(2) dllwrapが"undefined reference to `WinMain@16'"のエラーになります。
    dllwrap.exeを
        cygwin B20.1
        binutils-2.9.4-cygb20.tar.gz
        gcc-2.95.2-cygb20.tar.gz (binutil-2.9.4と同じdllwrap.exeが入っている)
    のいずれかに置き換えると通りました。
    CDに入っているバイナリだけおかしいようです。

bash-2.03$ make
dllwrap -o rubycw.dll --export-all --output-lib=libruby.a --dllname=rubycw.dll -Wl,-e,__cygwin_noncygwin_dll_entry@12 --add-stdcall-alias -s array.o bignum.o class.o compar.o dir.o dln.o enum.o error.o eval.o file.o gc.o hash.o inits.o io.o marshal.o math.o numeric.o object.o pack.o parse.o process.o prec.o random.o range.o re.o regex.o ruby.o signal.o sprintf.o st.o string.o struct.o time.o util.o variable.o version.o crypt.o flock.o strftime.o  dmyext.o
Warning: no export definition file provided
dllwrap will create one, but may not be what you want
/usr/lib/gcc-lib/i686-cygwin/2.9-cygwin-990830/../../../../i686-cygwin/lib/libcygwin.a(libcmain.o)(.text+0x66):libcmain.cc: undefined reference to `WinMain@16'
collect2: ld returned 1 exit status
dllwrap: gcc exited with status 1
make: *** [rubycw.dll] Error 1
bash-2.03$ 

--
小松克行 / Katsuyuki Komatsu <komatsu@sarion.co.jp>

■Cygwin 1.0のインストール後のディレクトリ構成 (適宜折りたたんでいます)

.
 `--bin
 `--contrib
 |   `--bin
 |   `--docs
 |   `--etc
 |   `--include
 |   `--info
 |   `--lib
 |   |   `--cvs
 |   |   `--perl5
 |   |   |   `--5.00503
 |   |   |   |   ...
 |   |   |   |   `--cygwin
 |   |   |   |   ...
 |   |   |   `--site_perl
 |   |   |       `--5.005
 |   |   |           `--cygwin
 |   |   `--xemacs
 |   |   |   `--lock
 |   |   `--xemacs-21.0-b67
 |   |       `--etc
 |   |       `--i686-pc-cygwin32
 |   |       `--info
 |   |       `--lisp
 |   `--libexec
 |   `--man
 |   `--sbin
 |   `--share
 |   |   `--games
 |   |   `--groff
 |   |   `--tabset
 |   |   `--terminfo
 |   |   `--vim
 |   `--tmp
 `--contribpatches
 `--contribsrc
 `--etc
 `--html
 `--share
 `--src
 `--tmp
 `--usr
 |   `--i686-cygwin
 |   |   `--bin
 |   |   `--include
 |   |   `--lib
 |   `--include
 |   |   `--g++-2
 |   |   `--readline
 |   `--info
 |   `--lib
 |   |   `--gcc-lib
 |   |       `--i686-cygwin
 |   |           `--2.9-cygwin-990830
 |   `--libexec
 |   `--man
 |   `--share
 |       `--cygnus
 |       `--dejagnu
 |       `--gdbtcl
 |       `--itcl3.0
 |       `--itk3.0
 |       `--iwidgets3.0.0
 |       `--locale
 |       `--tcl8.0
 |       `--tix4.1
 |       `--tk8.0
 `--var
     `--run
     `--tmp

In This Thread