#2553: Cactus' link command uses CPPFLAGS and CXXFLAGS
Reporter: Roland Haas
Status: open
Milestone:
Version: development version
Type: bug
Priority: minor
Component: Cactus
Comment (by Roland Haas):
Branch [https://bitbucket.org/cactuscode/cactus/branch/rhaas/ld\_xxx\_flags](https:… contains code to avoid using `CXXFLAGS` and `CPPFLAGS` in the linker command line. It does \(have to\) introduce a full set of `LD_XXX_FLAGS` variables that all default to their `CXX_XXX_FLAGS` analog if `LD` is not set \(in which case `LD` defaults to `CXX`\).
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2553/cactus-link-comma…
#2564: Cactus's configure test "checking whether we are using GNU C++" uses .C for C++ files
Reporter: Roland Haas
Status: new
Milestone:
Version: development version
Type: enhancement
Priority: trivial
Component:
Changes (by Roland Haas):
priority: trivial (was minor)
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2564/cactuss-configure…
#2588: defaults for XXX_OPENMP_FLAGS differ between linux and darwin architectures
Reporter: Roland Haas
Status: new
Milestone:
Version: development version
Type: bug
Priority: trivial
Component: Cactus
Changes (by Roland Haas):
title: defaults for XXX_OPENMP_FLAGS differ between linux and darwin architectures (was defaults for XXX_OPENMP_FLAGS differ between linux and darwnin architectures)
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2588/defaults-for-xxx_…
#2588: defaults for XXX_OPENMP_FLAGS differ between linux and darwnin architectures
Reporter: Roland Haas
Status: new
Milestone:
Version: development version
Type: bug
Priority: trivial
Component: Cactus
Cactus known-architectures files `lib/make/known-architectures/linux` and `lib/make/known-architectures/darwin` differ in whether they set defaults for `XXX_OPENMP_FLAGS`. Namely the Linux one contains:
```
ib/make/known-architectures/linux: : ${CXX_OPENMP_FLAGS='-fopenmp'}
lib/make/known-architectures/linux: : ${CXX_OPENMP_FLAGS='-openmp'}
lib/make/known-architectures/linux: : ${CXX_OPENMP_FLAGS='-mp'}
lib/make/known-architectures/linux: : ${CXX_OPENMP_FLAGS='-openmp'}
lib/make/known-architectures/linux: : ${CXX_OPENMP_FLAGS='-qsmp=omp'}
```
while the darwin \(macOS\) one does not set any defaults. Other architectures \(aix\) set a them as well while yet others \(all others\) do not.
Ideally the defaults should be the same for all architectures \(and nowadays probably `-fopenmp`\). The value of `OPENMP` itself \(ie if OpenMP is used\) is not set by any architecture file.
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2588/defaults-for-xxx_…
#2553: Cactus' link command uses CPPFLAGS and CXXFLAGS
Reporter: Roland Haas
Status: open
Milestone:
Version: development version
Type: bug
Priority: minor
Component: Cactus
Comment (by Roland Haas):
Removing CXXFLAGS and CPPFLAGS from the LD line leads to link time failures about `GOMP_parallel` not being found. Adding `LD_OPENMP_FLAGS = -fopenmp` does not help since that variable is not used. The only `X_OPENMP_FLAGS` variables in configure are:
```
lib/make/configure:F77_OPENMP_FLAGS="$F90_OPENMP_FLAGS"
lib/make/configure:s%@CPP_OPENMP_FLAGS@%$CPP_OPENMP_FLAGS%g
lib/make/configure:s%@FPP_OPENMP_FLAGS@%$FPP_OPENMP_FLAGS%g
lib/make/configure:s%@C_OPENMP_FLAGS@%$C_OPENMP_FLAGS%g
lib/make/configure:s%@CXX_OPENMP_FLAGS@%$CXX_OPENMP_FLAGS%g
lib/make/configure:s%@CUCC_OPENMP_FLAGS@%$CUCC_OPENMP_FLAGS%g
lib/make/configure:s%@F90_OPENMP_FLAGS@%$F90_OPENMP_FLAGS%g
lib/make/configure:s%@F77_OPENMP_FLAGS@%$F77_OPENMP_FLAGS%g
```
So one first needs to define a new variable `LD_OPENMP_FLAGS` then make sure it gets added to `LDFLAGS` and then one can remove `CXXFLAGS`. Probably also a good idea to set `LD_OPENMP_FLAGS` to the same default as `CXX_OPENMP_FLAGS` in `lib/make/known-architectures/linux`
If one wants to preserve backwards compatibility then one also needs to default `LD_OPENMP_FLAGS` to `CXX_OPENMP_FLAGS`.
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2553/cactus-link-comma…
#2587: update list of ET related lectures
Reporter: Roland Haas
Status: new
Milestone:
Version: development version
Type: enhancement
Priority: minor
Component: Cactus website
Comment (by Roland Haas):
This should be easily doable as a hackathon item \(but might not be interesting\).
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2587/update-list-of-et…