FreeDOS support

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
pohmelie
Posts: 55
Joined: Mon Nov 23, 2015 6:31 pm

Re: FreeDOS support

Post by pohmelie » Tue Dec 01, 2015 11:44 am

josie87
Oh, I forgot about this. Copy "djgpp/i586-pc-msdosdjgpp/sys-include/sys/types.h" to "djgpp/i586-pc-msdosdjgpp/sys-include/sys/_types.h" and everything should be ok. I will add this to build guide, thanks.

josie87
Posts: 24
Joined: Tue Jun 30, 2015 2:46 pm

Re: FreeDOS support

Post by josie87 » Wed Dec 02, 2015 6:03 am

That helped, got another error:
Bildschirmfoto von »2015-12-02 07-02-35«.png
Bildschirmfoto von »2015-12-02 07-02-35«.png (61.31 KiB) Viewed 7568 times

pohmelie
Posts: 55
Joined: Mon Nov 23, 2015 6:31 pm

Re: FreeDOS support

Post by pohmelie » Wed Dec 02, 2015 11:40 am

josie87
Which version of DJGPP do you use? I found signbit function in djgpp/i586-pc-msdosdjgpp/sys-include/math.h so... can't reproduce this. Did you change something in files?

pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: FreeDOS support

Post by pfalcon » Wed Dec 02, 2015 12:53 pm

pohmelie wrote:There is some «trick» to avoid alloca.h, for example. I use -D__FreeBSD__=5 cause -DMICROPY_NO_ALLOCA=1 does not work. Hm, but probably we can just remove those #if #else #end and just #include <stdlib.h> at the end of mpconfigport.h.
Please report such issues on github.
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

pohmelie
Posts: 55
Joined: Mon Nov 23, 2015 6:31 pm

Re: FreeDOS support

Post by pohmelie » Wed Dec 02, 2015 1:17 pm

pfalcon
I'm not sure if it is a real issue. I've just remove alloca.h, as it done in arm builds (with stdlib.h):
https://github.com/pohmelie/micropython ... 6927ddea62

josie87
Posts: 24
Joined: Tue Jun 30, 2015 2:46 pm

Re: FreeDOS support

Post by josie87 » Wed Dec 02, 2015 4:30 pm

pohmelie wrote:josie87
Which version of DJGPP do you use? I found signbit function in djgpp/i586-pc-msdosdjgpp/sys-include/math.h so... can't reproduce this. Did you change something in files?
4.9.3, also tried 5.2

wich version are you using?

pohmelie
Posts: 55
Joined: Mon Nov 23, 2015 6:31 pm

Re: FreeDOS support

Post by pohmelie » Wed Dec 02, 2015 6:23 pm

josie87 wrote:wich version are you using?
I'm using 5.2.0. Did you found signbit in math.h?

pohmelie
Posts: 55
Joined: Mon Nov 23, 2015 6:31 pm

Re: FreeDOS support

Post by pohmelie » Wed Dec 02, 2015 8:02 pm

I have just tested whole build process (https://github.com/pohmelie/micropython ... s#building) on virtualbox xubuntu 15.04 and everything is ok.

josie87
Posts: 24
Joined: Tue Jun 30, 2015 2:46 pm

Re: FreeDOS support

Post by josie87 » Thu Dec 03, 2015 8:47 am

pohmelie wrote:
josie87 wrote:wich version are you using?
I'm using 5.2.0. Did you found signbit in math.h?
for some reason it's not there. I'll try to reinstall

josie87
Posts: 24
Joined: Tue Jun 30, 2015 2:46 pm

Re: FreeDOS support

Post by josie87 » Thu Dec 03, 2015 8:47 am

pohmelie wrote:I have just tested whole build process (https://github.com/pohmelie/micropython ... s#building) on virtualbox xubuntu 15.04 and everything is ok.
Maybe because I'm on Arch

Post Reply