#2428: Possible issue between ExternalLibraries/FFTW3 thorn and the Cactus/lib/sbin/strip-incdirs.sh script
Reporter:Federico Cipolletta
Status:open
Milestone:
Version:
Type:bug
Priority:minor
Component:EinsteinToolkit thorn

Comment (by Roland Haas):

Hmm. In that case /usr/local should be searched for as part of the default set of search locations (which is part of why we remove them from LIB_DIRS). It should also be searched before /usr so should pick that library in case there is an FFTW3 in both /usr and /usr/local.

Can you provide the output of gcc -xc -E -v - please (see https://stackoverflow.com/questions/4980819/what-are-the-gcc-default-include-directories)? On my Debian Bullseye box this returns:

$ gcc -xc -E -v -
Using built-in specs.
COLLECT_GCC=gcc
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 9.3.0-13' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-s
 ystem-zlib=auto --enable-objc-gc=<

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2428/possible-issue-between-externallibraries