[Bug 214403] base/gcc and base/README -r424540: pkg-plist needs to be user-updated for the TARGET_ARCH, such as TARGET_ARCH=powerpc64

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 10 18:29:16 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214403

            Bug ID: 214403
           Summary: base/gcc and base/README -r424540: pkg-plist needs to
                    be user-updated for the TARGET_ARCH, such as
                    TARGET_ARCH=powerpc64
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: markmi at dsl-only.net

[This is after dealign with mpfr 3.1.4 vs. 3.1.5 and adding a gcc and g++
command to my environment.]

The following is not documented as needed activity in base/README :

The cross build stopped with missing files, including sparc ones for a
powerpc64 context:

> ===>  Building package for freebsd-gcc-5.4.0
> pkg-static: Unable to access file /usr/obj/portswork/usr/ports/base/gcc/work/stage/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/include/visintrin.h: No such file or directory
> pkg-static: Unable to access file /usr/obj/portswork/usr/ports/base/gcc/work/stage/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/plugin/include/config/sparc/freebsd.h: No such file or directory
> pkg-static: Unable to access file /usr/obj/portswork/usr/ports/base/gcc/work/stage/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/plugin/include/config/sparc/sparc-opts.h: No such file or directory
> pkg-static: Unable to access file /usr/obj/portswork/usr/ports/base/gcc/work/stage/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/plugin/include/config/sparc/sparc-protos.h: No such file or directory
> pkg-static: Unable to access file /usr/obj/portswork/usr/ports/base/gcc/work/stage/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/plugin/include/config/sparc/sparc.h: No such file or directory
> pkg-static: Unable to access file /usr/obj/portswork/usr/ports/base/gcc/work/stage/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/plugin/include/config/sparc/sysv4.h: No such file or directory
> pkg-static: Unable to access file /usr/obj/portswork/usr/ports/base/gcc/work/stage/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/plugin/include/config/vxworks-dummy.h: No such file or directory
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/ports/base/gcc

As far as what is really there for powerpc64:

> # ls /usr/obj/portswork/usr/ports/base/gcc/work/stage/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/include/ | grep "^v"
> varargs.h
> vec_types.h

> # ls /usr/obj/portswork/usr/ports/base/gcc/work/stage/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/plugin/include/config/
> dbxelf.h                elfos.h                 freebsd-spec.h          freebsd-stdint.h        freebsd.h               initfini-array.h        rs6000

The references to the non-existent files are from the pkg-plist lines:

> lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/visintrin.h
. . .
> lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/initfini-array.h
> lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/%%OPSYS%%.h
> lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc-opts.h
> lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc-protos.h
> lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc.h
> lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sysv4.h
> lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/vxworks-dummy.h

The base/README only mentions generation of pkg-plist for base/binutils .

Doing a quick check for base/gcc :

> # make CROSS_TOOLCHAIN=powerpc64-gcc CROSS_SYSROOT=/usr/obj/DESTDIRs/xtoolchain-powerpc64-installworld makeplist > pkg-plist-powerpc64
> # diff pkg-plist pkg-plist-powerpc64  | more
> 0a1
> > /you/have/to/check/what/makeplist/gives/you
> 17a19
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/libmilter/mfapi.h
> 31a34
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/altivec.h
> 32a36,37
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/htmintrin.h
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/htmxlintrin.h
> 33a39,44
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/paired.h
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/ppc-asm.h
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/ppu_intrinsics.h
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/si2vmx.h
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/spe.h
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/spu2vmx.h
> 45c56
> < lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/visintrin.h
> ---
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/vec_types.h
> 107,112c118,126
> < lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/%%OPSYS%%.h
> < lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc-opts.h
> < lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc-protos.h
> < lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sparc.h
> < lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/sparc/sysv4.h
> < lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/vxworks-dummy.h
> ---
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/default64.h
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/%%OPSYS%%64.h
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/option-defaults.h
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000-builtin.def
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000-cpus.def
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000-opts.h
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000-protos.h
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/rs6000.h
> > lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/plugin/include/config/rs6000/sysv4.h

So base/gcc's pkg-plist needs to be updated for the TARGET_ARCH.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list