[PATCH] D43630: [Driver] Fix search paths on x32

John Paul Adrian Glaubitz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 28 02:15:18 PST 2018


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





More information about the cfe-commits mailing list