BSD

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Errors while compiling userland

    1 answers - 6507 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Yeah, well, I have several issues with the VAX port currently as well.
    When compiling libc, you get:
    # compile libc/strtod.ln
    / -chapbxzF
    -X 272 -d / -D_LIBC -DLIBC_SCCS
    -DSYSLIBC_SCCS -D_REENTRANT -I/usr/src/lib/libc/include
    -I/usr/src/lib/libc -DHESID -DINET6 -DNLS -DYP -I.
    -D__DBINTERFACE_PRIVATE -DI18NMDULE_MAJR=4 -DCITRUS -I/usr/src/sys
    -I/usr/src/lib/libc/stdlib -I/usr/src/libexec/ld.elf_so
    -I/usr/src/lib/libc/dlfcn -DCITRUS_ICNV -DWITH_RUNE -I/usr/src/lib/libc
    -DPSIX_MISTAKE -DCMPAT__RES -DPRTMAP -DFLATING_PINT -DALL_STATE
    -DUSG_CMPAT -i /
    / warning: preprocessing directive
    not recognized within macro arg
    / warning: preprocessing directive
    not recognized within macro arg
    /(1061): warning: i set but not used in
    function d2b [191]
    /(1255): warning: conversion to
    'unsigned long' due to prototype, arg #3 [259]
    /(1256): warning: conversion to
    'unsigned long' due to prototype, arg #3 [259]
    /(1396): warning: constant in
    conditional context [161]
    /(1685): warning: constant in
    conditional context [161]
    /(2010): warning: undefined or invalid #
    directive [255]
    /(2012): warning: undefined or invalid #
    directive [255]
    All because you have #ifdef's inside a macro expansion. I guess it's
    because the VAX port is still using an older toolchain?
    If you fix that up, you instead smacks your head into libc/rpc/svc_vc.c.
    Isn't anyone building the VAX port nowadays?
    Another thing is that my current kernel hangs when it needs to page
    something out.
    That process gets stuck in the state "genput" which is in genfs_vnops in
    the pageout routine.
    Johnny
    Bernd Ernesti wrote:
    Hi,
    it would be nice if at least all of userland would compile after your commit:
    dependall usr.bin/fstat
    # compile fstat/isofs.o
    cc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Werror -I/src/sys -DINET6 -c /
    In file included from /
    / #error not supposed to be exposed to userland.
    In file included from /
    / #error not supposed to be exposed to userland.
    Error code 1 (continuing)
    dependall usr.bin/pmap
    # create pmap/.depend
    rm -f .depend
    mkdep -d -f .depend -s .o\ .ln main.d pmap.d pmap_ld.d
    rm -f .gdbinit
    touch .gdbinit
    # compile pmap/main.o
    cc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Werror -c /
    In file included from /,
    from /
    / #error not supposed to be exposed to userland.
    Error code 1 (continuing)
    # compile pmap/pmap.o
    cc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Werror -c /
    In file included from /,
    from /
    / #error not supposed to be exposed to userland.
    Error code 1 (continuing)
    # compile pmap/pmap_ld.o
    cc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Werror -c /
    In file included from /,
    from /,
    from /
    / #error not supposed to be exposed to userland.
    Error code 1 (continuing)
    Bernd
    Sat, Dec 03, 2005 at 05:34:44PM +0000, Christos Zoulas wrote:

    >>Module Name:src
    >>Committed By:christos
    >>Date:Sat Dec 3 17:34:44 UTC 2005
    >>
    >>Modified Files:
    >>src/sys/fs/adosfs: adosfs.h
    >>src/sys/fs/cd9660: cd9660_extern.h cd9660_mount.h cd9660_node.h
    >> cd9660_rrip.h iso.h iso_rrip.h
    >>src/sys/fs/filecorefs: filecore.h filecore_extern.h filecore_mount.h
    >> filecore_node.h
    >>src/sys/fs/msdosfs: bootsect.h bpb.h denode.h direntry.h fat.h
    >> msdosfsmount.h
    >>src/sys/fs/ntfs: ntfs.h ntfs_compr.h ntfs_ihash.h ntfs_inode.h
    >> ntfs_subr.h ntfs_vfsops.h ntfsmount.h
    >>src/sys/fs/ptyfs: ptyfs.h
    >>src/sys/fs/smbfs: smbfs.h smbfs_node.h
    >>src/sys/fs/tmpfs: tmpfs.h tmpfs_fifoops.h tmpfs_pool.h tmpfs_specops.h
    >> tmpfs_vnops.h
    >>src/sys/fs/union: union.h
    >>
    >>Log Message:

    protect userland exported files against multiple inclusion.
    make sure that kernel only files don't compile in userland using #error
    XXX: some kernel only files still get installed.
    XXX: some files used in userland, don't get installed.
    >>
    >>
    >>To generate a diff of this commit:
    >>cvs rdiff -r1.7 -r1.8 src/sys/fs/adosfs/adosfs.h
    >>cvs rdiff -r1.15 -r1.16
    >>cvs rdiff -r1.5 -r1.6 \

    >src/sys/fs/cd9660/iso.h
    >>cvs rdiff -r1.10 -r1.11
    >>cvs rdiff -r1.2 -r1.3
    >>cvs rdiff -r1.3 -r1.4 src/sys/fs/cd9660/iso_rrip.h
    >>cvs rdiff -r1.3 -r1.4 \

    >
    >>cvs rdiff -r1.10 -r1.11
    >>cvs rdiff -r1.5 -r1.6
    >>cvs rdiff -r1.2 -r1.3 src/sys/fs/msdosfs/bootsect.h
    >>cvs rdiff -r1.3 -r1.4 src/sys/fs/msdosfs/bpb.h src/sys/fs/msdosfs/fat.h
    >>cvs rdiff -r1.10 -r1.11 src/sys/fs/msdosfs/denode.h \

    >
    >>cvs rdiff -r1.4 -r1.5 src/sys/fs/msdosfs/direntry.h
    >>cvs rdiff -r1.11 -r1.12 src/sys/fs/ntfs/ntfs.h
    >>cvs rdiff -r1.1 -r1.2 src/sys/fs/ntfs/ntfs_compr.h
    >>cvs rdiff -r1.2 -r1.3 src/sys/fs/ntfs/ntfs_ihash.h \

    >src/sys/fs/ntfs/ntfs_inode.h
    >>cvs rdiff -r1.4 -r1.5 src/sys/fs/ntfs/ntfs_subr.h \

    >src/sys/fs/ntfs/ntfs_vfsops.h src/sys/fs/ntfs/ntfsmount.h
    >>cvs rdiff -r1.4 -r1.5 src/sys/fs/ptyfs/ptyfs.h
    >>cvs rdiff -r1.11 -r1.12 src/sys/fs/smbfs/smbfs.h
    >>cvs rdiff -r1.9 -r1.10 src/sys/fs/smbfs/smbfs_node.h
    >>cvs rdiff -r1.9 -r1.10 src/sys/fs/tmpfs/tmpfs.h
    >>cvs rdiff -r1.3 -r1.4 \

    >src/sys/fs/tmpfs/tmpfs_pool.h
    >>cvs rdiff -r1.4 -r1.5
    >>cvs rdiff -r1.6 -r1.7 src/sys/fs/tmpfs/tmpfs_vnops.h
    >>cvs rdiff -r1.11 -r1.12 src/sys/fs/union/union.h
    >>
    >>Please note that diffs are not public domain; they are subject to the
    >>copyright notices on the relevant files.
    >>
  • No.1 | | 7146 bytes | |

    Sun, Dec 04, 2005 at 04:12:16AM +0100, Johnny Billquist wrote:
    Yeah, well, I have several issues with the VAX port currently as well.

    When compiling libc, you get:

    This appears to have been fixed (my libc got past this after I apply your
    svc.c fix)

    James

    # compile libc/strtod.ln

    / -chapbxzF
    -X 272 -d / -D_LIBC -DLIBC_SCCS
    -DSYSLIBC_SCCS -D_REENTRANT -I/usr/src/lib/libc/include
    -I/usr/src/lib/libc -DHESID -DINET6 -DNLS -DYP -I.
    -D__DBINTERFACE_PRIVATE -DI18NMDULE_MAJR=4 -DCITRUS -I/usr/src/sys
    -I/usr/src/lib/libc/stdlib -I/usr/src/libexec/ld.elf_so
    -I/usr/src/lib/libc/dlfcn -DCITRUS_ICNV -DWITH_RUNE -I/usr/src/lib/libc
    -DPSIX_MISTAKE -DCMPAT__RES -DPRTMAP -DFLATING_PINT -DALL_STATE
    -DUSG_CMPAT -i /
    / warning: preprocessing directive
    not recognized within macro arg
    / warning: preprocessing directive
    not recognized within macro arg
    /(1061): warning: i set but not used in
    function d2b [191]
    /(1255): warning: conversion to
    'unsigned long' due to prototype, arg #3 [259]
    /(1256): warning: conversion to
    'unsigned long' due to prototype, arg #3 [259]
    /(1396): warning: constant in
    conditional context [161]
    /(1685): warning: constant in
    conditional context [161]
    /(2010): warning: undefined or invalid #
    directive [255]
    /(2012): warning: undefined or invalid #
    directive [255]

    All because you have #ifdef's inside a macro expansion. I guess it's
    because the VAX port is still using an older toolchain?

    If you fix that up, you instead smacks your head into libc/rpc/svc_vc.c.

    Isn't anyone building the VAX port nowadays?

    Another thing is that my current kernel hangs when it needs to page
    something out.
    That process gets stuck in the state "genput" which is in genfs_vnops in
    the pageout routine.

    Johnny

    Bernd Ernesti wrote:
    >Hi,
    >
    >it would be nice if at least all of userland would compile after your
    >commit:
    >
    >dependall usr.bin/fstat
    ># compile fstat/isofs.o
    >cc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
    >-Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow
    >-Wcast-qual -Wwrite-strings -Werror -I/src/sys -DINET6 -c
    >/
    >In file included from /
    >/ #error not supposed to be
    >exposed to userland.
    >In file included from /
    >/ #error not supposed to be
    >exposed to userland.

    Error code 1 (continuing)
    >
    >dependall usr.bin/pmap
    ># create pmap/.depend
    >rm -f .depend
    >mkdep -d -f .depend -s .o\ .ln main.d pmap.d pmap_ld.d
    >rm -f .gdbinit
    >touch .gdbinit
    ># compile pmap/main.o
    >cc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
    >-Wno-sign-compare -Wno-traditional -Werror -c
    >/
    >In file included from /,

    from /
    >/ #error not supposed to be
    >exposed to userland.

    Error code 1 (continuing)
    ># compile pmap/pmap.o
    >cc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
    >-Wno-sign-compare -Wno-traditional -Werror -c
    >/
    >In file included from /,

    from /
    >/ #error not supposed to be
    >exposed to userland.

    Error code 1 (continuing)
    ># compile pmap/pmap_ld.o
    >cc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
    >-Wno-sign-compare -Wno-traditional -Werror -c
    >/
    >In file included from /,

    from /,
    from /
    >/ #error not supposed to be
    >exposed to userland.

    Error code 1 (continuing)
    >
    >
    >Bernd
    >

    Sat, Dec 03, 2005 at 05:34:44PM +0000, Christos Zoulas wrote:
    >
    >>Module Name:src
    >>Committed By:christos
    >>Date:Sat Dec 3 17:34:44 UTC 2005
    >>
    >>Modified Files:
    >>src/sys/fs/adosfs: adosfs.h
    >>src/sys/fs/cd9660: cd9660_extern.h cd9660_mount.h cd9660_node.h
    >> cd9660_rrip.h iso.h iso_rrip.h
    >>src/sys/fs/filecorefs: filecore.h filecore_extern.h filecore_mount.h
    >> filecore_node.h
    >>src/sys/fs/msdosfs: bootsect.h bpb.h denode.h direntry.h fat.h
    >> msdosfsmount.h
    >>src/sys/fs/ntfs: ntfs.h ntfs_compr.h ntfs_ihash.h ntfs_inode.h
    >> ntfs_subr.h ntfs_vfsops.h ntfsmount.h
    >>src/sys/fs/ptyfs: ptyfs.h
    >>src/sys/fs/smbfs: smbfs.h smbfs_node.h
    >>src/sys/fs/tmpfs: tmpfs.h tmpfs_fifoops.h tmpfs_pool.h
    >>tmpfs_specops.h
    >> tmpfs_vnops.h
    >>src/sys/fs/union: union.h
    >>
    >>Log Message:

    protect userland exported files against multiple inclusion.
    make sure that kernel only files don't compile in userland using #error
    XXX: some kernel only files still get installed.
    XXX: some files used in userland, don't get installed.
    >>
    >>
    >>To generate a diff of this commit:
    >>cvs rdiff -r1.7 -r1.8 src/sys/fs/adosfs/adosfs.h
    >>cvs rdiff -r1.15 -r1.16
    >>cvs rdiff -r1.5 -r1.6 \

    >src/sys/fs/cd9660/iso.h
    >>cvs rdiff -r1.10 -r1.11
    >>cvs rdiff -r1.2 -r1.3
    >>cvs rdiff -r1.3 -r1.4 src/sys/fs/cd9660/iso_rrip.h
    >>cvs rdiff -r1.3 -r1.4 \

    >
    >>cvs rdiff -r1.10 -r1.11
    >>cvs rdiff -r1.5 -r1.6
    >>cvs rdiff -r1.2 -r1.3 src/sys/fs/msdosfs/bootsect.h
    >>cvs rdiff -r1.3 -r1.4 src/sys/fs/msdosfs/bpb.h src/sys/fs/msdosfs/fat.h
    >>cvs rdiff -r1.10 -r1.11 src/sys/fs/msdosfs/denode.h \

    >
    >>cvs rdiff -r1.4 -r1.5 src/sys/fs/msdosfs/direntry.h
    >>cvs rdiff -r1.11 -r1.12 src/sys/fs/ntfs/ntfs.h
    >>cvs rdiff -r1.1 -r1.2 src/sys/fs/ntfs/ntfs_compr.h
    >>cvs rdiff -r1.2 -r1.3 src/sys/fs/ntfs/ntfs_ihash.h \

    >src/sys/fs/ntfs/ntfs_inode.h
    >>cvs rdiff -r1.4 -r1.5 src/sys/fs/ntfs/ntfs_subr.h \

    >src/sys/fs/ntfs/ntfs_vfsops.h src/sys/fs/ntfs/ntfsmount.h
    >>cvs rdiff -r1.4 -r1.5 src/sys/fs/ptyfs/ptyfs.h
    >>cvs rdiff -r1.11 -r1.12 src/sys/fs/smbfs/smbfs.h
    >>cvs rdiff -r1.9 -r1.10 src/sys/fs/smbfs/smbfs_node.h
    >>cvs rdiff -r1.9 -r1.10 src/sys/fs/tmpfs/tmpfs.h
    >>cvs rdiff -r1.3 -r1.4 \

    >src/sys/fs/tmpfs/tmpfs_pool.h
    >>cvs rdiff -r1.4 -r1.5
    >>cvs rdiff -r1.6 -r1.7 src/sys/fs/tmpfs/tmpfs_vnops.h
    >>cvs rdiff -r1.11 -r1.12 src/sys/fs/union/union.h
    >>
    >>Please note that diffs are not public domain; they are subject to the
    >>copyright notices on the relevant files.
    >>

Re: Errors while compiling userland


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 7 =
QUESTION ON "BSD"

EMSDN.COM