Subject: cc should use /tmp rather than /var/tmp
To: None <current-users@netbsd.org, tech-toolchain@netbsd.org>
From: FUKAUMI Naoki <nfukaumi@itg.hitachi.co.jp>
List: current-users
Date: 09/11/2001 19:59:37
# I don't subscribe current-users and tech-toolchain MLs
# Plz reply with cc me

I found cc uses /var/tmp.

# on NetBSD/sparc64 2001/8/21 snapshot

PR bin/4224 and bin/5700 were similer problems.

Sorry if it is already fixed.

% rm test.c
% touch test.c
% which cc
/usr/bin/cc
% cc -v test.c
Using builtin specs.
gcc version 2.95.3 20010315 (release)
 /usr/libexec/cpp0 -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95 -D__sparc__ -D__N
etBSD__ -D__ELF__ -D__sparc__ -D__NetBSD__ -D__ELF__ -Asystem(unix) -Asystem(Net
BSD) -D__sparc_v9__ -D__SIZE_TYPE__=long unsigned int -D__PTRDIFF_TYPE__=long in
t -D__arch64__ -Acpu(sparc64) -Amachine(sparc64) -D__sparc64__ test.c /var/tmp/c
ceSIqdD.i
GNU CPP version 2.95.3 20010315 (release) (sparc64-netbsd)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
 /usr/include/g++
End of omitted list.
 /usr/libexec/cc1 /var/tmp/cceSIqdD.i -quiet -dumpbase test.c -version -o /var/t
mp/cc0qvaaj.s
GNU C version 2.95.3 20010315 (release) (sparc64-netbsd) compiled by GNU C versi
on 2.95.3 20010315 (release).
 as -xarch=v8plus -64 -o /var/tmp/ccIjZoo4.o /var/tmp/cc0qvaaj.s
 ld -m elf64_sparc -dy -dc -dp -e __start -dynamic-linker /usr/libexec/ld.elf_so
 /usr/lib/crt0.o /usr/lib/crtbegin.o /var/tmp/ccIjZoo4.o -lgcc -lc -lgcc /usr/li
b/crtend.o
/usr/lib/crt0.o: In function `___start':
/usr/lib/crt0.o(.text+0x13c): undefined reference to `main'

--
FUKAUMI Naoki