freebsd kernel and clang

Pavel Timofeev timp87 at
Mon Jul 11 12:12:21 UTC 2011

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
- while booting
- while portsnap fetch update
Looking up mirrors... 5 mirrors found.
Fetching snapshot tag from 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:
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
.if !defined(CC) || ${CC} == "cc"
.if !defined(CXX) || ${CXX} == "c++"
# Don't die on warnings
# Don't forget this when using Jails!

More information about the freebsd-questions mailing list