LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 11: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, 01:07 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
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, 01: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, 01:22 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
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, 08:14 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,819

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
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, 04: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, 06:47 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,819

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
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, 07: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:14 PM
okok how about configuring the gcc Quiber SUSE / openSUSE 2 10-20-2010 02:09 PM
GCC configuring help PLEASE!!! Jagtek Linux - Newbie 11 04-03-2006 01:29 PM
error while configuring gcc-3.3.3 (pass1) alext_29 Linux From Scratch 4 09-29-2004 12:48 AM
Installing / configuring GCC ca9mbu Programming 0 11-21-2001 06:38 AM


All times are GMT -5. The time now is 03:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration