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

-current build problems on AMD 64



Hi all,

We've got a new dual opteron machine with an ahd SCSI controller which
we want to run root raid on.

So we installed -current snapshot from 3rd Aug to an ATA disk, hoping
to use that to make release.

We fetched the latest -current source tree from AnonCVS 
following the instructions in the documentation, and built a GENERIC.MP 
kernel with ahd and raid enabled.

The kernel compile went flawlessly, but when I run 'make build' in
/usr/src, the compile bombs out while compiling gcc.

I paste the compile output & error below:

cd /usr/src/gnu/lib/libf2c/../../usr.bin/gcc &&  make -f
Makefile.bsd-wrapper config.status tree-check.h
`config.status' is up to date.
exec make CFLAGS="-O2    -DOPENBSD_NATIVE
-I/usr/src/gnu/usr.bin/gcc/../../lib/libiberty/include"  CC="cc"
LDFLAGS=""  DEMANGLER_PROG=  DEMANGLE_H=
LIBIBERTY_INCLUDES=/usr/src/gnu/usr.bin/gcc/../../lib/libiberty/include
LIBGCC2_INCLUDES=-I/usr/src/gnu/usr.bin/gcc/../../lib/libiberty/include
BUILD_LIBIBERTY=-liberty  LIBIBERTY=-liberty  HOST_LIBDEPS=  LIBDEPS=
build_infodir=. tree-check.h
cc -c    -O2    -DOPENBSD_NATIVE
-I/usr/src/gnu/usr.bin/gcc/../../lib/libiberty/include -DIN_GCC  -W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H
-DGENERATOR_FILE    -I. -I. -I/usr/src/gnu/usr.bin/gcc/gcc
-I/usr/src/gnu/usr.bin/gcc/gcc/.
-I/usr/src/gnu/usr.bin/gcc/gcc/config
-I/usr/src/gnu/usr.bin/gcc/gcc/../include
/usr/src/gnu/usr.bin/gcc/gcc/gencheck.c -o gencheck.o
In file included from /usr/src/gnu/usr.bin/gcc/gcc/gencheck.c:22:
/usr/src/gnu/usr.bin/gcc/gcc/system.h:305: error: conflicting types
for `sbrk'
/usr/include/unistd.h:195: error: previous declaration of `sbrk'
*** Error code 1

Stop in /usr/src/gnu/usr.bin/gcc (line 2350 of Makefile).
*** Error code 1

Stop in /usr/src/gnu/usr.bin/gcc (line 79 of Makefile.bsd-wrapper).
*** Error code 1

Stop in /usr/src/gnu/lib/libf2c (line 141 of Makefile.bsd-wrapper).
*** Error code 1

Stop in /usr/src/include (line 81 of Makefile).
*** Error code 1

Stop in /usr/src (line 72 of Makefile).

If anyone has any pointers or the developers need more information, I
will do my best to supply it.

I have built i386 snapshots quite recently without a problem so I was
surprised when I hit this issue with amd64.

Thanks in advance,

// Niall.

-- 
njo_(_at_)_sig11_(_dot_)_com
------------------------------------------------------------
The world is a comedy to those that think
    -- Voltaire



Visit your host, monkey.org