[Bug 320366] Re: gcc crashes compiling linux include files

2009-06-17 Thread Colin Watson
No, in the gcc-4.4 case, the compiler is not crashing, merely emitting
correct diagnostic messages. The bit that was a bug in gcc-4.3 was this,
not the other errors:

  /usr/include/bits/socket.h:249: confused by earlier errors, bailing out
  Preprocessed source stored into /tmp/ccICeSlf.out file, please attach this to 
your bugreport.

You should generally #include sys/socket.h rather than
linux/socket.h.

** Changed in: gcc-4.4 (Ubuntu)
   Status: New = Invalid

-- 
gcc crashes compiling linux include files
https://bugs.launchpad.net/bugs/320366
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 320366] Re: gcc crashes compiling linux include files

2009-06-17 Thread yope
Correct. according to the output seen in the post about gcc-4.4.0 above, the 
bug seems fixed.
About the fact that one should include sys/socket.h instead of linux/socket.h, 
that's also correct of course, but not the point of the discussion (and the bug 
report). 
The point is that gcc-4.3 crashes instead of producing the above error 
messages, and _that_ seems to be fixed in gcc-4.4.0. Nice!
I agree with both status changes. Thanks.

-- 
gcc crashes compiling linux include files
https://bugs.launchpad.net/bugs/320366
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 320366] Re: gcc crashes compiling linux include files

2009-06-14 Thread A.G. Nienhuis
Same with gcc (Ubuntu 4.4.0-6ubuntu2) 4.4.0

-- 
gcc crashes compiling linux include files
https://bugs.launchpad.net/bugs/320366
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 320366] Re: gcc crashes compiling linux include files

2009-06-08 Thread Martin Pitt
** Package changed: apport (Ubuntu) = ubuntu

-- 
gcc crashes compiling linux include files
https://bugs.launchpad.net/bugs/320366
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 320366] Re: gcc crashes compiling linux include files

2009-06-02 Thread A.G. Nienhuis
The exact same error occurs on karmic with gcc 4.4.0

$ gcc --version
gcc (Ubuntu 4.4.0-5ubuntu1) 4.4.0

$ gcc bug.c -O3
In file included from /usr/include/linux/socket.h:23,
 from bug.c:1:
/usr/include/linux/uio.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘iov_length’
/usr/include/linux/uio.h:47: error: expected declaration specifiers or ‘...’ 
before ‘size_t’
In file included from /usr/include/sys/uio.h:29,
 from /usr/include/sys/socket.h:28,
 from /usr/include/net/if.h:27,
 from bug.c:2:
/usr/include/bits/uio.h:45: error: redefinition of ‘struct iovec’
In file included from /usr/include/sys/socket.h:40,
 from /usr/include/net/if.h:27,
 from bug.c:2:
/usr/include/bits/socket.h:163: error: redefinition of ‘struct sockaddr’
/usr/include/bits/socket.h:176: error: redefinition of ‘struct 
__kernel_sockaddr_storage’
/usr/include/bits/socket.h:186: error: expected identifier before numeric 
constant
/usr/include/bits/socket.h:234: error: redefinition of ‘struct msghdr’
/usr/include/bits/socket.h:252: error: redefinition of ‘struct cmsghdr’
/usr/include/bits/socket.h:281: error: conflicting types for ‘__cmsg_nxthdr’
/usr/include/linux/socket.h:123: note: previous definition of ‘__cmsg_nxthdr’ 
was here
/usr/include/bits/socket.h:310: error: expected identifier before numeric 
constant
/usr/include/bits/socket.h:389: error: redefinition of ‘struct linger’


** Also affects: gcc-defaults (Ubuntu)
   Importance: Undecided
   Status: New

** Package changed: gcc-defaults (Ubuntu) = gcc-4.4 (Ubuntu)

-- 
gcc crashes compiling linux include files
https://bugs.launchpad.net/bugs/320366
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 320366] Re: gcc crashes compiling linux include files

2009-03-24 Thread Matthias Klose
fixed in jaunty


** Changed in: gcc-4.3 (Ubuntu)
   Status: Confirmed = Fix Released

-- 
gcc crashes compiling linux include files
https://bugs.launchpad.net/bugs/320366
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 320366] Re: gcc crashes compiling linux include files

2009-03-05 Thread Martin Pitt
Ah, apparently gcc encountered an internal compiler error and tried to
create a crash report. It seems you changed the permissions of
/var/crash/ to not be world-writable any more? it should be

  drwxrwxrwt 2 root root 4096 2009-03-05 11:18 /var/crash/

Please fix it with sudo chmod 1777 /var/crash/

** Changed in: apport (Ubuntu)
   Status: New = Invalid

-- 
gcc crashes compiling linux include files
https://bugs.launchpad.net/bugs/320366
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 320366] Re: gcc crashes compiling linux include files

2009-03-05 Thread yope
The permissions in /var/crash are not the problem (they are wrong, ok, 
nevermind that), please ignore the error message of apport.
The real problem here is the fact that GCC crashes (it terminates with a 
segfault).
GCC should not crash.

-- 
gcc crashes compiling linux include files
https://bugs.launchpad.net/bugs/320366
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 320366] Re: gcc crashes compiling linux include files

2009-02-21 Thread Dave Gilbert
Trivially repeatable on intrepid (64-bit as well) - does it with -O2 or
-O3 but not -O1 or with no -O

** Changed in: gcc-4.3 (Ubuntu)
   Status: New = Confirmed

-- 
gcc crashes compiling linux include files
https://bugs.launchpad.net/bugs/320366
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 320366] Re: gcc crashes compiling linux include files

2009-02-10 Thread Matthias Klose
** Also affects: apport (Ubuntu)
   Importance: Undecided
   Status: New

-- 
gcc crashes compiling linux include files
https://bugs.launchpad.net/bugs/320366
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 320366] Re: gcc crashes compiling linux include files

2009-01-23 Thread yope

** Attachment added: The preprocessed source file
   http://launchpadlibrarian.net/21556756/ccICeSlf.out

-- 
gcc crashes compiling linux include files
https://bugs.launchpad.net/bugs/320366
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs