[Bug other/48445] New: Release does not generate fixincludes directory needed by Makefile

2011-04-04 Thread mancilla at cse dot unsw.edu.au
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48445

   Summary: Release does not generate fixincludes directory needed
by Makefile
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: blocker
  Priority: P3
 Component: other
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: manci...@cse.unsw.edu.au


Created attachment 23877
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23877
The configure that bombed

I did a build in a clean directory from svn revision number 171966,
trying to build c,c++,go.  The build bombed with an attempt to call
./fixincludes, which did not exist, because the fixincludes directory
did not exist in the build directory (it is in the svn directory).


[Bug other/48445] Release does not generate fixincludes directory needed by Makefile

2011-04-04 Thread mancilla at cse dot unsw.edu.au
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48445

--- Comment #2 from mancilla at cse dot unsw.edu.au 2011-04-05 03:44:59 UTC ---
No, I'm building in a separate build directory.
Below is my build sequence.


#!/bin/sh

echo Updating the svn repository
(cd gcc-svn; svn update)

echo 
rm -rf gcc-build-latest
mkdir gcc-build-latest
cd gcc-build-latest

echo Configuring gcc-latest
../gcc-svn/configure --prefix=/home/mancilla/current/soft/install-latest
--with-gmp=/home/mancilla/current/soft/install
--with-mpfr=/home/mancilla/current/soft/install
--with-mpc=/home/mancilla/current/soft/install --disable-multilib
--enable-languages=c,c++,go

echo Building gcc-latest
make



Regards,
Blanca

On Tue, Apr 05, 2011 at 03:38:19AM +, pinskia at gcc dot gnu.org wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48445
> 
> --- Comment #1 from Andrew Pinski  2011-04-05 
> 03:38:14 UTC ---
> Are you building inside the source directly?  If so that is not really
> supported.
> 
> -- 
> Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
> --- You are receiving this mail because: ---
> You are on the CC list for the bug.
> You reported the bug.


[Bug other/48445] Release does not generate fixincludes directory needed by Makefile

2011-04-04 Thread mancilla at cse dot unsw.edu.au
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48445

mancilla at cse dot unsw.edu.au changed:

   What|Removed |Added

  Component|bootstrap   |other
   Severity|normal  |blocker

--- Comment #4 from mancilla at cse dot unsw.edu.au 2011-04-05 04:32:36 UTC ---
I did as suggested and it gave the same error:

make[3]: Leaving directory
`/home/mancilla/current/soft/src/gcc-build-latest/gcc'
mkdir -p -- x86_64-unknown-linux-gnu/libgcc
Checking multilib configuration for libgcc...
Configuring stage 1 in x86_64-unknown-linux-gnu/libgcc
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for x86_64-unknown-linux-gnu-ar... ar
checking for x86_64-unknown-linux-gnu-lipo... lipo
checking for x86_64-unknown-linux-gnu-nm...
/home/mancilla/current/soft/src/gcc-build-latest/./gcc/nm
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for x86_64-unknown-linux-gnu-strip... strip
checking whether ln -s works... yes
checking for x86_64-unknown-linux-gnu-gcc...
/home/mancilla/current/soft/src/gcc-build-latest/./gcc/xgcc
-B/home/mancilla/current/soft/src/gcc-build-latest/./gcc/
-B/home/mancilla/current/soft/install-latest/x86_64-unknown-linux-gnu/bin/
-B/home/mancilla/current/soft/install-latest/x86_64-unknown-linux-gnu/lib/
-isystem
/home/mancilla/current/soft/install-latest/x86_64-unknown-linux-gnu/include
-isystem
/home/mancilla/current/soft/install-latest/x86_64-unknown-linux-gnu/sys-include 
checking for suffix of object files... configure: error: in
`/home/mancilla/current/soft/src/gcc-build-latest/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/home/mancilla/current/soft/src/gcc-build-latest'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/mancilla/current/soft/src/gcc-build-latest'
make: *** [all] Error 2
Installing gcc-latest
make[1]: Entering directory `/home/mancilla/current/soft/src/gcc-build-latest'
/bin/bash
/home/mancilla/current/soft/src/gcc-build-latest/../gcc-svn/mkinstalldirs
/home/mancilla/current/soft/install-latest
/home/mancilla/current/soft/install-latest
/bin/bash: line 3: cd: ./fixincludes: No such file or directory
make[1]: *** [install-fixincludes] Error 1
make[1]: Leaving directory `/home/mancilla/current/soft/src/gcc-build-latest'
make: *** [install] Error 2


[Bug other/48445] Release does not generate fixincludes directory needed by Makefile

2011-04-05 Thread mancilla at cse dot unsw.edu.au
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48445

--- Comment #9 from Blanca Mancilla  
2011-04-06 00:50:09 UTC ---
Yeap! The problem was the libraries not found and the make install assumming
make run without error. I had a conflict between the ubuntu c++ and 4.7 in some
other program and while testing, commented the library path line in my bashrc. 
Also, should change the script to make && make install, instead of having them
in as separate commands to avoid the misleading messages.
Thanks for the comments.


[Bug c++/48879] New: Compilation cannot find file asm/errno.h

2011-05-04 Thread mancilla at cse dot unsw.edu.au
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48879

   Summary: Compilation cannot find file asm/errno.h
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: manci...@cse.unsw.edu.au


Hi,
I recently upgraded from Ubuntu 10.10 to 11.04, and upon the first attempted
compilation of 4.7.0, it crashed complaining of:

--
In file included from /usr/include/bits/errno.h:25:0,
 from /usr/include/errno.h:36,
 from
/home/mancilla/current/soft/src/gcc-build-latest/../gcc-svn/libgcc/../gcc/tsystem.h:93,
 from
/home/mancilla/current/soft/src/gcc-build-latest/../gcc-svn/libgcc/../gcc/libgcc2.c:29:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or
directory
compilation terminated.
ake[3]: *** [_muldi3.o] Error 1
make[3]: Leaving directory
`/home/mancilla/current/soft/src/gcc-build-latest/x86_64-unknown-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/home/mancilla/current/soft/src/gcc-build-latest'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/mancilla/current/soft/src/gcc-build-latest'
make: *** [all] Error 2

---

After much browsing mailing lists and bug reports everywhere, it seems that the
problem lies on the linux headers (?). The directory in question used to be
/usr/include/linux and in my case it is now /usr/include/x86_64-linux-gnu.
After following sugestions, I tried setting CPPFLAGS, CFLAGS and CXXFLAGS to
-I/usr/include/x86_64-linux-gnu and then "-isystem
/usr/include/x86_64-linux-gnu" when calling configure and the result was: at
first CPPFLAGS was ignored and the same error accurred (setting CPPFLAGS). Then
stage 1 completed and the same error occurred at the begining of stage 2
(setting just CFLAGS). Setting both CFLAGS nad CXXFLAGS got the compilation
further, but still a similar error. In this last attempt, it did not make a
difference whether
it was -I or -isystem:



In file included from /usr/include/bits/errno.h:25:0,
 from /usr/include/errno.h:36,
 from
/home/mancilla/current/soft/src/gcc-build-latest/../gcc-svn/libiberty/fnmatch.c:46:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or
directory
compilation terminated.
make[3]: *** [fnmatch.o] Error 1
make[3]: Leaving directory
`/home/mancilla/current/soft/src/gcc-build-latest/libiberty'
make[2]: *** [all-stage2-libiberty] Error 2
make[2]: Leaving directory `/home/mancilla/current/soft/src/gcc-build-latest'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/home/mancilla/current/soft/src/gcc-build-latest'
make: *** [all] Error 2

-

I'm not too sure it this is the right place for reporting this. But it seems
that the compilation needs to know where is errno.h. Please let me know if it
is necessary to attach the full log of the build.

Any advice would be greatfully appreciated. 

Regards,
Blanca


[Bug c++/48879] Compilation cannot find file asm/errno.h

2011-05-05 Thread mancilla at cse dot unsw.edu.au
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48879

--- Comment #1 from Blanca Mancilla  
2011-05-05 08:48:29 UTC ---
I succeeded in compiling by serring the following environment variables:

export C_INCLUDE_PATH=/usr/include/x86_64-linux-gnu
export CPLUS_INCLUDE_PATH=/usr/include/x86_64-linux-gnu

is this the right way?

Blanca

(In reply to comment #0)
> Hi,
> I recently upgraded from Ubuntu 10.10 to 11.04, and upon the first attempted
> compilation of 4.7.0, it crashed complaining of:
> 
> --
> In file included from /usr/include/bits/errno.h:25:0,
>  from /usr/include/errno.h:36,
>  from
> /home/mancilla/current/soft/src/gcc-build-latest/../gcc-svn/libgcc/../gcc/tsystem.h:93,
>  from
> /home/mancilla/current/soft/src/gcc-build-latest/../gcc-svn/libgcc/../gcc/libgcc2.c:29:
> /usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or
> directory
> compilation terminated.
> ake[3]: *** [_muldi3.o] Error 1
> make[3]: Leaving directory
> `/home/mancilla/current/soft/src/gcc-build-latest/x86_64-unknown-linux-gnu/libgcc'
> make[2]: *** [all-stage1-target-libgcc] Error 2
> make[2]: Leaving directory `/home/mancilla/current/soft/src/gcc-build-latest'
> make[1]: *** [stage1-bubble] Error 2
> make[1]: Leaving directory `/home/mancilla/current/soft/src/gcc-build-latest'
> make: *** [all] Error 2
> 
> ---
> 
> After much browsing mailing lists and bug reports everywhere, it seems that 
> the
> problem lies on the linux headers (?). The directory in question used to be
> /usr/include/linux and in my case it is now /usr/include/x86_64-linux-gnu.
> After following sugestions, I tried setting CPPFLAGS, CFLAGS and CXXFLAGS to
> -I/usr/include/x86_64-linux-gnu and then "-isystem
> /usr/include/x86_64-linux-gnu" when calling configure and the result was: at
> first CPPFLAGS was ignored and the same error accurred (setting CPPFLAGS). 
> Then
> stage 1 completed and the same error occurred at the begining of stage 2
> (setting just CFLAGS). Setting both CFLAGS nad CXXFLAGS got the compilation
> further, but still a similar error. In this last attempt, it did not make a
> difference whether
> it was -I or -isystem:
> 
> 
> 
> In file included from /usr/include/bits/errno.h:25:0,
>  from /usr/include/errno.h:36,
>  from
> /home/mancilla/current/soft/src/gcc-build-latest/../gcc-svn/libiberty/fnmatch.c:46:
> /usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or
> directory
> compilation terminated.
> make[3]: *** [fnmatch.o] Error 1
> make[3]: Leaving directory
> `/home/mancilla/current/soft/src/gcc-build-latest/libiberty'
> make[2]: *** [all-stage2-libiberty] Error 2
> make[2]: Leaving directory `/home/mancilla/current/soft/src/gcc-build-latest'
> make[1]: *** [stage2-bubble] Error 2
> make[1]: Leaving directory `/home/mancilla/current/soft/src/gcc-build-latest'
> make: *** [all] Error 2
> 
> -
> 
> I'm not too sure it this is the right place for reporting this. But it seems
> that the compilation needs to know where is errno.h. Please let me know if it
> is necessary to attach the full log of the build.
> 
> Any advice would be greatfully appreciated. 
> 
> Regards,
> Blanca


[Bug bootstrap/48879] Compilation cannot find file asm/errno.h

2011-05-05 Thread mancilla at cse dot unsw.edu.au
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48879

Blanca Mancilla  changed:

   What|Removed |Added

  Component|c++ |bootstrap

--- Comment #5 from Blanca Mancilla  
2011-05-05 22:09:28 UTC ---
(In reply to comment #2)
> Shouldn't this be Component=bootstrap not c++ ?

Yes, sorry.

> I assume the linux-libc-dev package is installed? That provides asm/errno.h

Yes that is installed.

> What compiler are you using to bootstrap? If it's the standard system compiler
> it should know to look in /usr/include/x86_64-linux-gnu, if not then it's a 
> bug
> in the Ubuntu gcc package

4.5.2, which came with the distribution.

> What is the output of "gcc -v -x c /dev/null -c" ?

Is is attached.

A bug in the Ubuntu gcc package confirms the fact that problems started after
the upgrade. Thanks for clearing things out.

Regards,
Blanca


[Bug c++/48879] Compilation cannot find file asm/errno.h

2011-05-05 Thread mancilla at cse dot unsw.edu.au
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48879

--- Comment #4 from Blanca Mancilla  
2011-05-05 22:05:53 UTC ---
Created attachment 24195
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24195
output of "gcc -v -x c /dev/null -c"