I was trying to get clang to work in mock. I thought I would share how far I had gotten, before the end of the holidays and life picks up again. You can probably add -mstrict-align to the CFLAGS section for arm. This actually worked to build a few packages. (I also built a package to actually move symlink gcc to clang in case of hard coding, but I don't think it is needed.)
in your mock /etc/mock/fedora-20-xxx.cfg file you need to add something like: config_opts['files']['etc/profile.d/mystuff.sh'] = """ export CC=clang export CXX=clang export CFLAGS="-std=gnu89 -O3 -g -mstackrealign -Wall " # ... """ and from the rpm package you need to edit /usr/lib/rpm/find-debuginfo.sh something like: --- //usr/lib/rpm/find-debuginfo.sh 2013-09-09 08:11:23.000000000 -0400 +++ /home/so/find-debuginfo.sh 2014-01-01 12:32:25.360449406 -0500 @@ -53,6 +53,9 @@ case "$1" in --strict-build-id) strict=true +if [ ${CC} = "clang" ]; then + strict=false +fi ;; --run-dwz) run_dwz=true _______________________________________________ arm mailing list arm@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/arm