Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Nov 2004 00:09:30 +0800
From:      Jia-Shiun Li <jiashiun@gmail.com>
To:        Olivier Houchard <mlfbsd@ci0.org>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Current status and further development
Message-ID:  <1d6d20bc041124080974e4eb3e@mail.gmail.com>
In-Reply-To: <20041118214602.GA6230@ci0.org>
References:  <41939C6D.5010400@sitetronics.com> <20041112010144.GA36319@ci0.org> <1d6d20bc04111811434a86bc7b@mail.gmail.com> <20041118214602.GA6230@ci0.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 18 Nov 2004 22:46:02 +0100, Olivier Houchard <mlfbsd@ci0.org> wrote:
> It seems it my fault, partially. Apparently specifying DESTDIR for any other
> target than install is not a good idea (although some .depend files looks
> right, go figure).
> So instead you have to do
> make TARGET_ARCH=arm TOOLS_PREFIX=/usr/cross depend all
> make TARGET_ARCH=arm TOOLS_PREFIX=/usr/cross DESTDIR=/usr/cross install

I tried again, despite some directories under /usr/cross missing
during installation, the second step to build binutils still failed
somewhere, so I decided to do some lary try. :)

I checked /usr/src/Makefile to see how it works to crossbuild for
other platform, and executed
  make -DNOCLEAN buildworld TARGET_ARCH=arm TARGET=arm __MAKE_CONF=/dev/null
and it failed at the same place. Looks like that as.h was included
twice. But buildworld will work for other platforms, at least I tried
IA64.

BTW why is there two binutils & cc, under gnu/ and contrib/ ? i
thought they were the same?

The point of failure:
===> gnu/usr.bin/binutils/as (all)
cc -O2 -fno-strict-aliasing -pipe -I.
-I/armcompile/usr/src/gnu/usr.bin/binutils/as
-I/armcompile/usr/src/gnu/usr.bin/binutils/as/../libbfd
-I/usr/obj/arm/armcompile/usr/src/i386/armcompile/usr/src/gnu/usr.bin/binutils/as/../libbfd
-I/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/include
-DDEFAULT_ARCH=\"arm\" -DTARGET_CPU=\"arm\"
-DTARGET_CANONICAL=\"arm-obrien-freebsd\"
-DTARGET_ALIAS=\"arm-obrien-freebsd\" -DVERSION=\""2.15 [FreeBSD]
2004-05-23"\" -D_GNU_SOURCE
-I/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas
-I/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config
-I/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils
-I/armcompile/usr/src/gnu/usr.bin/binutils/as
-I/armcompile/usr/src/gnu/usr.bin/binutils/as/arm-freebsd 
-I/usr/obj/arm/armcompile/usr/src/i386/legacy/usr/include -c
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/app.c
In file included from
/armcompile/usr/src/gnu/usr.bin/binutils/as/arm-freebsd/targ-cpu.h:6,
                 from
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/obj-elf.h:42,
                 from
/armcompile/usr/src/gnu/usr.bin/binutils/as/obj-format.h:3,
                 from
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/te-freebsd.h:30,
                 from /armcompile/usr/src/gnu/usr.bin/binutils/as/targ-env.h:3,
                 from
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/as.h:626,
                 from
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/app.c:30:
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:175:
error: redeclaration of `enum mstate'
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:176:
error: conflicting types for 'MAP_UNDEFINED'
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:176:
error: previous definition of 'MAP_UNDEFINED' was here
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:177:
error: conflicting types for 'MAP_DATA'
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:177:
error: previous definition of 'MAP_DATA' was here
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:178:
error: conflicting types for 'MAP_ARM'
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:178:
error: previous definition of 'MAP_ARM' was here
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:180:
error: conflicting types for 'MAP_THUMB'
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:180:
error: previous definition of 'MAP_THUMB' was here
In file included from
/armcompile/usr/src/gnu/usr.bin/binutils/as/arm-freebsd/targ-cpu.h:9,
                 from
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/obj-elf.h:42,
                 from
/armcompile/usr/src/gnu/usr.bin/binutils/as/obj-format.h:3,
                 from
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/te-freebsd.h:30,
                 from /armcompile/usr/src/gnu/usr.bin/binutils/as/targ-env.h:3,
                 from
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/as.h:626,
                 from
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/app.c:30:
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:175:
error: redeclaration of `enum mstate'
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:176:
error: conflicting types for 'MAP_UNDEFINED'
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:176:
error: previous definition of 'MAP_UNDEFINED' was here
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:176:
error: conflicting types for 'MAP_UNDEFINED'
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:176:
error: previous definition of 'MAP_UNDEFINED' was here
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:177:
error: conflicting types for 'MAP_DATA'
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:177:
error: previous definition of 'MAP_DATA' was here
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:177:
error: conflicting types for 'MAP_DATA'
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:177:
error: previous definition of 'MAP_DATA' was here
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:178:
error: conflicting types for 'MAP_ARM'
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:178:
error: previous definition of 'MAP_ARM' was here
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:178:
error: conflicting types for 'MAP_ARM'
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:178:
error: previous definition of 'MAP_ARM' was here
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:180:
error: conflicting types for 'MAP_THUMB'
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:180:
error: previous definition of 'MAP_THUMB' was here
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:180:
error: conflicting types for 'MAP_THUMB'
/armcompile/usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/config/tc-arm.h:180:
error: previous definition of 'MAP_THUMB' was here
*** Error code 1

Stop in /armcompile/usr/src/gnu/usr.bin/binutils/as.
*** Error code 1

Stop in /armcompile/usr/src/gnu/usr.bin/binutils.
*** Error code 1

Stop in /armcompile/usr/src.
*** Error code 1

Stop in /armcompile/usr/src.
*** Error code 1

Stop in /armcompile/usr/src.


Jia-Shiun



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1d6d20bc041124080974e4eb3e>