Bug 139609

Summary: 7.2-STABLE compile fails
Product: Base System Reporter: yuri
Component: kernAssignee: Gavin Atkinson <gavin>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 7.2-STABLE   
Hardware: Any   
OS: Any   

Description yuri 2009-10-14 20:10:01 UTC
This began happening from some update in late September.
My message on freebsd-hackers@ didn't get any response.

Compile log ends like this:
cc -I/usr/local/include -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr/obj/usr/src/tmp/usr\" -I/usr/obj/usr/src/tmp/usr/src/gnu/usr.bin/cc/cc_int/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_int/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/include -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libcpp/include -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libdecnumber  -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config/i386/i386.c
/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config/i386/i386.c: In function 'ix86_function_regparm':
/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config/i386/i386.c:2502: warning: initialization makes pointer from integer without a cast
/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config/i386/i386.c:2503: error: dereferencing pointer to incomplete type
/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config/i386/i386.c: In function 'ix86_function_sseregparm':
/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config/i386/i386.c:2581: warning: initialization makes pointer from integer without a cast
/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config/i386/i386.c:2582: error: dereferencing pointer to incomplete type
Comment 1 Gavin Atkinson freebsd_committer freebsd_triage 2009-10-14 21:02:47 UTC
State Changed
From-To: open->feedback

Hi, 

Firstly, try removing the whole of /usr/obj, and trying again. 

Secondly, try a different cvsup server.  It's possible that the one 
you are using is somehow corrupt. 

If neither of those work, please show the contents of your /etc/src.conf 
and /etc/make.conf if they exist. 




Comment 2 Gavin Atkinson freebsd_committer freebsd_triage 2009-10-14 21:02:47 UTC
Responsible Changed
From-To: freebsd-bugs->gavin

Track
Comment 3 Yuri Victorovich freebsd_committer freebsd_triage 2009-10-14 22:16:31 UTC
It looks like this line in /etc/make.conf: CFLAGS=-I/usr/local/include 
caused failure.
Some files have the same paths under /usr/include and /usr/local/include.

Might me worthwhile to find all such collisions of include files between 
base installation and ports and eliminate them.
Otherwise it's kind of messy.

Yuri
Comment 4 Gavin Atkinson freebsd_committer freebsd_triage 2009-10-14 23:02:51 UTC
State Changed
From-To: feedback->closed

Close, was a local problem with settings in /etc/make.conf. 

To submitter: It's not really possible or worthwhile to identify 
all name clashes when there are 20,000 ports - especially given 
this is the first time I've seen somebody have this problem.