Compiling help

All development related issues welcome

Moderator: Moderator Team

Post Reply
GreyGhost
Posts: 295
Joined: Mon Jun 13, 2005 12:16 pm

Compiling help

Post by GreyGhost »

Please help i am using,
MinGW-3.1.0-1
nasm-0.98-win32
gcc-core-3.3.3-20040217-1.tar
gcc-g++-3.3.3-20040217-1.tar
gcc-objc-3.3.3-20040217-1.tar
w32api-2.5.tar
binutils-2.15.94-20050118-1.tar
mingw32-make-3.80.0-3
i am on XP
Dl from SVN.
I get
[ external image ]
There was a whole lot of stuff way before this but it all disappeared couldnt get a sreeni(read something like, Is not used....)

counting_pine
Posts: 237
Joined: Fri Nov 26, 2004 10:44 pm
Location: Fallowfield

Post by counting_pine »

Sorry, I don't know anything about compiling, but:
If the information has simply scrolled out of the window, you can find it by scrolling up. Otherwise, maybe you could try increasing the screen buffer size by right-clicking the title bar and clicking 'properties'.

By the way, if you press Alt+PrintScreen, it only copies the active window to the clipboard, so you don't need to crop it in Paint.

Meklort
Posts: 175
Joined: Sat Mar 05, 2005 11:53 pm
Location: Colorado
Contact:

Post by Meklort »

form the screen that you pasted I dont see any errors, can you try to output the text to a txt document to see the full text (the part with the actual error). try somthing like make > log.txt

GvG
Posts: 499
Joined: Mon Nov 22, 2004 10:50 pm
Location: The Netherlands

Post by GvG »

meklort wrote:form the screen that you pasted I dont see any errors
This part of ReactOS is compiled with the -Werror switch, which means "treat warnings as errors". So the warnings you see on the screenprint are what causes the build to stop.
GreyGhost wrote:Please help i am using,
gcc-core-3.3.3-20040217-1.tar
Problems with compiling on GCC 3.3.3 have been fixed in r15883. Please update to latest SVN and try again

GreyGhost
Posts: 295
Joined: Mon Jun 13, 2005 12:16 pm

Post by GreyGhost »

Heres the log,
How do i put up an attachment?
It want display the whole thing if i paste it as a reply.

Detecting compiler pre-compiled header support...not detected
Is this a prob?
Yeah i have it updated to the latest SVN

GvG
Posts: 499
Joined: Mon Nov 22, 2004 10:50 pm
Location: The Netherlands

Post by GvG »

GreyGhost wrote:Detecting compiler pre-compiled header support...not detected
Is this a prob?
No, that's no problem. It just means building will take a little bit longer.
At what revision are you now ("svn info" will show that)?

GreyGhost
Posts: 295
Joined: Mon Jun 13, 2005 12:16 pm

Post by GreyGhost »

It reads revision 15918
The log file dosent show any errors. Just stuff like [cc]...... [mk].....etc
i will try again any way.How do ya switch off the Werror?

This part of ReactOS is compiled with the -Werror switch, which means "treat warnings as errors". So the warnings you see on the screenprint are what causes the build to stop.

GreyGhost
Posts: 295
Joined: Mon Jun 13, 2005 12:16 pm

Post by GreyGhost »

IT COMPILED!!!!!
Forget the above post.It compiled.Thanks everyone.
It seems(I think) the prev. svn relese had some prob. with make clean it used to give me a error at the last line.This time with the above svn release it gave me an error at the first line but it completed compiling.I've now got some more Qs.

jro
Posts: 18
Joined: Tue Jul 05, 2005 4:40 am

Post by jro »

Hmm. I get this using my (dev-cpp) mingw

Code: Select all

C:\Work\reactOS\src>make all
[CC] toolswrcdumpres.c
gcc.exe: toolswrcdumpres.c: No such file or directory
gcc.exe: no input files
make: *** [obj-i386\tools\wrc\dumpres.o] Error 1

C:\Work\reactOS\src>pause
Press any key to continue . . .
Using rosBE and mingw32-make I get

Code: Select all

C:\Work\reactOS\src>mingw32-make
[CC] appsutilsnetarparp.c
apps\utils\net\arp\arp.c: In function `Addhost':
apps\utils\net\arp\arp.c:201: warning: 'pIpAddrTable' might be used uninitialize
d in this function
apps\utils\net\arp\arp.c:202: warning: 'dwIpAddr' might be used uninitialized in
 this function
mingw32-make: *** [obj-i386\apps\utils\net\arp\arp.o] Error 1

C:\Work\reactOS\src>pause
Press any key to continue . . . 
I'd like to get a Dev-Cpp project of ReactOS since that's my fav editor. I see in \tools\rbuild\ we have files that can do that? I compiled rbuild but it doesn't seem to work when I put it in the "trunk"..

oiaohm
Posts: 1322
Joined: Sun Dec 12, 2004 8:40 am

The strike of dev-cpp

Post by oiaohm »

I love dev-cpp for playing mind games with people.

Its Make program has a nice problem. / That should be a directory split in windows or linux is classed as a invald char and removed it. Basicly will not build reactos. If I recall correct swap the make file will fix the problem.

rosBE error I have had before I know it.

I think its -Wall flag (don't execpt this to be right some else answer yes or no).

Gcc has a flag that turns Warning into errors and newer the Gcc the more Warning it creates and the more code faults it finds. Yes these are minor code defects that should be removed. But removing the Warning to Error flag will let this build.

jro
Posts: 18
Joined: Tue Jul 05, 2005 4:40 am

Post by jro »

Hmm I'm not sure about what you said about Dev-Cpp... I update it's mingw myself and simply use it as an IDE. That or MingwStudio. I'd like to have projects for either of those sometime. It can make life easier for those having trouble with the makefile.

I think you're right! I haven't tried it but looking at the output again it indeed seems those warnings were treated as errors. Thank you, I'll try to take that out of the makefile, or fix the warnings.

UPDATE :
Seems to be compiling (using rosBE). So far so good. All I did was update sources from SVN and made these changes

Code: Select all

In the file
\apps\utils\net\arp\arp.c 

/* 
 * Takes an internet address, a MAC address and an optional interface
 * address as arguments and checks their validity.
 * Fill out an MIB_IPNETROW structure and insert the data into the 
 * ARP cache as a static entry.
 *
 */
INT Addhost(PTCHAR pszInetAddr, PTCHAR pszEthAddr, PTCHAR pszIfAddr)
{
    PMIB_IPNETROW pAddHost;
    PMIB_IPADDRTABLE pIpAddrTable =0; // fixed warning 
    DWORD dwIpAddr =0;                         // fixed warning
    DWORD dwSize = 0;

....
keeping my fingers crossed

jro
Posts: 18
Joined: Tue Jul 05, 2005 4:40 am

Post by jro »

It worked!

I have a Dev-Cpp project generated from the rbuild.exe in the /tools directory.. but it was hard to make since there's a bug in rbuild source (it chops off the first two chars of the path when "checking dependancies" ! ). That little bug makes it tedious to do..

Maybe I'll try to fix that bug, but I can't tell where it is yet. Then I might do a how-to for people wanting to make Dev-Cpp projects...

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest