<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">El genereaza .exe oricum ii dai ca am incercat ambele variante. O sa incerc sa fac makefile-ul ca la carte sa vedem daca schimba ceva. Poate totusi gresesc ceva in el si vmchecker-ul este mai sensibil ca masina virtuala. Ms de sfaturi.<br><br>Alex<div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Alexandru Damian <alexdamian1989@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> Sisteme de Operare <so@cursuri.cs.pub.ro><br><b><span style="font-weight: bold;">Sent:</span></b> Sat, March 5, 2011 10:01:38 PM<br><b><span style="font-weight:
bold;">Subject:</span></b> Re: [so] [Tema0] Problema teste windows<br></font><br>
/Fetema0 trebuia sa fie /Fetema0.exe<div><br></div><div>Sau si mai corect:</div><div><br></div><div>tema0.exe: tema0.o hash.o etc</div><div> $(CC) $(CFLAGS) /Fe$@ $**<br><br><div class="gmail_quote">2011/3/5 Alex Gorunescu <span dir="ltr"><<a rel="nofollow" ymailto="mailto:algorunescu@yahoo.com" target="_blank" href="mailto:algorunescu@yahoo.com">algorunescu@yahoo.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Pai acelasi lucru am observat si eu. Tinand cont ca eu asta rulez la mine si merge, nu inteleg de ce pe server se intampla altceva.<br>
<div> </div>Alex<div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1">
<b><span style="font-weight: bold;">From:</span></b> Alexandru Damian <<a rel="nofollow" ymailto="mailto:alexdamian1989@gmail.com" target="_blank" href="mailto:alexdamian1989@gmail.com">alexdamian1989@gmail.com</a>><div class="im"><br><b><span style="font-weight: bold;">To:</span></b> Sisteme de Operare <<a rel="nofollow" ymailto="mailto:so@cursuri.cs.pub.ro" target="_blank" href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a>><br>
</div><b><span style="font-weight: bold;">Sent:</span></b> Sat, March 5, 2011 8:19:35 PM<div><div></div><div class="h5"><br><b><span style="font-weight: bold;">Subject:</span></b> Re: [so] [Tema0] Problema teste windows<br></div>
</div></font><div><div></div><div class="h5"><br>
(Scz daca ma bag :) )<div>Sigur executabilul tau exista ? Vad din diff ca tu nu ai output deloc...<div><br><div class="gmail_quote">2011/3/5 Alex Gorunescu <span dir="ltr"><<a rel="nofollow" ymailto="mailto:algorunescu@yahoo.com" target="_blank" href="mailto:algorunescu@yahoo.com">algorunescu@yahoo.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Problema nu este ca-mi pica testul 4. Pe masina mea virtuala am dezarhivat testele in acealsi director cu sursele, dau "nmake /nologo build", apoi "make -f makefile.checker" si toate testele merg. Pe vmchecker aceleasi surse fac asta:<br>
<br><pre>tests.zip size: 719642<br>make: *** No rule to make target `build-pre'. Stop.<br><br>checker: building<br>fixing file dates ...<br><br>C:\cygwin\home\Administrator>"C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" && nmake /nologo build <br>
Setting environment for using Microsoft Visual Studio 2008 x86 tools.<br><br>C:\cygwin\home\Administrator>goto :eof <br>        del *.obj<br>Could Not Find C:\cygwin\home\Administrator\*.obj<br>        del tema0.exe<br>Could Not Find C:\cygwin\home\Administrator\tema0.exe<br>
        del *.out<br>Could Not<br> Find C:\cygwin\home\Administrator\*.out<br>        cl /c /w /nologo hash.c<br>hash.c<br>        cl /c /w /nologo tema0.c<br>tema0.c<br>        cl /nologo /Fetema0 tema0.obj hash.obj<br>checker: building done<br>make: *** No rule to make target `build-post'. Stop.<br>
</pre><hr><b>Compilarea temei și a testelor (stderr)</b><br><pre>Archive: archive.zip<br> inflating: Makefile <br> inflating: tema0.c <br> inflating: GNUmakefile <br> inflating: Readme <br>
inflating: hash.h <br> inflating: hash.c <br>Archive: tests.zip<br> extracting: Makefile.checker <br> creating: _test/<br> inflating: _test/test8.out <br> inflating: _test/test8.sh <br>
inflating: _test/test7.sh <br> inflating: _test/<a rel="nofollow" target="_blank" href="http://test2.in">test2.in</a> <br> inflating: _test/hash.ref <br> inflating: _test/test3.out <br>
inflating: _test/test5.sh <br>
inflating: _test/test5.out <br> inflating: _test/test9.out <br> inflating: _test/test1.sh <br> inflating: _test/run_all.sh <br> inflating: _test/test7.out <br> extracting: _test/test1.out <br>
inflating: _test/test2.out <br> inflating: _test/test6.sh <br> inflating: _test/test6.out <br> inflating: _test/<a rel="nofollow" target="_blank" href="http://test9.in">test9.in</a> <br>
inflating: _test/test2.sh <br>
inflating: _test/test4.sh <br> inflating: _test/<a rel="nofollow" target="_blank" href="http://test5.in">test5.in</a> <br> inflating: _test/test4.out <br> inflating: _test/test3.sh <br>
inflating: _test/<a rel="nofollow" target="_blank" href="http://test1.in">test1.in</a> <br>
inflating: _test/<a rel="nofollow" target="_blank" href="http://test8.in">test8.in</a> <br> inflating: _test/<a rel="nofollow" target="_blank" href="http://test7.in">test7.in</a> <br> inflating: _test/test9.sh <br>
inflating: _test/<a rel="nofollow" target="_blank" href="http://test3.in">test3.in</a> <br>
inflating: _test/<a rel="nofollow" target="_blank" href="http://test6.in">test6.in</a> <br> inflating: _test/<a rel="nofollow" target="_blank" href="http://test4.in">test4.in</a> <br> inflating: _test/buckets.ref <br>
</pre>
<hr><b>Execuția
testelor (stdout)</b><br><pre>checker: testing<br>cd _test && ./run_all.sh<br>Running test 1<br>0a1<br>> vincent rousseau sigmund<br>--{ FAILED }--<br><br>Running test 2<br>0a1,3<br>> siemens pearl<br>> <br>
> siemens tawnya<br>--{ FAILED }--<br><br>Running test 3<br>0a1,3<br>> albertina picasso ashlee philippine sharleen sofia june<br>> <br>> june picasso<br>--{ FAILED }--<br><br>Running test 4<br></pre>Si intrebarea este de ce ? Aceleasi surse pe masina virtuala data, cu testele date merg fara probleme, si pe vmchecker o iau pe aratura cu totul. Mesajele cu "not found" vin de la faptul ca rulez in makefile un clean inainte de build si prima data nu are ce sa stearga. Nu cred ca aia e problema.<br>
<div> </div>Alex<div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1">
<b><span style="font-weight: bold;">From:</span></b> Marius Gabriel Gutu <<a rel="nofollow" ymailto="mailto:gabi.gutu@gmail.com" target="_blank" href="mailto:gabi.gutu@gmail.com">gabi.gutu@gmail.com</a>><br><b><span style="font-weight: bold;">To:</span></b> Sisteme de Operare <<a rel="nofollow" ymailto="mailto:so@cursuri.cs.pub.ro" target="_blank" href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a>><br>
<b><span style="font-weight: bold;">Sent:</span></b> Sat, March 5, 2011 5:33:04 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [so] [Tema0] Problema teste windows<br></font><div><div></div><div>
<br>
<div class="gmail_quote">2011/3/5 Alex Gorunescu <span dir="ltr"><<a rel="nofollow" ymailto="mailto:algorunescu@yahoo.com" target="_blank" href="mailto:algorunescu@yahoo.com">algorunescu@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br>Am o problema exasperanta cu testele de windows. Pe masina virtuala ruleaza fara probleme, cand fac upload nu ruleaza niciunul. Pe vmchecker primele 3 pica si testul 4 ramane blocat. Practic, parca nu executa deloc. Compilarea mi-o arata ok. Nu stiu ce sa mai verific. Probabil este ceva legat de Makefile dar nu reusesc sa-mi dau seama ce pentru ca la mine merg fara probleme. Pe linux merge totul perfect dar pe windows nu prea am experienta cu c-ul. A mai patit cineva asta ? Vreo sugestie ?<br>
<br>Alex<br></div><br>
</div><br>_______________________________________________<br><span><span><span>
<a target="_blank" href="http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii">http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii</a></span></span></span><br></blockquote></div><br><br>Testul 4 ia de la stdin prin redirectare. Si eu pateam asa. Probabil nu
ai implementat bine detectia sfarsitului de fisier in cazul in care
citesti de la stdin.<br>
</div></div></div></div>
</div><br>
</div><br>_______________________________________________<br>
<a rel="nofollow" target="_blank" href="http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii">http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii</a><br></blockquote></div><br><br clear="all"><br>-- <br>Alexandru Damian<br>
<br>Polytechnic University of Bucharest<br>
Faculty of Automatic Control and Computers<br>
</div></div>
</div></div></div></div>
</div><br>
</div><br>_______________________________________________<br>
<a rel="nofollow" target="_blank" href="http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii">http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii</a><br></blockquote></div><br><br clear="all"><br>-- <br>Alexandru Damian<br><br>Polytechnic University of Bucharest<br>
Faculty of Automatic Control and Computers<br>
</div>
</div></div>
</div><br>
</body></html>