Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Feb 2011 11:29:47 +0000
From:      Mark Murray <markm@FreeBSD.org>
To:        Tim Kientzle <tim@kientzle.com>
Cc:        FreeBSD-current Current <freebsd-current@freebsd.org>
Subject:   Re: Can't update CLang-based system
Message-ID:  <E1Pu1IR-0001tG-TZ@groundzero.grondar.org>
In-Reply-To: <11C58791-9103-4C0E-8B35-EE46A4A6D3D4@kientzle.com>
References:  <11C58791-9103-4C0E-8B35-EE46A4A6D3D4@kientzle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Tim Kientzle writes:
> I have a FreeBSD-CURRENT AMD64 system here that was last updated at =
> r215029.
> 
> I'm trying to update it to r219079, but the build fails in lib/libz when =
> it tries to compile gvmat64.S.  It looks like the Makefile here has a =
> workaround for clang on AMD64, but it doesn't seem to actually be =
> working in this case.

Hi

Exactly the same problem here on r219091:

[graveyard] /usr/src 11:25 am # which clang
/usr/bin/clang
[graveyard] /usr/src 11:25 am # clang -v
FreeBSD clang version 2.9 (trunk 126547) 20110226
Target: x86_64-undermydesk-freebsd9.0
Thread model: posix
[graveyard] /usr/src 11:25 am # cat /etc/src.conf
KERNCONF=                       G_AMD64_C
#
BATCH_DELETE_OLD_FILES=         yes
#
WITHOUT_LPR=                    yes
WITHOUT_SENDMAIL=               yes
WITHOUT_CTM=                    yes
#
.if !defined(CC) || ${CC} == "cc"
CC=clang
.endif
.if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
.endif
# Don't die on warnings
NO_WERROR=
WERROR=

Then "make buildworld" with empty /usr/obj and -DNOCLEAN:

:
:
--------------------------------------------------------------
>>> stage 1.2: bootstrap tools
--------------------------------------------------------------
cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/usr/src/tmp  INSTALL="sh /usr/src/tools/install.sh"  PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bin  WORLDTMP=/usr/obj/usr/src/tmp  VERSION="FreeBSD 9.0-CURRENT amd64 900033"  MAKEFLAGS="-m /usr/src/tools/build/mk  -D NOCLEAN -m /usr/src/share/mk TARGET=amd64 TARGET_ARCH=amd64" make -f Makefile.inc1  DESTDIR=  BOOTSTRAPPING=900033  SSP_CFLAGS=  -DWITHOUT_HTML -DWITHOUT_INFO -DNO_LINT -DWITHOUT_MAN  -DNO_PIC -DWITHOUT_PROFILE -DNO_SHARED  -DNO_CPU_CFLAGS -DNO_WARNS -DNO_CTF bootstrap-tools
===> lib/clang/libllvmsupport (obj,depend,all,install)
/usr/obj/usr/src/tmp/usr/src/lib/clang/libllvmsupport created for /usr/src/lib/clang/libllvmsupport
rm -f .depend
CC='clang' mkdep -f .depend -a    -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support -I. -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DLLVM_HOSTTRIPLE=\"amd64-undermydesk-freebsd9.0\" -I/usr/obj/usr/src/tmp/legacy/usr/include /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/regcomp.c /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/regerror.c /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/regexec.c /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/regfree.c /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/regstrlcpy.c
CC='clang' mkdep -f .depend -a    -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/include -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/tools/clang/include -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support -I. -I/usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DLLVM_HOSTTRIPLE=\"amd64-undermydesk-freebsd9.0\" -I/usr/obj/usr/src/tmp/legacy/usr/include    /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APFloat.cpp /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APInt.cpp /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/APSInt.cpp /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Allocator.cpp /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Atomic.cpp /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/CommandLine.cp
 p /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/ConstantRange.cpp /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/CrashRecoveryContext.cpp /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/DAGDeltaAlgorithm.cpp /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Debug.cpp /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/DeltaAlgorithm.cpp /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/Dwarf.cpp /usr/src/lib/clang/libllvmsupport/../../../contrib/llvm/lib/Support/DynamicLibrary.cpp /usr/src/        mov edx, [(rsp + 8 - 96)]
        ^
/tmp/cc-D1h2GI.s:302:3: warning: ignoring directive for now
  .att_syntax
  ^
/tmp/cc-D1h2GI.s:304:3: warning: ignoring directive for now
  .intel_syntax noprefix
  ^
/tmp/cc-D1h2GI.s:309:9: error: unknown use of instruction mnemonic without a size suffix
        mov r11d,258
        ^
/tmp/cc-D1h2GI.s:310:9: error: unknown use of instruction mnemonic without a size suffix
        mov [ rcx + 160], r8d
        ^
/tmp/cc-D1h2GI.s:316:9: error: unknown use of instruction mnemonic without a size suffix
        mov eax, [ rcx + 164]
        ^
/tmp/cc-D1h2GI.s:317:9: error: unknown use of instruction mnemonic without a size suffix
        cmp r11d, eax
        ^
/tmp/cc-D1h2GI.s:318:9: error: unknown use of instruction mnemonic without a size suffix
        cmovng eax, r11d
        ^
/tmp/cc-D1h2GI.s:320:9: error: unknown use of instruction mnemonic without a size suffix
        mov rbx,[(rsp + 40 - 96)]
        ^
/tmp/cc-D1h2GI.s:321:9: error: unknown use of instruction mnemonic without a size suffix
        mov rbp,[(rsp + 48 - 96)]
        ^
/tmp/cc-D1h2GI.s:322:9: error: unknown use of instruction mnemonic without a size suffix
        mov r12,[(rsp + 56 - 96)]
        ^
/tmp/cc-D1h2GI.s:323:9: error: unknown use of instruction mnemonic without a size suffix
        mov r13,[(rsp + 64 - 96)]
        ^
/tmp/cc-D1h2GI.s:324:9: error: unknown use of instruction mnemonic without a size suffix
        mov r14,[(rsp + 72 - 96)]
        ^
/tmp/cc-D1h2GI.s:325:9: error: unknown use of instruction mnemonic without a size suffix
        mov r15,[(rsp + 80 - 96)]
        ^
/tmp/cc-D1h2GI.s:328:9: error: unknown use of instruction mnemonic without a size suffix
        ret 0
        ^
/tmp/cc-D1h2GI.s:336:3: error: unknown use of instruction mnemonic without a size suffix
  ret 0
  ^
*** Error code 1

Stop in /usr/src/lib/libz.
*** Error code 1

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

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

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

Stop in /usr/src.

M
--
Mark R V Murray
Cert APS(Open) Dip Phys(Open) BSc Open(Open) BSc(Hons)(Open)
Pi: 132511160




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1Pu1IR-0001tG-TZ>