From boris at codesynthesis.com Mon Feb 2 06:38:37 2015 From: boris at codesynthesis.com (Boris Kolpackov) Date: Mon Feb 2 06:48:18 2015 Subject: [xsde-users] Building latest repository version In-Reply-To: <103941629.286980.1422760488438.JavaMail.open-xchange@ptangptang.store> References: <185675624.244981.1422710295287.JavaMail.open-xchange@ptangptang.store> <103941629.286980.1422760488438.JavaMail.open-xchange@ptangptang.store> Message-ID: Hi Christian, Christian Sell writes: > I received a pre-built windows 3.3.0.a7 distro from boris last week, > which worked ok against the same schema and documents. However, the > linux buld I am trying to put together now doesn't. Very strange. 3.3.0.a7 is currently the HEAD. Try to diff (use -bB to ignore spaces) the generated source code and see if there is any difference. Also, check the runtime configuration between Linux and Windows (long long support shouldn't make a difference). Maybe also diff libxsde source code that you are using and the one in the Windows package. Boris From christian at gsvitec.com Mon Feb 2 08:51:08 2015 From: christian at gsvitec.com (Christian Sell) Date: Mon Feb 2 08:50:33 2015 Subject: AW: [xsde-users] Building latest repository version In-Reply-To: References: <185675624.244981.1422710295287.JavaMail.open-xchange@ptangptang.store> <103941629.286980.1422760488438.JavaMail.open-xchange@ptangptang.store> Message-ID: <000001d03eef$4c4069a0$e4c13ce0$@gsvitec.com> Making these checks will take a while (not on linux right now). In the meantime, would you mind sending me a prebuilt binary for linux (and OSX since we're at it ;)) so I can check against that? -----Urspr?ngliche Nachricht----- Von: Boris Kolpackov [mailto:boris@codesynthesis.com] Gesendet: Montag, 2. Februar 2015 12:39 An: Christian Sell Cc: xsde-users@codesynthesis.com Betreff: Re: [xsde-users] Building latest repository version Hi Christian, Christian Sell writes: > I received a pre-built windows 3.3.0.a7 distro from boris last week, > which worked ok against the same schema and documents. However, the > linux buld I am trying to put together now doesn't. Very strange. 3.3.0.a7 is currently the HEAD. Try to diff (use -bB to ignore spaces) the generated source code and see if there is any difference. Also, check the runtime configuration between Linux and Windows (long long support shouldn't make a difference). Maybe also diff libxsde source code that you are using and the one in the Windows package. Boris From boris at codesynthesis.com Tue Feb 3 07:16:28 2015 From: boris at codesynthesis.com (Boris Kolpackov) Date: Tue Feb 3 07:26:10 2015 Subject: [xsde-users] Building latest repository version In-Reply-To: <000001d03eef$4c4069a0$e4c13ce0$@gsvitec.com> References: <185675624.244981.1422710295287.JavaMail.open-xchange@ptangptang.store> <103941629.286980.1422760488438.JavaMail.open-xchange@ptangptang.store> <000001d03eef$4c4069a0$e4c13ce0$@gsvitec.com> Message-ID: Hi Christian, Christian Sell writes: > In the meantime, would you mind sending me a prebuilt binary for linux http://codesynthesis.com/~boris/tmp/xsde/xsde-3.3.0.a7-i686-linux-gnu.tar.bz2 > and OSX since we're at it That might take a while. If you want to check, simply copy the generated code from Windows or Linux. Boris From christian at gsvitec.com Tue Feb 3 13:58:07 2015 From: christian at gsvitec.com (Christian Sell) Date: Tue Feb 3 13:58:10 2015 Subject: [xsde-users] Building latest repository version In-Reply-To: References: <185675624.244981.1422710295287.JavaMail.open-xchange@ptangptang.store> <103941629.286980.1422760488438.JavaMail.open-xchange@ptangptang.store> <000001d03eef$4c4069a0$e4c13ce0$@gsvitec.com> Message-ID: <107748675.682162.1422989887541.JavaMail.open-xchange@omgreatgod.store> Hello Boris, I just tried the linux version you sent me. Things have gotten rather worse than better compared to my own linux build, in that now not only the xml documents aren't parsed, but also the error messages are messed up, as you see below (all in one line, interspersed from different sources) /home/cse/work/git/flexis/Sources/QtGUI/ProtoV6/Models/ProjectCenterModel.vml/home/cse/work/git/flexis/Sources/QtGUI/ProtoV6/Models/HomeScreenModel.vml/home/cse/work/git/flexis/Sources/QtGUI/ProtoV6/Models/TestViewModel.vml/home/cse/work/git/flexis/Sources/QtGUI/ProtoV6/Models/LiveViewModel.vml::::64119::70103:66: :65: unexpected element encountered66: unexpected element encountered: expected attribute not encounteredunexpected element encountered regards, Christian > Boris Kolpackov hat am 3. Februar 2015 um 13:16 > geschrieben: > > > Hi Christian, > > Christian Sell writes: > > > In the meantime, would you mind sending me a prebuilt binary for linux > > http://codesynthesis.com/~boris/tmp/xsde/xsde-3.3.0.a7-i686-linux-gnu.tar.bz2 > > > > and OSX since we're at it > > That might take a while. If you want to check, simply copy the generated > code from Windows or Linux. > > Boris > From boris at codesynthesis.com Wed Feb 4 10:56:11 2015 From: boris at codesynthesis.com (Boris Kolpackov) Date: Wed Feb 4 11:06:11 2015 Subject: [xsde-users] Building latest repository version In-Reply-To: <107748675.682162.1422989887541.JavaMail.open-xchange@omgreatgod.store> References: <185675624.244981.1422710295287.JavaMail.open-xchange@ptangptang.store> <103941629.286980.1422760488438.JavaMail.open-xchange@ptangptang.store> <000001d03eef$4c4069a0$e4c13ce0$@gsvitec.com> <107748675.682162.1422989887541.JavaMail.open-xchange@omgreatgod.store> Message-ID: Hi Christian, Christian Sell writes: > Things have gotten rather worse [...] I just tried the binary I sent you on the test you sent me. The only thing I changed in the default config.make for libxsde is to enable polymorphism: XSDE_POLYMORPHIC := y Then: /tmp/xsde-3.3.0.a7-i686-linux-gnu/bin/xsde cxx-hybrid --generate-parser \ --generate-aggregate --generate-polymorphic --root-element viewmodel \ amf.xsd vmf.xsd viewmodel.xsd g++ -I /tmp/xsde-3.3.0.a7-i686-linux-gnu/libxsde -O3 *.cxx \ /tmp/xsde-3.3.0.a7-i686-linux-gnu/libxsde/xsde/libxsde.a ./a.out LiveViewModel.vml valgrind ./a.out LiveViewModel.vml HEAP SUMMARY: in use at exit: 0 bytes in 0 blocks total heap usage: 507 allocs, 507 frees, 65,215 bytes allocated All heap blocks were freed -- no leaks are possible For counts of detected and suppressed errors, rerun with: -v ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 2) So it works without any problems for me. Can you try it on the minimal test and see if you get the same result? Also, from now on, I would ask you to test all the "bugs" that you find in XSD/e on a minimal, reproducible test that I will be able to run as well. Boris