LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-03-2012, 10:26 AM   #1
lb_dbd
LQ Newbie
 
Registered: Apr 2012
Posts: 8

Rep: Reputation: Disabled
Configuring gcc


I am a newbie. I'm attempting to configure/compile gcc on a xp/i5 system. I have installed a binary distribution of gcc and it does compile correctly. gcc version 4.7 was downloaded to the directory- C:\gcc_4.7

I created the objdir and did 'cd objdir'. I executed the 'configure' script using:
c:\gcc_4.7\configure --build=m32 --hostm32 in a xp command window i get the following:

'c:\gcc_4.7\configure' is not recognized as an internal or external command,
operable program or batch file.

thanks.
 
Old 04-03-2012, 12:07 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
You're not going to be able to build gcc on Windows that easily. Why don't you take a look at MinGW or Cygwin?
 
Old 04-03-2012, 12:18 PM   #3
lb_dbd
LQ Newbie
 
Registered: Apr 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
I do have the binary version of gcc (MinGW) installed and was going to use this to compile version gcc_4.7 on a new machine. I did install
Cygwin on this system but I am not clear on how to use cygwin to compile gcc. Is there an online reference that I can follow?
My reference for now has been: http://gcc.gnu.org/install/configure.html page.
 
Old 04-03-2012, 12:22 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by lb_dbd View Post
I do have the binary version of gcc (MinGW) installed and was going to use this to compile version gcc_4.7 on a new machine. I did install
Cygwin on this system but I am not clear on how to use cygwin to compile gcc. Is there an online reference that I can follow?
My reference for now has been: http://gcc.gnu.org/install/configure.html page.
Cygwin gives you a linux-like environment, in which you can build and compile many linux programs like normal. Using the Cygwin package management system, you should be able to install gcc, and then possibly use that to build version 4.7 that you're interested in.

I've been able to successfully build many linux programs in Cygwin. Not all, but many.
 
Old 04-03-2012, 07:14 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
CygWin will "run" about 70% of linux programs on windows

MinGW (Msys/Mingw) will BUILD Microsoft Windows Executable *.exe programs and WINDOWS *.dll's
for about 70% of linux programs

use what is in the GnuWin32 project!!!!
and DevC++ ( with or without the included MinGW )
gcc 4.6 is part of Msys/MinGW

There is a big difference in the two .They do two DIFFERENT things .
 
Old 04-04-2012, 03:24 PM   #6
lb_dbd
LQ Newbie
 
Registered: Apr 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Solved. Build gcc 4.7.0 in the cygwin environment.
 
Old 04-04-2012, 05:47 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
good luck with 4.7 on cygwin
most software will need to be hacked to use 4.7 to build it.
And almost all will need a major rewrite to build using 4.7 in cygwin

have FUN . That is something you could not pay me enough to do .
i would drop down to the default version installed in cygwin
 
Old 04-05-2012, 06:56 AM   #8
lb_dbd
LQ Newbie
 
Registered: Apr 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
You are a smart guy. This has become a real pain and not worth the exercise and learning curve.
Thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configuring gcc from source spooodini Linux - Software 4 10-20-2010 04:14 PM
okok how about configuring the gcc Quiber SUSE / openSUSE 2 10-20-2010 01:09 PM
GCC configuring help PLEASE!!! Jagtek Linux - Newbie 11 04-03-2006 12:29 PM
error while configuring gcc-3.3.3 (pass1) alext_29 Linux From Scratch 4 09-28-2004 11:48 PM
Installing / configuring GCC ca9mbu Programming 0 11-21-2001 05:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration