Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Dec 2016 00:42:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 215561] ports-mgmt/poudriere-devel: -r428604: -m src= gets "sh: cc: not found"
Message-ID:  <bug-215561-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215561

            Bug ID: 215561
           Summary: ports-mgmt/poudriere-devel: -r428604: -m src=3D gets
                    "sh: cc: not found"
           Product: Ports & Packages
           Version: Latest
          Hardware: powerpc
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: bdrewery@FreeBSD.org
          Reporter: markmi@dsl-only.net
             Flags: maintainer-feedback?(bdrewery@FreeBSD.org)
          Assignee: bdrewery@FreeBSD.org

[I doubt that this is powerpc64 specific but that is the context I'm
working in. A devel/powerpc64-gcc based on gcc 5.3.0 built the world
and kernel that is in use, libc++ based. It is possible that I'm
mixing more than one issue together below. I extracted some material
from logged sh -x output.]

Despite:

# cc --version
FreeBSD clang version 3.9.0 (tags/RELEASE_390/final 280324) (based on LLVM
3.9.0)
Target: powerpc64-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/bin

The following (the odd form of the command is from trying to explore
the failure of a more normal command):

# sh -x `which poudriere` -x jail -c -m src=3D/usr/src -J 4 -v head@309656 =
-j
12C_powerpc64

gets during installworld:

sh: cc: not found
make[2]: "/usr/src/share/mk/bsd.compiler.mk" line 145: Unable to determine
compiler type for CC=3Dcc -isystem
/usr/obj/powerpc64vtsc_clang_altbinutils_world/powerpc.powerpc64/usr/src/tm=
p/usr/include
-L/usr/obj/powerpc64vtsc_clang_altbinutils_world/powerpc.powerpc64/usr/src/=
tmp/usr/lib
-B/usr/obj/powerpc64vtsc_clang_altbinutils_world/powerpc.powerpc64/usr/src/=
tmp/usr/lib
--sysroot=3D/usr/obj/powerpc64vtsc_clang_altbinutils_world/powerpc.powerpc6=
4/usr/src/tmp
-B/usr/obj/powerpc64vtsc_clang_altbinutils_world/powerpc.powerpc64/usr/src/=
tmp/usr/bin.
 Consider setting COMPILER_TYPE.
*** Error code 1

But even if COMPILER_TYPE was defined the jail is using:

+ jset 12C_powerpc64 mnt /usr/local/poudriere/jails/12C_powerpc64

which has no cc available inside it at the time. Nor would the:

+ cpdup -i0 -X /tmp/cpignore.cGd2WOOW /usr/src
/usr/local/poudriere/jails/12C_powerpc64/usr/src

populate it with such. So the eventual:

+ export 'TARGET=3Dpowerpc'
+ export 'TARGET_ARCH=3Dpowerpc64'
+ export 'WITH_FAST_DEPEND=3Dyes'
+ installworld

which in turn does:

+ make -C /usr/src installworld
'DESTDIR=3D/usr/local/poudriere/jails/12C_powerpc64' 'DB_FROM_SRC=3D1'

has no cc to put to use --and no prior src.conf or make.conf handling that
can contribute anything to the installworld.  [src.conf is only handled in
build_and_install_world().]

In other words: as far as I can tell -m src=3D for the
ports-mgmt/poudriere-devel based jail -c when mixed with the modern system
build environment is broken: it needs but does not have cc available as
at least one blocking issue.

(I've not tried a work around to see what might be next for problems
for -m src=3D use.)


Context:

# uname -apKU
FreeBSD FBSDG5L 12.0-CURRENT FreeBSD 12.0-CURRENT #2 r309656M: Tue Dec  6
21:15:55 PST 2016=20=20=20=20
markmi@FreeBSDx64:/usr/obj/powerpc64vtsc_xtoolchain_kernel/powerpc.powerpc6=
4/usr/src/sys/GENERIC64vtsc-NODBG
 powerpc powerpc64 1200017 1200017

# svnlite info /usr/ports/ | grep "Re[plv]"
Relative URL: ^/head
Repository Root: https://svn0.us-west.freebsd.org/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 428604
Last Changed Rev: 428604


+ file=3D/usr/local/etc/poudriere.d/12C_powerpc64-poudriere.conf
+ [ -r /usr/local/etc/poudriere.d/12C_powerpc64-poudriere.conf ]
+ . /usr/local/etc/poudriere.d/12C_powerpc64-poudriere.conf
+ NO_ZFS=3Dyes
+ FREEBSD_HOST=3Dftp://ftp.freebsd.org
+ RESOLV_CONF=3D/etc/resolv.conf
+ BASEFS=3D/usr/local/poudriere
+ USE_PORTLINT=3Dno
+ USE_TMPFS=3Dyes
+ DISTFILES_CACHE=3D/usr/ports/distfiles
+ SVN_HOST=3Dsvn.FreeBSD.org
+ CHECK_CHANGED_OPTIONS=3Dverbose
+ CHECK_CHANGED_DEPS=3Dyes
+ SAVE_WRKDIR=3Dyes
+ BUILDER_HOSTNAME=3DFBSDG5L
+ PRESERVE_TIMESTAMP=3Dyes
+ export
'MAKEOBJDIRPREFIX=3D/usr/obj/powerpc64vtsc_clang_altbinutils_world/powerpc.=
powerpc64'

(The usage of MAKEOBJDIRPREFIX=3D in such a place was not clear from
the documentation but with my multiple variations for builds from the
same source I name them more explicitly.)

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



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