473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Compiling PythonD using DJGPP

Hi there. I had an old computer at my disposal and decided to put it to use
by setting up a nostalgia project with DOS and Windows for Workgroups 3.11.

Now that all of you are back from laughing about the archaicness of the
software involved ;-) here is my problem.

PythonD is a port of python to DOS. The release used is 2.4.2. I am trying
to compile PythonD using DJGPP, which is a port of GCC to DOS.

My problem is that I am getting a compiler error that I do not understand:

gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include
-DPy_BUILD_CORE -o Python/compile.o Python/compile.c
Python/compile.c: In function 'optimize_code':
Python/compile.c:512: warning: pointer targets in assignment differ in
signedness
Python/compile.c: At top level:
Python/compile.c:1038: error: two or more data types in declaration
specifiers
Python/compile.c:1232: error: two or more data types in declaration
specifiers
Python/compile.c: In function 'com_addbyte':
Python/compile.c:1232: error: parameter name omitted
Python/compile.c:1241: error: expected expression before 'unsigned'
make.exe: *** [Python/compile.o] Error 1
Does anyone have any ideas that could help shed some light on this and help
me get back on track?

Thanks!

--
Posted via a free Usenet account from http://www.teranews.com

Jul 22 '07 #1
2 1487
On 22 Jul, 18:29, "John Simeon" <josim...@gmail.comwrote:
Hi there. I had an old computer at my disposal and decided to put it to use
by setting up a nostalgia project with DOS and Windows for Workgroups 3.11.
gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I./Include
-DPy_BUILD_CORE -o Python/compile.o Python/compile.c
Python/compile.c: In function 'optimize_code':
Python/compile.c:512: warning: pointer targets in assignment differ in
signedness
This sounds like you are running into problems with C library memory
models on DOS. I.e. LARGE, MEDIUM, SMALL, TINY. Different memory
models use different pointer lengths and presumably, this might result
in the wrong bit being interpreted as a sign bit.

However, before you dig into that, try turning off the optimizations
( -O3 ) because this can be the cause of wierd errors. If this does
work, turn on optimization one level at a time to see how far you can
go.

And if this leads nowhere, then you probably are dealing with a DOS or
DJGPP specific issue. Ask people who work with DJGPP for advice.

Good Luck,

--Michael Dillon

Jul 22 '07 #2
John Simeon's response:
My problem is that I am getting a compiler error that I do not
understand:

gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-I. -I./Include
-DPy_BUILD_CORE -o Python/compile.o Python/compile.c
Python/compile.c: In function 'optimize_code':
Python/compile.c:512: warning: pointer targets in assignment differ in
signedness
Python/compile.c: At top level:
Python/compile.c:1038: error: two or more data types in declaration
specifiers
Python/compile.c:1232: error: two or more data types in declaration
specifiers
Python/compile.c: In function 'com_addbyte':
Python/compile.c:1232: error: parameter name omitted
Python/compile.c:1241: error: expected expression before 'unsigned'
make.exe: *** [Python/compile.o] Error 1

Does anyone have any ideas that could help shed some light on this and
help me get back on track?
You realize this is not a Python question right? Or rather, it is not an
error specific to Python. It is an error related to a specific compiler,
and more specifically a non-standard implementation of Python.

You'd have much better luck following the advice of the author of PythonD
and and taking this question to [ news:comp.os.msdos.djgpp ].

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Aug 8 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Fabio Lima | last post by:
Can anyone tell me where to find tutorials on how to compile programs in dll format in DJGPP compiler. Im a new programmer who needs to build some dll's :-)
3
by: Przemys³aw Dmochowski | last post by:
Hey. The topic similar as above. -- pozdrawiam / best regards B.a.z.i.c * a.t * b.a.z.i.c * d.o.t * p.l
14
by: MJL | last post by:
I am working on a set of functions that involve dynamic memory allocation. I started working with gcc and then moved to Pacific C. The reason was that my only access to gcc was through an ssh...
3
by: John Savage | last post by:
I've very new to python, and am currently toying with pythonD. Could someone please explain the rationale behind python designers' thinking in deciding the function "range(1,12)" should return the...
1
by: John Savage | last post by:
I'm finding that many times when I inadvertently code an endless loop in pythonD code, on MSDOS, execution cannot be interrupted by ctrl-C and I am forced to reboot and this is rapidly loses its...
3
by: caddit | last post by:
Hello. There has been some confusion as to the current version of the python programming language available for DOS. This is partially due to incorrect information kept on python.org, that...
10
by: Tomás Ó hÉilidhe | last post by:
I'd post this on a gcc newsgroup but I'd be more productive talking to the wall. Anyway, let's say someone throws some source code at you for a particular program and says, "Just compile it, it...
1
by: Over | last post by:
Hi it's possibile using the Pdcurses with Djgpp There are examples of code? Thank you Hello
4
by: Ruud | last post by:
Hallo Nate, I had another like at the DJGPP site and, although the survey was still there, I could access the rest of the pages as well. I installed DJGPP and RHIDE as good as I could but things...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.