former title: building stratego-shell 0.7 using cygwin fails

Software:

I configured stratego-shell using:

./configure --prefix=/opt/stratego-shell --with-aterm=/opt/aterm/v2.5 --with-sdf=/opt/sdf2-bundle/v2.4 --with-strategoxt=/opt/strategoxt/v0.17

I got the following two indeterministic (i.e., first run showed first error, second run second error, etc.) errors from make:


make[1]: Entering directory /home/x/stratego-shell-0.7/shell' Making all in libreadline make[2]: Entering directory/home/x/stratego-shell-0.7/shell/libreadline

/opt/strategoxt/v0.17/bin/parse-stratego -i stratego-readline.str -o stratego-r
eadline.rtree
[ parse-stratego | warning ] Mismatch between basename of input file (stratego-r
eadline) and module name (gnu-readline) specified
make[2]: Circular libstratego-readline.rtree <- libstratego-readline.rtree depen
dency dropped.
[ strc | info ] Compiling ‘stratego-readline.rtree’
[ strc | info ] Front-end succeeded : [user/system] = [0.14s/0.02s]
[ strc | info ] Optimization succeeded -O 2 : [user/system] = [0.00s/0.00s]
[ strc | info ] Abstract syntax in ‘libstratego-readline.rtree’
[ strc | info ] Concrete syntax in ‘libstratego-readline.str’
[ strc | info ] Export of externals succeeded : [user/system] = [1.46s/9.21s]
[ strc | info ] Back-end succeeded : [user/system] = [0.03s/0.00s]
[ strc | info ] Compilation succeeded : [user/system] = [1.63s/9.23s]
rm libstratego-readline.str
[ strc | info ] Compiling ‘stratego-readline.rtree’
[ strc | info ] Front-end succeeded : [user/system] = [0.11s/0.00s]
[ strc | info ] Optimization succeeded -O 2 : [user/system] = [0.00s/0.00s]
[ strc | info ] Abstract syntax in ‘libstratego-readline.rtree’
9 [main] pp-stratego 2636 fhandler_console::fixup_after_fork_exec: error o
pening input console handle for /dev/console after fork/exec, errno 13, Win32 er
ror 5
64963 [main] pp-stratego 2636 fhandler_console::fixup_after_fork_exec: error o
pening output console handle for /dev/console after fork/exec, errno 13, Win32 e
rror 5
66774 [main] pp-stratego 2636 fhandler_console::fixup_after_fork_exec: error o
pening input console handle for /dev/console after fork/exec, errno 13, Win32 er
ror 5
67960 [main] pp-stratego 2636 fhandler_console::fixup_after_fork_exec: error o
pening output console handle for /dev/console after fork/exec, errno 13, Win32 e
rror 5
69608 [main] pp-stratego 2636 fhandler_console::fixup_after_fork_exec: error o
pening input console handle for /dev/console after fork/exec, errno 13, Win32 er
ror 5
70927 [main] pp-stratego 2636 fhandler_console::fixup_after_fork_exec: error o
pening output console handle for /dev/console after fork/exec, errno 13, Win32 e
rror 5
[ pp-stratego | warning ] process signaled: SEGV (11): Invalid memory reference
pp-stratego: rewriting failed, trace:
main_0_0
pp_stratego_io_0_0
option_wrap_2_0
option_wrap_5_0
lifted1
xtc_io_1_0
xtc_temp_files_1_0
restore_always_2_0
lifted31
lifted2
xtc_transform_2_0
xtc_transform_file_2_0
xtc_command_1_0
call_0_0
call_1_0
fork_and_wait_1_0
fork_2_0
lifted1
[ strc | error ] Compilation failed (8.89 secs)
make[2]: *** [libstratego-readline.c] Error 1
make[2]: Leaving directory `/home/x/stratego-shell-0.7/shell/libreadline’

make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/x/stratego-shell-0.7/shell’
make: *** [all-recursive] Error 1


make[1]: Entering directory /home/x/stratego-shell-0.7/shell' Making all in libreadline make[2]: Entering directory/home/x/stratego-shell-0.7/shell/libreadline

make[2]: Circular libstratego-readline.rtree <- libstratego-readline.rtree depen
dency dropped.
[ strc | info ] Compiling ‘stratego-readline.rtree’
[ strc | info ] Front-end succeeded : [user/system] = [0.09s/0.00s]
[ strc | info ] Optimization succeeded -O 2 : [user/system] = [0.00s/0.00s]
[ strc | info ] Abstract syntax in ‘libstratego-readline.rtree’
8 [main] pp-stratego 1772 child_copy: linked dll data write copy failed, 0
x177000..0x17B1E0, done 0, windows pid 1552, Win32 error 487
pp-stratego: rewriting failed, trace:
main_0_0
pp_stratego_io_0_0
option_wrap_2_0
option_wrap_5_0
lifted1
xtc_io_1_0
xtc_temp_files_1_0
restore_always_2_0
lifted31
lifted2
xtc_transform_2_0
xtc_transform_file_2_0
xtc_command_1_0
call_0_0
call_1_0
fork_and_wait_1_0
fork_2_0
fork_0_0
[ strc | error ] Compilation failed (7.70 secs)
make[2]: *** [libstratego-readline.c] Error 1
make[2]: Leaving directory `/home/x/stratego-shell-0.7/shell/libreadline’

make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/x/stratego-shell-0.7/shell’
make: *** [all-recursive] Error 1

And then I got this persistent error:


Making all in syn
make[2]: Entering directory /home/x/stratego-shell-0.7/shell/syn' /opt/strategoxt/v0.17/bin/sdf2rtg --main StrategoShell -i StrategoShell.def -o S trategoShell.rtg Usage: sdf2table [options] Options: -b write output in Binary AsFix (BAF) format -h display help information (usage) -i _file_ input from _file_ (default: all file arguments) -l display statistic information -m _name_ parse table is generated for module _name_ (default: Main) -n only normalization of grammar -o _file_ output to _file_ (default: _inputfile_.tbl) -s check sdf definition and show warnings on stderr -t write output in plain text format -v verbose mode -V reveal program version (i.e. 18013) make[2]: *** [StrategoShell.rtg] Error 1 make[2]: Leaving directory/home/x/stratego-shell-0.7/shell/syn’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/x/stratego-shell-0.7/shell’
make: *** [all-recursive] Error 1

Submitted by Tobi Vollebregt on 31 December 2010 at 13:05

On 6 January 2011 at 15:17 Tobi Vollebregt commented:

Noticed a few days ago that sdf2table is actually completely broken for me in cygwin 1.7.7 on Vista Business; it always displays usage information: I haven’t got it to do anything useful yet.

So the stratego-shell build being broken is just a side effect of sdf2table being broken in my (cygwin) configuration.

It is the sdf2table executable from the Stratego/XT 0.17 cygwin release.


On 8 May 2014 at 13:15 Yang Bo tagged !yangbo

Log in to post comments