Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Nov 2011 07:48:49 +0300
From:      Sergey Kandaurov <pluknet@gmail.com>
To:        Chuck Tuffli <ctuffli@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Possible to build 9-stable kernel on 8.2?
Message-ID:  <CAE-mSOJmN7Xy2V7jLBLQ=oR=YKPc=-jcdc4jfOnR_uxG=Ds%2BVQ@mail.gmail.com>
In-Reply-To: <CAKAYmMLoc5GmwjHMMkfhF06CWWoP1HNMb%2BRmL9Q9ij5xCSmxag@mail.gmail.com>
References:  <CAKAYmMLoc5GmwjHMMkfhF06CWWoP1HNMb%2BRmL9Q9ij5xCSmxag@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 15 November 2011 23:45, Chuck Tuffli <ctuffli@gmail.com> wrote:
> Is it possible to do a buildkernel of 9-stable (r227536) on a stock
> 8.2 system? Most of it seems to work, but the linker fails towards the
> end with
>
> ...
> MAKE=3Dmake sh /usr/home/ctuffli/dev/releng_9/src/sys/conf/newvers.sh GEN=
ERIC
> /usr/local/bin/svnversion
> cc -c -O2 -frename-registers -pipe -fno-strict-aliasing =A0-std=3Dc99 -g
> -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual =A0-Wundef
> -Wno-pointer-sign -fformat-extensions =A0-Wmissing-include-dirs
> -fdiagnostics-show-option -nostdinc =A0-I.
> -I/usr/home/ctuffli/dev/releng_9/src/sys
> -I/usr/home/ctuffli/dev/releng_9/src/sys/contrib/altq -D_KERNEL
> -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
> -finline-limit=3D8000 --param inline-unit-growth=3D100 --param
> large-function-growth=3D1000 =A0-fno-omit-frame-pointer -mno-sse
> -mcmodel=3Dkernel -mno-red-zone -mno-mmx -msoft-float
> -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
> -Werror =A0vers.c
> linking kernel.debug
> ld:/usr/home/ctuffli/dev/releng_9/src/sys/conf/ldscript.amd64:9: syntax e=
rror
> *** Error code 1
>
> Stop in /usr/home/ctuffli/dev/releng_9/obj/usr/home/ctuffli/dev/releng_9/=
src/sys/GENERIC.
> *** Error code 1
>
> Stop in /usr/home/ctuffli/dev/releng_9/src.
> *** Error code 1
>
> Stop in /usr/home/ctuffli/dev/releng_9/src.

IIRC 8.x has sufficiently old binutils (ld is part of them) that
doesn't understand
opcodes and suchlike constructs used in 9.x based on top of newer biinutils=
.
And you are trying to build 9.x using binutils from 8.x.

--=20
wbr,
pluknet



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAE-mSOJmN7Xy2V7jLBLQ=oR=YKPc=-jcdc4jfOnR_uxG=Ds%2BVQ>