public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Error building 4.0.1-RC2
@ 2005-06-20  5:46 Mark Williams (MWP)
  2005-06-20  5:50 ` Eric Christopher
  0 siblings, 1 reply; 14+ messages in thread
From: Mark Williams (MWP) @ 2005-06-20  5:46 UTC (permalink / raw)
  To: gcc; +Cc: echristo

>On Mon, 2005-06-20 at 15:02 +0930, Mark Williams (MWP) wrote:
>> Thought i should report this...
>> 
>> Building 4.0.1 RC2, i get this error:
>> 
>> make[1]: Leaving directory `/data/backup/linux/gcc/gcc-4.0.1-20050616/intl'
>> make[1]: Entering directory
>> `/data/backup/linux/gcc/gcc-4.0.1-20050616/build-i686-pc-linux-gnu/libiberty'
>> make[1]: *** No rule to make target `../include/ansidecl.h', needed by
>> `regex.o'.  Stop.
>> make[1]: Leaving directory
>> `/data/backup/linux/gcc/gcc-4.0.1-20050616/build-i686-pc-linux-gnu/libiberty'
>> make: *** [all-build-libiberty] Error 2
>> 
>> Anything else you guys need to know?
>
>Configure command? I'll assume the host was i686-pc-linux-gnu.
>
>In this case I'll bet you built in the source directory?

Yes i did... i always do and have never had a problem doing so before.
I will try building in a different directory though and report back.

Configure was:
./configure --prefix=/usr --enable-languages="c,c++"

Compiling with GCC 4.0.0, latest version GNU make.

BTW, can you CC to me please, im not on the list.

Thanks.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error building 4.0.1-RC2
  2005-06-20  5:46 Error building 4.0.1-RC2 Mark Williams (MWP)
@ 2005-06-20  5:50 ` Eric Christopher
  2005-06-20  6:12   ` Mark Williams (MWP)
  0 siblings, 1 reply; 14+ messages in thread
From: Eric Christopher @ 2005-06-20  5:50 UTC (permalink / raw)
  To: Mark Williams (MWP); +Cc: gcc


> 
> Yes i did... i always do and have never had a problem doing so before.
> I will try building in a different directory though and report back.

http://gcc.gnu.org/install/configure.html

To be honest I'm always surprised when it works at all.

-eric

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error building 4.0.1-RC2
  2005-06-20  5:50 ` Eric Christopher
@ 2005-06-20  6:12   ` Mark Williams (MWP)
  2005-06-20 10:56     ` Joseph S. Myers
  0 siblings, 1 reply; 14+ messages in thread
From: Mark Williams (MWP) @ 2005-06-20  6:12 UTC (permalink / raw)
  To: Eric Christopher; +Cc: gcc

> 
> > 
> > Yes i did... i always do and have never had a problem doing so before.
> > I will try building in a different directory though and report back.
> 
> http://gcc.gnu.org/install/configure.html
> 
> To be honest I'm always surprised when it works at all.

Ok, that fixed it, thanks.

Maybe a warning should be included in the configure script that is shown when
poeple do run configure from the gcc source root?

Thanks again,
 Mark W.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error building 4.0.1-RC2
  2005-06-20  6:12   ` Mark Williams (MWP)
@ 2005-06-20 10:56     ` Joseph S. Myers
  2005-06-21 22:17       ` Eric Christopher
  0 siblings, 1 reply; 14+ messages in thread
From: Joseph S. Myers @ 2005-06-20 10:56 UTC (permalink / raw)
  To: Mark Williams (MWP); +Cc: Eric Christopher, gcc, Mark Mitchell, DJ Delorie

On Mon, 20 Jun 2005, Mark Williams (MWP) wrote:

> > 
> > > 
> > > Yes i did... i always do and have never had a problem doing so before.
> > > I will try building in a different directory though and report back.
> > 
> > http://gcc.gnu.org/install/configure.html
> > 
> > To be honest I'm always surprised when it works at all.
> 
> Ok, that fixed it, thanks.
> 
> Maybe a warning should be included in the configure script that is shown when
> poeple do run configure from the gcc source root?

Bug 17383 is one of the more frequently reported issues with GCC 4.0.0, 
but building in the source directory is not considered release-critical.  
If someone wishes to submit a patch for that bug for 4.0 branch, I expect 
it could be considered for 4.0.2 but might be too risky for 4.0.1 now.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error building 4.0.1-RC2
  2005-06-20 10:56     ` Joseph S. Myers
@ 2005-06-21 22:17       ` Eric Christopher
  2005-06-21 22:24         ` DJ Delorie
  2005-06-22 14:06         ` Mark Mitchell
  0 siblings, 2 replies; 14+ messages in thread
From: Eric Christopher @ 2005-06-21 22:17 UTC (permalink / raw)
  To: Joseph S. Myers; +Cc: Mark Williams (MWP), gcc, Mark Mitchell, DJ Delorie

>  
> If someone wishes to submit a patch for that bug for 4.0 branch, I expect 
> it could be considered for 4.0.2 but might be too risky for 4.0.1 now.
> 

Like so? Tested by building outside the source directory and attempting
to build in the source directory. Did we want something like this for
mainline too?

-eric

2005-06-21  Eric Christopher  <echristo@redhat.com>

	* configure.in: Reject building in the source directory.

Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/configure.in,v
retrieving revision 1.341.2.4
diff -u -p -w -r1.341.2.4 configure.in
--- configure.in	6 Jun 2005 06:59:11 -0000	1.341.2.4
+++ configure.in	21 Jun 2005 22:15:20 -0000
@@ -70,6 +70,11 @@ progname=$0
 # if PWD already has a value, it is probably wrong.
 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
 
+# If we're building in the source directory, error.
+if test "${srcdir}" = "." ; then
+  AC_MSG_ERROR([Building in the source directory is not supported. See
http://gcc.gnu.org/install/configure.html for more details.])
+fi
+
 # Export original configure arguments for use by sub-configures.  These
 # will be expanded by make, so quote '$'.
 tmp="$progname $@"


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error building 4.0.1-RC2
  2005-06-21 22:17       ` Eric Christopher
@ 2005-06-21 22:24         ` DJ Delorie
  2005-06-21 22:31           ` Eric Christopher
  2005-06-22 14:06         ` Mark Mitchell
  1 sibling, 1 reply; 14+ messages in thread
From: DJ Delorie @ 2005-06-21 22:24 UTC (permalink / raw)
  To: echristo; +Cc: gcc


> Like so? Tested by building outside the source directory and
> attempting to build in the source directory. Did we want something
> like this for mainline too?

We've historically put a lot of effort into making "./configure" work,
so I'd hate to snub anyone willing to work on it.  Perhaps an "at the
moment" in the message might be good.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error building 4.0.1-RC2
  2005-06-21 22:24         ` DJ Delorie
@ 2005-06-21 22:31           ` Eric Christopher
  2005-06-21 22:44             ` Eric Christopher
  0 siblings, 1 reply; 14+ messages in thread
From: Eric Christopher @ 2005-06-21 22:31 UTC (permalink / raw)
  To: DJ Delorie; +Cc: gcc

On Tue, 2005-06-21 at 18:24 -0400, DJ Delorie wrote:
> > Like so? Tested by building outside the source directory and
> > attempting to build in the source directory. Did we want something
> > like this for mainline too?
> 
> We've historically put a lot of effort into making "./configure" work,
> so I'd hate to snub anyone willing to work on it.  Perhaps an "at the
> moment" in the message might be good.

Apparently it works in mainline right now. Maybe adjusting the release
notes for 4.0 to say that building in the source directory doesn't work
for the release at the moment?

-eric

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error building 4.0.1-RC2
  2005-06-21 22:31           ` Eric Christopher
@ 2005-06-21 22:44             ` Eric Christopher
  2005-06-21 22:46               ` DJ Delorie
  0 siblings, 1 reply; 14+ messages in thread
From: Eric Christopher @ 2005-06-21 22:44 UTC (permalink / raw)
  To: DJ Delorie; +Cc: gcc

On Tue, 2005-06-21 at 15:31 -0700, Eric Christopher wrote:
> On Tue, 2005-06-21 at 18:24 -0400, DJ Delorie wrote:
> > > Like so? Tested by building outside the source directory and
> > > attempting to build in the source directory. Did we want something
> > > like this for mainline too?
> > 
> > We've historically put a lot of effort into making "./configure" work,
> > so I'd hate to snub anyone willing to work on it.  Perhaps an "at the
> > moment" in the message might be good.

I also changed the error message to read:

"... is not supported in this release"

Which might work and we can, of course, remove the error message if that
ever changes :)

OK?

-eric

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error building 4.0.1-RC2
  2005-06-21 22:44             ` Eric Christopher
@ 2005-06-21 22:46               ` DJ Delorie
  0 siblings, 0 replies; 14+ messages in thread
From: DJ Delorie @ 2005-06-21 22:46 UTC (permalink / raw)
  To: echristo; +Cc: gcc


> I also changed the error message to read:
> 
> "... is not supported in this release"
> 
> Which might work and we can, of course, remove the error message if that
> ever changes :)
> 
> OK?

I have no objections, not that I'm the release manager.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error building 4.0.1-RC2
  2005-06-21 22:17       ` Eric Christopher
  2005-06-21 22:24         ` DJ Delorie
@ 2005-06-22 14:06         ` Mark Mitchell
  2005-06-23  1:09           ` Eric Christopher
  1 sibling, 1 reply; 14+ messages in thread
From: Mark Mitchell @ 2005-06-22 14:06 UTC (permalink / raw)
  To: Eric Christopher; +Cc: Joseph S. Myers, Mark Williams (MWP), gcc, DJ Delorie

Eric Christopher wrote:
>> 
>>If someone wishes to submit a patch for that bug for 4.0 branch, I expect 
>>it could be considered for 4.0.2 but might be too risky for 4.0.1 now.
>>
> 
> 
> Like so? Tested by building outside the source directory and attempting
> to build in the source directory. Did we want something like this for
> mainline too?

This is OK, even for 4.0.1.  It's also OK for mainline, and for 4.0.2, 
if you don't get it checked in before 4.0.1.

Thanks,

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error building 4.0.1-RC2
  2005-06-22 14:06         ` Mark Mitchell
@ 2005-06-23  1:09           ` Eric Christopher
  0 siblings, 0 replies; 14+ messages in thread
From: Eric Christopher @ 2005-06-23  1:09 UTC (permalink / raw)
  To: Mark Mitchell; +Cc: Joseph S. Myers, Mark Williams (MWP), gcc, DJ Delorie

On Wed, 2005-06-22 at 07:06 -0700, Mark Mitchell wrote:
> Eric Christopher wrote:
> >> 
> >>If someone wishes to submit a patch for that bug for 4.0 branch, I expect 
> >>it could be considered for 4.0.2 but might be too risky for 4.0.1 now.
> >>
> > 
> > 
> > Like so? Tested by building outside the source directory and attempting
> > to build in the source directory. Did we want something like this for
> > mainline too?
> 
> This is OK, even for 4.0.1.  It's also OK for mainline, and for 4.0.2, 
> if you don't get it checked in before 4.0.1.

Checked it in today. Apparently mainline does this correctly right now,
though unless we plan on supporting it in the future an AC_MSG_WARN
might be good. "This may not work"

-eric

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error building 4.0.1-RC2
  2005-06-20  5:32 Mark Williams (MWP)
  2005-06-20  5:41 ` Eric Christopher
@ 2005-06-20  6:30 ` Ranjit Mathew
  1 sibling, 0 replies; 14+ messages in thread
From: Ranjit Mathew @ 2005-06-20  6:30 UTC (permalink / raw)
  To: Mark Williams (MWP); +Cc: GCC

Mark Williams (MWP) wrote:
> Thought i should report this...
> 
> Building 4.0.1 RC2, i get this error:
> 
> make[1]: Leaving directory `/data/backup/linux/gcc/gcc-4.0.1-20050616/intl'

Looks like you're trying to build GCC in the source
folder itself - this is not supported (yet).

Try creating a separate build folder totally outside
of the expanded source tree and run configure
and then make there.

HTH,
Ranjit.

-- 
Ranjit Mathew      Email: rmathew AT gmail DOT com

Bangalore, INDIA.    Web: http://ranjitmathew.hostingzero.com/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Error building 4.0.1-RC2
  2005-06-20  5:32 Mark Williams (MWP)
@ 2005-06-20  5:41 ` Eric Christopher
  2005-06-20  6:30 ` Ranjit Mathew
  1 sibling, 0 replies; 14+ messages in thread
From: Eric Christopher @ 2005-06-20  5:41 UTC (permalink / raw)
  To: Mark Williams (MWP); +Cc: gcc

On Mon, 2005-06-20 at 15:02 +0930, Mark Williams (MWP) wrote:
> Thought i should report this...
> 
> Building 4.0.1 RC2, i get this error:
> 
> make[1]: Leaving directory `/data/backup/linux/gcc/gcc-4.0.1-20050616/intl'
> make[1]: Entering directory
> `/data/backup/linux/gcc/gcc-4.0.1-20050616/build-i686-pc-linux-gnu/libiberty'
> make[1]: *** No rule to make target `../include/ansidecl.h', needed by `regex.o'.  Stop.
> make[1]: Leaving directory
> `/data/backup/linux/gcc/gcc-4.0.1-20050616/build-i686-pc-linux-gnu/libiberty'
> make: *** [all-build-libiberty] Error 2
> 
> Anything else you guys need to know?

Configure command? I'll assume the host was i686-pc-linux-gnu.

In this case I'll bet you built in the source directory?

-eric

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Error building 4.0.1-RC2
@ 2005-06-20  5:32 Mark Williams (MWP)
  2005-06-20  5:41 ` Eric Christopher
  2005-06-20  6:30 ` Ranjit Mathew
  0 siblings, 2 replies; 14+ messages in thread
From: Mark Williams (MWP) @ 2005-06-20  5:32 UTC (permalink / raw)
  To: gcc

Thought i should report this...

Building 4.0.1 RC2, i get this error:

make[1]: Leaving directory `/data/backup/linux/gcc/gcc-4.0.1-20050616/intl'
make[1]: Entering directory
`/data/backup/linux/gcc/gcc-4.0.1-20050616/build-i686-pc-linux-gnu/libiberty'
make[1]: *** No rule to make target `../include/ansidecl.h', needed by `regex.o'.  Stop.
make[1]: Leaving directory
`/data/backup/linux/gcc/gcc-4.0.1-20050616/build-i686-pc-linux-gnu/libiberty'
make: *** [all-build-libiberty] Error 2

Anything else you guys need to know?

Mark W.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2005-06-23  1:09 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-20  5:46 Error building 4.0.1-RC2 Mark Williams (MWP)
2005-06-20  5:50 ` Eric Christopher
2005-06-20  6:12   ` Mark Williams (MWP)
2005-06-20 10:56     ` Joseph S. Myers
2005-06-21 22:17       ` Eric Christopher
2005-06-21 22:24         ` DJ Delorie
2005-06-21 22:31           ` Eric Christopher
2005-06-21 22:44             ` Eric Christopher
2005-06-21 22:46               ` DJ Delorie
2005-06-22 14:06         ` Mark Mitchell
2005-06-23  1:09           ` Eric Christopher
  -- strict thread matches above, loose matches on Subject: below --
2005-06-20  5:32 Mark Williams (MWP)
2005-06-20  5:41 ` Eric Christopher
2005-06-20  6:30 ` Ranjit Mathew

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).