Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Building PCC for "tools" is broken (missing symbol __USE)- PCC bug or NetBSD source tree error?



On Sun, 10 Aug 2014, William D. Jones wrote:

> The error in the kernel happens at assym.d (Ignore the kernel name- it's a
> slightly modified GENERIC_TINY). I'm not sure what happened here, but it
> appears the preprocessor doesn't like  being invoked with the following
> command line. The only single-period I see is "-I.", and that works when the
> preprocessor by calling it directly:
> #    create  PB_KERNEL/assym.d
> cat /mnt/lfs/NetBSD-CVS/src/sys/arch/i386/i386/genassym.cf  |
> /mnt/lfs/NetBSD-CVS/src/../tools/bin/nbgenassym --
> CC=/mnt/lfs/NetBSD-CVS/src/../tools/bin/i486--netbsdelf-pcc
> /mnt/lfs/NetBSD-CVS/src/../tools/bin/nbmkdep -f assym.dep --  -msoft-float
> -mno-mmx -mno-sse -mno-avx -ffreestanding -fno-zero-initialized-in-bss -Os
> -Wno-error=uninitialized -Wno-error=maybe-uninitialized -fno-strict-aliasing
> -fno-common -std=gnu99 -Werror -Wall -Wno-main -Wno-format-zero-length
> -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes
> -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings
> -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wextra
> -Wno-unused-parameter -Wold-style-definition -Wno-sign-compare
> --sysroot=/mnt/lfs/NetBSD-CVS/src/../destdir/i386-pb -Di386 -I.
> -I/mnt/lfs/NetBSD-CVS/src/sys/../common/include
> -I/mnt/lfs/NetBSD-CVS/src/sys/arch  -I/mnt/lfs/NetBSD-CVS/src/sys -nostdinc
> -DMAXUSERS=8 -D_KERNEL -D_KERNEL_OPT -std=gnu99
> -I/mnt/lfs/NetBSD-CVS/src/sys/lib/libkern/../../../common/lib/libc/quad
> -I/mnt/lfs/NetBSD-CVS/src/sys/lib/libkern/../../../common/lib/libc/string
> -I/mnt/lfs/NetBSD-CVS/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string
> -I/mnt/lfs/NetBSD-CVS/src/sys/external/bsd/ipf
> /mnt/lfs/NetBSD-CVS/src/../tools/libexec/i486--netbsdelf-cpp: invalid option
> -- '.'
> Usage: cpp [-Cdt] [-Dvar=val] [-Uvar] [-Ipath] [-Spath]
> error: /mnt/lfs/NetBSD-CVS/src/../tools/libexec/i486--netbsdelf-cpp terminated
> with status 1
> nbmkdep: compile failed.

I'm in the middle updating my system but this seems to work ok for me..

It is difficult to pin down as the error comes from cpp, which is run by
pcc, which is run by nbmkdep, which is run by nbgenassym .. can you run
the command again but add an "-v" option directly after the "assym.dep"
part? That should show what mkdep is doing, and if that seems ok, you can
also add "-v" into the pcc options (just before "-msoft-float") which will
tell pcc to output the commands it runs

regards,
iain


Home | Main Index | Thread Index | Old Index