Is it the bug of the kernel herders or the gcc?

Is it the bug of the kernel herders or the gcc?

Post by lia.. » Thu, 14 Dec 2000 11:42:39



Under the redhat 7.0 ,when I compile a kernel module,I failed with the following messages:
                        gcc -O2 -Wall -pipe -DMODULE -D__KERNEL__ -I/usr/src/linux/include -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -c clm_dspdrv.c -o clm_dspdrv.o
In file included from /usr/include/linux/fs.h:288,
                 from /usr/include/linux/capability.h:18,
                 from /usr/include/linux/binfmts.h:6,
                 from /usr/include/linux/sched.h:10,
                 from /usr/include/linux/vmalloc.h:5,
                 from /usr/include/asm/io.h:109,
                 from clm_dspdrv.c:16:
/usr/include/linux/ncp_fs_i.h:27: two or more data types in declaration of `type name'
/usr/include/linux/ncp_fs_i.h:27: warning: no semicolon at end of struct or union
/usr/include/linux/ncp_fs_i.h:27: parse error before `['
In file included from /usr/include/linux/capability.h:18,
                 from /usr/include/linux/binfmts.h:6,
                 from /usr/include/linux/sched.h:10,
                 from /usr/include/linux/vmalloc.h:5,
                 from /usr/include/asm/io.h:109,
                 from clm_dspdrv.c:16:
/usr/include/linux/fs.h:443: field `ncpfs_i' has incomplete type
/usr/include/linux/fs.h:448: Internal error: Segmentation fault.
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
{standard input}: Assembler messages:
{standard input}:8: Warning: Ignoring changed section attributes for .modinfo
make: *** [clm_dspdrv.o] Error 2    

==================================
Posted via http://nodevice.com
Linux Programmer's Site

 
 
 

Is it the bug of the kernel herders or the gcc?

Post by Juergen Hein » Fri, 15 Dec 2000 09:02:54



>Under the redhat 7.0 ,when I compile a kernel module,I failed with the following messages:
>                        gcc -O2 -Wall -pipe -DMODULE -D__KERNEL__ -I/usr/src/linux/include -Wstrict-prototypes -fomit-frame-pointer -fno-strength-reduce -c clm_dspdrv.c -o clm_dspdrv.o
>In file included from /usr/include/linux/fs.h:288,
>                 from /usr/include/linux/capability.h:18,
>                 from /usr/include/linux/binfmts.h:6,
>                 from /usr/include/linux/sched.h:10,
>                 from /usr/include/linux/vmalloc.h:5,
>                 from /usr/include/asm/io.h:109,
>                 from clm_dspdrv.c:16:
>/usr/include/linux/ncp_fs_i.h:27: two or more data types in declaration of `type name'
>/usr/include/linux/ncp_fs_i.h:27: warning: no semicolon at end of struct or union
>/usr/include/linux/ncp_fs_i.h:27: parse error before `['
[-]
>/usr/include/linux/fs.h:448: Internal error: Segmentation fault.
>Please submit a full bug report.
>See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

[-]
It's a bug in RH's rock solid and well tested version of gcc ... oh and
you mustn't use gcc but kgcc to compile the kernel anyway. The Makefile
of 2.2.18 is supposed to detect kgcc itself.

Quote:>{standard input}: Assembler messages:
>{standard input}:8: Warning: Ignoring changed section attributes for .modinfo
>make: *** [clm_dspdrv.o] Error 2    

[-]
Shows up with newer assembler versions, AFAICT you may safely ignore
them for the time being.

Cheers,
Juergen

--
\ Real name     : Jrgen Heinzl         \       no flames      /


 
 
 

1. Am I stupid or is this a bug in gcc ?

Hi,

Not beeing a 'real' C-programmer I'm having trouble getting the
following few lines of code thru the gcc-compiler (2.7.2) without
it complaining.

The code compiles and runs OK but gcc spits out :

   cc     kaka.c   -o kaka
   kaka.c: In function `main':
   kaka.c:9: warning: assignment makes pointer from integer without a cast

     1  #include <stdio.h>
     2  
     3  main()
     4  {
     5    char *p;
     6    char str[20]="Hello World";
     7  
     8    p=index(str,'W');
     9    if (p != NULL)
    10      *p='\0';
    11    printf("%s\n",str);
    12  }

The same codes compiles on HP-UX 9/10 (with builtin cc)
without any warnings.

What am I doing wrong ?

Regards
Ken
--
============================================================================

Norrbottens L?ns Landsting              Phone: +46 920 78102
S-971 89 LULE?, SWEDEN                  Fax:   +46 920 78112

2. iplog - options & syslog

3. am-utils or kernel bug ?

4. Installing a 2nd Hard Drive

5. syslog full of kernel BUGs - why am I being ignored?

6. X resolution problem

7. 0.99pl8 kernel bug -fix (= no kernel bug)

8. NIS problem on 2.5.1

9. GCC bug : Does your kernel have a time bomb?

10. gcc bug causing problem in kernel builds

11. FW: am-utils or kernel bug ? Seems to be kernel or glibc bug...

12. proposal: feed smaller mailing lists into linux-kernel, add linux-kernel-core and linux-kernel-bugs

13. It`s IMPORTANT!!!