1. Compiling struct Branch with Open Watcom
- Posted by andi49 May 26, 2012
- 1464 views
Hallo
Compiling the struct branch with OpenWatcom seems to fail.
wcc386 /bt=nt /mf /w0 /zq /j /zp4 /fp5 /fpi87 /5r /otimra /s /IC:\euDesigner\hgc lone\struct\euphoria /ol /zp4 /dEWINDOWS /5r /dEWATCOM /dEOW /dNDEBUG - DARCH=ix86 -fr=C:\euDesigner\hgclone\struct\euphoria\source\build\intobj\back\be _execute.obj.err /IC:\euDesigner\hgclone\struct\euphoria\source\build\intobj /IC
the default branch compiles without any problems. Any hints? Andreas
2. Re: Compiling struct Branch with Open Watcom
- Posted by ne1uno May 26, 2012
- 1439 views
Hallo
Compiling the struct branch with OpenWatcom seems to fail.
wcc386 /bt=nt /mf /w0 /zq /j /zp4 /fp5 /fpi87 /5r /otimra /s /IC:\euDesigner\hgc lone\struct\euphoria /ol /zp4 /dEWINDOWS /5r /dEWATCOM /dEOW /dNDEBUG - DARCH=ix86 -fr=C:\euDesigner\hgclone\struct\euphoria\source\build\intobj\back\be _execute.obj.err /IC:\euDesigner\hgclone\struct\euphoria\source\build\intobj /IC
the default branch compiles without any problems. Any hints? Andreas
make sure to run wmake clean and configure again or run configure with a new build dir.
there may be other problems with windows. I wasn't able to build the last few revs with minGW different error though.
3. Re: Compiling struct Branch with Open Watcom
- Posted by andi49 May 26, 2012
- 1434 views
- Last edited May 29, 2012
make sure to run wmake clean and configure again or run configure with a new build dir.
there may be other problems with windows. I wasn't able to build the last few revs with minGW different error though.
Yes, there seems to be problems with Windows. It was a clean setup, freshly cloned. And a build with MinGw also failed.
be_alloc.c:862:8: error: conflicting types for 'NewPreallocSeq' be_alloc.h:203:15: note: previous declaration of 'NewPreallocSeq' was here make[2]: *** [C:/MinGW/msys/1.0/usr/src/euphoria/source/build/intobj/back/be_al oc.o] Error 1 make[2]: Leaving directory `/usr/usr/src/euphoria/source' make[1]: *** [interpreter] Error 2 make[1]: Leaving directory `/usr/usr/src/euphoria/source' make: *** [all] Error 2Andreas
4. Re: Compiling struct Branch with Open Watcom
- Posted by mattlewis (admin) May 29, 2012
- 1260 views
make sure to run wmake clean and configure again or run configure with a new build dir.
there may be other problems with windows. I wasn't able to build the last few revs with minGW different error though.
Yes, there seems to be problems with Windows. It was a clean setup, freshly cloned. And a build with MinGw also failed.
be_alloc.c:862:8: error: conflicting types for 'NewPreallocSeq' be_alloc.h:203:15: note: previous declaration of 'NewPreallocSeq' was here make[2]: *** [C:/MinGW/msys/1.0/usr/src/euphoria/source/build/intobj/back/be_al oc.o] Error 1 make[2]: Leaving directory `/usr/usr/src/euphoria/source' make[1]: *** [interpreter] Error 2 make[1]: Leaving directory `/usr/usr/src/euphoria/source' make: *** [all] Error 2
Are you certain that you're using the lates? This should be fixed. I see, in be_alloc.h and be_alloc.c:
extern object NewPreallocSeq(intptr_t size, s1_ptr s1); object NewPreallocSeq(intptr_t size, s1_ptr s1)
I think it was fixed at one point, had a regression, and was fixed again on April 27th of 2012.
You should see something like this:
$ hg su parent: 5552:63c7d7d22b8a * merge trunk into structs branch branch: struct commit: 22983 unknown (clean) update: (current)
I have not tried Watcom in some time on the structs branch. I was able to cross compile using MinGW, 32-bits and 64-bits:
$ i686-w64-mingw32-gcc --version i686-w64-mingw32-gcc (GCC) 4.6.1 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ x86_64-w64-mingw32-gcc --version x86_64-w64-mingw32-gcc (GCC) 4.6.1 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Matt
5. Re: Compiling struct Branch with Open Watcom
- Posted by mattlewis (admin) May 29, 2012
- 1238 views
Hallo
Compiling the struct branch with OpenWatcom seems to fail.
wcc386 /bt=nt /mf /w0 /zq /j /zp4 /fp5 /fpi87 /5r /otimra /s /IC:\euDesigner\hgc lone\struct\euphoria /ol /zp4 /dEWINDOWS /5r /dEWATCOM /dEOW /dNDEBUG - DARCH=ix86 -fr=C:\euDesigner\hgclone\struct\euphoria\source\build\intobj\back\be _execute.obj.err /IC:\euDesigner\hgclone\struct\euphoria\source\build\intobj /IC :\euDesigner\hgclone\struct\euphoria\source\build\include be_execute.c -fo=C:\eu Designer\hgclone\struct\euphoria\source\build\intobj\back\be_execute.obj be_execute.c(5471): Error! E1011: Symbol 'MEMSTRUCT_SERIALIZE' has not been decl ared be_execute.c(5471): Error! E1054: Expression must be constant Error(E42): Last command making (C:\euDesigner\hgclone\struct\euphoria\source\bu ild\intobj\back\be_execute.obj) returned a bad statusthe default branch compiles without any problems. Any hints? Andreas
There was a problem with the code for Watcom. MEMSTRUCT_SERIALIZE should have been MEMSTRUCT_READ. I just pushed up a change to fix that, and I was able to build with Watcom (I used my cross compiled interpreter as a eubin...there are some changes for building with a 4.0 interpreter that haven't been merged into the struct branch).
Matt
6. Re: Compiling struct Branch with Open Watcom
- Posted by andi49 May 29, 2012
- 1294 views
Are you certain that you're using the lates? This should be fixed. I see, in be_alloc.h and be_alloc.c:
Yes, you where right. I messed it up. It compiles with Mingw gcc 4.5.2 32-bit. Also it complained about poke_long() not returning a value, in std/machine.e line 137 .I changed it to a procedure.
Thank you, Andreas