glaubitz added a comment.

As a heads-up, powerpcspe needs a similar treatment as it suffers from the same 
problem:

  cd build-llvm \
  CFLAGS=`dpkg-buildflags --get CFLAGS`; \
  CFLAGS="$CFLAGS `dpkg-buildflags --get CPPFLAGS`"; \
  echo $CFLAGS; \
  bin/clang++ -c $CFLAGS -std=c++11 ../lib/Fuzzer/*.cpp -IFuzzer; \
  ar ruv libFuzzer.a Fuzzer*.o
  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong 
-Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2
  In file included from ../lib/Fuzzer/FuzzerCrossOver.cpp:12:
  In file included from ../lib/Fuzzer/FuzzerDefs.h:15:
  In file included from 
/usr/lib/gcc/powerpc-linux-gnuspe/7.3.0/../../../../include/c++/7.3.0/cassert:43:
  In file included from 
/usr/lib/gcc/powerpc-linux-gnuspe/7.3.0/../../../../include/powerpc-linux-gnuspe/c++/7.3.0/bits/c++config.h:533:
  In file included from 
/usr/lib/gcc/powerpc-linux-gnuspe/7.3.0/../../../../include/powerpc-linux-gnuspe/c++/7.3.0/bits/os_defines.h:39:
  /usr/include/features.h:419:12: fatal error: 'sys/cdefs.h' file not found
  #  include <sys/cdefs.h>
             ^~~~~~~~~~~~~
  1 error generated.
  ar: `u' modifier ignored since `D' is the default (see `U')
  ar: creating libFuzzer.a
  ar: Fuzzer*.o: No such file or directory

Full build log in: 
https://people.debian.org/~glaubitz/llvm-toolchain-4.0_4.0.1-10.log.gz

Like x32, powerpcspe is just a variant on an existing architecture, namely 
powerpc but with a different ABI and hence a suffix in the GNU triplet name 
(full triplet name is "powerpc-linux-gnuspe").


Repository:
  rC Clang

https://reviews.llvm.org/D43630



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D43630: ... James Clarke via Phabricator via cfe-commits
    • [PATCH] D43... John Paul Adrian Glaubitz via Phabricator via cfe-commits

Reply via email to