This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Anyone knows how to "undergrade" gcc ?? -- non expert user
- From: Brian Dessent <brian at dessent dot net>
- To: D'arito <espasapalau at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 31 Aug 2007 11:58:04 -0700
- Subject: Re: Anyone knows how to "undergrade" gcc ?? -- non expert user
- References: <12431910.post@talk.nabble.com>
- Reply-to: gcc-help at gcc dot gnu dot org
D'arito wrote:
> I have a fresh Ubuntu 7.04 Feisty installation which use by default 4.1.2
> Version. The main reason is that I cannot create "library.a" when using gcc
> 4.1.2.
I don't follow. There is no inherent reason why creating a static
archive (.a) file should matter between gcc versions. If you're saying
that your code is not compatible with gcc 4.x and won't compile, then
that's one thing, but the fact that it's a static library shouldn't
matter.
> However, my advisor pointed that I need to use 3.3 version, which
> works properly. So I decided to follow the official manual: build from a
> "gcc_temp_directory" (outside source code), however, it fails at the
> ./configure step. I'll appreciate any kind of help . I can post any log
> you'll need for guess whether my settings are wrong or my dependencies are
> not solved, etc...I'n not sure if this post should be placed here , but I
> have no way to solve my problem.
You're making this a lot harder than it needs to be. Your distro
already includes many packaged versions of gcc. Just install their
packages, e.g. "apt-get install gcc-3.3" and you're done. Compiling gcc
from source is not really the best thing for a beginner to spend time
worrying about.
To answer your specific question, you don't run "./configure" when
building in a separate dir. The path to configure is the relative
location of the source dir in relation to the build dir. In other
words, the configure script lives in the source dir, not the build dir.
Brian