Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jul 2011 16:12:20 +0400
From:      Pavel Timofeev <timp87@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   freebsd kernel and clang
Message-ID:  <CAAoTqfsHUgjaVSEP7xSeOORC6Hb7=MEfED%2BP8X5kH75DoYSrXw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello!
I can't use freebsd CURRENT kernel that was compiled by clang. It prints
"Unknown error: -512"
Use of world compiled by clang is possible and causes no problem.
But if I install kernel by clang it says "Unknow error: -512" in unexpected
places:
- while booting
- while portsnap fetch update
Looking up portsnap.FreeBSD.org mirrors... 5 mirrors found.
Fetching snapshot tag from portsnap1.FreeBSD.org... done.
Fetching snapshot metadata... done.
Updating from Mon Jul 11 11:16:53 MSK 2011 to Mon Jul 11 15:31:18 MSK 2011.
Fetching 3 metadata patches.. done.
Applying metadata patches... done.
Fetching 0 metadata files... done.
/usr/sbin/portsnap: cannot create patchlist: Unknown error: -512
Fetching 0 patches. done.
Applying patches... done.
Fetching 5 new ports or files... done.
Removing old files and directories... done.
Extracting new files:
/usr/ports/UPDATING
files/c20b7b19d8d0b7ba779814a807cd4a54ad3d44c70e5974e589fc4b9a6912468b.gz
not found -- snapshot corrupt.
- while something else.

This problem occurs only with kernel by clang.
All is ok If I install kernel compiled by gcc.

Maybe I do something wrong?

P.S. Latest sources
# cat /etc/make.conf
#
# CLANG
.if !defined(CC) || ${CC} == "cc"
CC=clang
.endif
.if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
.endif
# Don't die on warnings
NO_WERROR=
WERROR=
# Don't forget this when using Jails!
NO_FSCHG=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAoTqfsHUgjaVSEP7xSeOORC6Hb7=MEfED%2BP8X5kH75DoYSrXw>