[cfe-dev] rpm error with clang

Sean omalley_s at rocketmail.com
Wed Jan 1 11:20:35 PST 2014


You have to disable --strict-build-id in rpm. 
(this patch is fsck'd up for a std patch but you get the idea. :) ) 

--- //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



----

I added to my /etc/mock/fedora-20-x86_64.cfg file: 
config_opts['files']['etc/profile.d/mystuff.sh'] = """
export CC=clang
export CXX=clang
export CFLAGS="-std=gnu89 -O3 -g -mstackrealign -Wall " 
# ...
"""






--
View this message in context: http://clang-developers.42468.n3.nabble.com/rpm-error-with-clang-tp4031664p4036835.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list