Subject: misc/33795: compile failure building netbsd on gentoo linux
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <dsean@charter.net>
List: netbsd-bugs
Date: 06/22/2006 22:00:01
>Number: 33795
>Category: misc
>Synopsis: compile failure building netbsd on gentoo linux
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 22 22:00:00 +0000 2006
>Originator: Sean Davidson
>Release: netbsd-3.1
>Organization:
>Environment:
Linux ncc1701 2.6.16-gentoo-r9 #1 SMP PREEMPT Mon Jun 5 09:12:02 EDT 2006 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GNU/Linux
>Description:
netbsd-3.1 fails to compile on linux because of
TOP environment variable not being set properly
incorrect order of include files in src/gnu/dist/binutils/gas/as.h
>How-To-Repeat:
Should fail to compile on any linux system because the structures and
defined macros do not exist in header files on linux.
>Fix:
RCS file: /cvsroot/src/gnu/dist/binutils/gas/as.h,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 as.h
*** gnu/dist/binutils/gas/as.h 8 Dec 2004 09:17:16 -0000 1.1.1.2
--- gnu/dist/binutils/gas/as.h 22 Jun 2006 21:53:59 -0000
***************
*** 621,626 ****
--- 621,628 ----
int generic_force_reloc (struct fix *);
#include "expr.h" /* Before targ-*.h */
+ #include "write.h" /* Before targ-*.h */
+ #include "tc.h" /* Before targ-*.h */
/* this one starts the chain of target dependant headers */
#include "targ-env.h"
***************
*** 635,647 ****
#endif
#endif
- #include "write.h"
#include "frags.h"
#include "hash.h"
#include "read.h"
#include "symbols.h"
- #include "tc.h"
#include "obj.h"
#ifdef USE_EMULATIONS
--- 637,647 ----
RCS file: /cvsroot/src/build.sh,v
retrieving revision 1.134.2.2
diff -c -r1.134.2.2 build.sh
*** build.sh 15 Dec 2005 20:11:48 -0000 1.134.2.2
--- build.sh 22 Jun 2006 21:54:34 -0000
***************
*** 87,93 ****
# XXX Except that doesn't work on Solaris.
#
unset PWD
! TOP=$(/bin/pwd -P 2>/dev/null)
# Set defaults.
#
--- 87,93 ----
# XXX Except that doesn't work on Solaris.
#
unset PWD
! TOP=$(/bin/pwd -P 2>/dev/null || /bin/pwd 2>/dev/null)
# Set defaults.
#