Euphoria
Ticket #396:
euc no longer can translate eupack
-
Reported by
jeremy
Nov 16, 2010
The output on Windows and Linux is the same:
C:\Development\Projects\eupack\bin>..\..\euphoria\build\euc.exe -lib ..\..\euphoria\build\eu.lib eup.ex
Build directory: .\build-435049./
Translating code, pass: 1 2 3 4 5 6 7 8 9 10 generating
Compiling with Watcom
Compiling 1% init-.c
Compiling 4% eup.c
Compiling 6% main-.c
Compiling 8% pretty.c
Compiling 11% config.c
Compiling 13% eds.c
Compiling 15% convert.c
Compiling 17% search.c
Compiling 20% types.c
Compiling 22% sequence.c
Compiling 24% math.c
Compiling 26% sort.c
Compiling 28% text.c
Compiling 31% filesys.c
Compiling 33% datetime.c
Compiling 35% dll.c
Compiling 37% machine.c
Compiling 40% memory.c
Compiling 42% get.c
Compiling 44% io.c
Compiling 46% wildcard.c
Compiling 48% map.c
Compiling 51% eumem.c
Compiling 53% primes.c
Compiling 55% cmd_config.c
Compiling 57% cmdline.c
Compiling 60% console.c
Compiling 62% opts.c
Compiling 64% cmd_update.c
Compiling 66% cmd_list.c
Compiling 68% cmd_install.c
cmd_install.c(1004): Error! E1018: Label 'L1C' not defined in function
Couldn't compile file 'cmd_install.c'
Status: 8 Command: wcc386 /bt=nt /mf /w0 /zq /j /zp4 /fp5 /fpi87 /5r /otimra /s /IC:\Development\Projects\Euphoria cmd_install.c
It can be duplicated via:
$ hg clone http://bitbucket.org/jcowgar/eupack
$ cd eupack/bin
$ echo "-i ../include" >> eu.cfg
$ euc -con eupack.ex
Details
1. Comment by mattlewis
Nov 16, 2010
The address for the jump for the continue op isn't getting back patched:
[include/eupack/cmd_install.e:140] continue "file_iter" (37190)
630: 058 37190 # STARTLINE: include/eupack/cmd_install.e(140)<<continue "file_iter">>
632: 206 18604 # EXIT_BLOCK: [BLOCK: WHILE-:18604]
634: 206 18541 # EXIT_BLOCK: [BLOCK: FOR-file_iter:18541]
636: 023 0 # ELSE goto 0000
2. Comment by mattlewis
Nov 16, 2010
In fact, this is a problem interpreted and translated. Changing category to "Language." Marking "Accepted."
3. Comment by jeremy
Nov 16, 2010
Simple test added to t_loop in svn:4135
4. Comment by jeremy
Nov 16, 2010
eupack has changed slightly and this is no longer a problem for it so the description will not produce the bug. The unit test should be used when working on this ticket, not the example in the original detail.
5. Comment by jimcbrown
Nov 16, 2010
Fixed. At least, the unit test passes now.