Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Nov 2015 19:57:59 -0800
From:      Mark Millard <markmi@dsl-only.net>
To:        FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Subject:   lang/gcc5 vs. devel/powerpc64-gcc: conflict for /usr/local/bin/powerpc64-portbld-freebsd11.0-gcc-5.2.0
Message-ID:  <A65F49D8-C577-4685-BFCC-02827BA95EDC@dsl-only.net>
In-Reply-To: <6AA244B9-DE60-4D8B-A08E-AADD73F9D856@dsl-only.net>
References:  <01BA3FF2-F362-48FA-B9E2-112E05CC00ED@dsl-only.net> <6AA244B9-DE60-4D8B-A08E-AADD73F9D856@dsl-only.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On a powerpc64 PowerMac I attempted to install lang/gcc5 and then use it =
to update devel/powerpc64-xtoolchain-gcc from the old 4.9.1 vintage that =
I had around. After the usual workaround for around 6 files that stage =
funny when a powerpc64 hosts powerpc64-gcc being built, I got the =
following notice on continuing the powerpc64-xtoolchain-gcc build =
(portmaster's -C used):

> Installing powerpc64-gcc-5.2.0...
> pkg-static: powerpc64-gcc-5.2.0 conflicts with gcc5-5.2.0_2 (installs =
files into the same place).  Problematic file: =
/usr/local/bin/powerpc64-portbld-freebsd11.0-gcc-5.2.0



Context details for those that care:

> # freebsd-version -ku; uname -aKU
> 11.0-CURRENT
> 11.0-CURRENT
> FreeBSD FBSDG5C0 11.0-CURRENT FreeBSD 11.0-CURRENT #12 r281630M: Sat =
Apr 18 01:15:13 PDT 2015     =
root@FBSDG5C0:/usr/obj/usr/src/sys/GENERIC64vtsc-NODEBUG  powerpc =
1100070 1100070

The activity was to be a preliminary stage to updating to a more modern =
11.0-CURRENT based on the updated powerpc64-xtoolchain-gcc .

> # svnlite info /usr/ports
> Path: /usr/ports
> Working Copy Root Path: /usr/ports
> URL: https://svn0.us-west.freebsd.org/ports/head
> Relative URL: ^/head
> Repository Root: https://svn0.us-west.freebsd.org/ports
> Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
> Revision: 402562
> Node Kind: directory
> Schedule: normal
> Last Changed Author: rene
> Last Changed Rev: 402562
> Last Changed Date: 2015-11-28 15:08:03 -0800 (Sat, 28 Nov 2015)

> # more /etc/make.conf
> WRKDIRPREFIX=3D/usr/obj/portswork
> MALLOC_PRODUCTION=3D
> CC=3D/usr/local/bin/gcc5
> CXX=3D/usr/local/bin/g++5
> CPP=3D/usr/local/bin/cpp5
> AS=3D/usr/local/powerpc64-portbld-freebsd11.0/bin/as
> AR=3D/usr/local/powerpc64-portbld-freebsd11.0/bin/ar
> LD=3D/usr/local/powerpc64-portbld-freebsd11.0/bin/ld
> NM=3D/usr/local/powerpc64-portbld-freebsd11.0/bin/nm
> OBJCOPY=3D/usr/local/powerpc64-portbld-freebsd11.0/bin/objcopy
> OBJDUMP=3D/usr/local/powerpc64-portbld-freebsd11.0/bin/objdump
> RANLIB=3D/usr/local/powerpc64-portbld-freebsd11.0/bin/ranlib
> SIZE=3D/usr/local/powerpc64-portbld-freebsd11.0/bin/size
> STRINGS=3D/usr/local/powerpc64-portbld-freebsd11.0/bin/strings



Side note on the powerpc64-gcc staging problems:

My workaround for the powerpc64-gcc staging problems when built on a =
powerpc64 PowerMac for a 11.0-CURRENT context was:

> cp -ax =
/usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/build-gcc/gcc/gcov =
/usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/bin/=
powerpc64-portbld-freebsd11.0-gcov
>=20
> cp -ax =
/usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/build-gcc/gcc/gcov-t=
ool =
/usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/bin/=
powerpc64-portbld-freebsd11.0-gcov-tool
>=20
> cp -ax =
/usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/man/=
man1/cpp.1.gz =
/usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/man/=
man1/powerpc64-portbld-freebsd11.0-cpp.1.gz
>=20
> cp -ax =
/usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/man/=
man1/g++.1.gz =
/usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/man/=
man1/powerpc64-portbld-freebsd11.0-g++.1.gz
>=20
> cp -ax =
/usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/man/=
man1/gcc.1.gz =
/usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/man/=
man1/powerpc64-portbld-freebsd11.0-gcc.1.gz
>=20
> cp -ax =
/usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/man/=
man1/gcov.1.gz =
/usr/obj/portswork/usr/ports/devel/powerpc64-gcc/work/stage/usr/local/man/=
man1/powerpc64-portbld-freebsd11.0-gcov.1.gz
>=20
> portmaster --no-confirm -CtDK lang/powerpc64-xtoolchain-gcc

That last simply added the "C" before the "tDK" of the original =
portmaster command that I started the powerpc64-xtoolchain-gcc build =
with.


=3D=3D=3D
Mark Millard
markmi at dsl-only.net





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A65F49D8-C577-4685-BFCC-02827BA95EDC>