Source-Changes-D archive

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

Re: CVS commit: src

On Fri, 15 Apr 2011, Joerg Sonnenberger wrote:

> Module Name:  src
> Committed By: joerg
> Date:         Fri Apr 15 13:42:23 UTC 2011
> Modified Files:
>       src/distrib/sets/lists/base: mi
>       src/distrib/sets/lists/comp: ad.powerpc md.amd64 md.i386
>       src/etc/mtree: NetBSD.dist.base
>       src/gnu/dist/gcc4/gcc/config: netbsd.h
>       src/gnu/usr.bin/gcc4/include: Makefile
> Log Message:
> Move the headers for compiler and platform specific intrinsincs from
> /usr/include to /usr/include/gcc-4.1.

with clean tool and obj dirs, the tool gcc that I built does not look in
this directory, eg for <mmintrin.h> included by pixman-mmx.c on i386

a simple file containing only an include statement

% cat t.c
#include <mmintrin.h>

with a 5.99.41 userland,

% ktruss -i /usr/tools/bin/i486--netbsdelf-gcc -mmmx -c t.c | grep mmintrin
       "#include <mmintrin.h>\n"
 23537      1 cc1      
 0xbfbfdfa0) Err#2 ENOENT
 23537      1 cc1      
open("/usr/tools/bin/../lib/gcc/i486--netbsdelf/4.1.3/include/mmintrin.h", 0x4, 
0x1b6) Err#2 ENOENT
 23537      1 cc1      __stat50("/usr/include/mmintrin.h.gch", 0xbfbfdfa0) 
 23537      1 cc1      open("/usr/include/mmintrin.h", 0x4, 0x1b6) = 5

and it finds it naturally, but during a build with --sysroot,

% ktruss -i /usr/tools/bin/i486--netbsdelf-gcc -mmmx 
--sysroot=/var/work/NetBSD-current/obj/destdir.i386 -c t.c | grep mmintrin
t.c:1:22: error: mmintrin.h: No such file or directory
       "#include <mmintrin.h>\n"
 27551      1 cc1      
 0xbfbfdf70) Err#2 ENOENT
 27551      1 cc1      
open("/var/work/NetBSD-current/obj/destdir.i386/usr/include/mmintrin.h", 0x4, 
0x1b6) Err#2 ENOENT
       "mmintrin.h: No such file or directory"

it fails, yet the file


does exist..


Home | Main Index | Thread Index | Old Index