#422: Cactus make problems ----------------------------------------------+----------------------------- Reporter: alexander.beck-ratzka@… | Type: defect Status: new | Priority: major Milestone: | Component: Cactus Version: | Keywords: ----------------------------------------------+----------------------------- I have a make problem with ther new cactus revision. Make fails with the error:
[snip] Checking status of thorn CarpetControl ________________________________________________________________________ Preprocessing /home/alibeck/programme/Cactus- Luca/Cactus/arrangements/Whisky_Exp/CarpetControl/src/CarpetControl.cc Compiling /home/alibeck/programme/Cactus- Luca/Cactus/arrangements/Whisky_Exp/CarpetControl/src/CarpetControl.cc /home/alibeck/programme/Cactus- Luca/Cactus/arrangements/Whisky_Exp/CarpetControl/src/CarpetControl.cc(20): error: cannot overload functions distinguished by return type alone void CarpetControl_Initialize(void) ^
compilation aborted for /home/alibeck/programme/Cactus-Luca/Cactus/configs /carpet-luca-cactus-new-cactus/build/CarpetControl/CarpetControl.cc (code 2) make[3]: *** [CarpetControl.cc.o] Error 2 make[2]: *** [make.checked] Error 2 make[1]: *** [/home/alibeck/programme/Cactus-Luca/Cactus/configs/carpet- luca-cactus-new-cactus/lib/libthorn_CarpetControl.a] Error 2 make: *** [carpet-luca-cactus-new-cactus] Error 2 [snip]
The make dost not fail using the revision r4620
#422: Cactus make problems -----------------------------------------------+---------------------------- Reporter: alexander.beck-ratzka@… | Owner: Type: defect | Status: new Priority: major | Milestone: Component: Cactus | Version: Resolution: | Keywords: -----------------------------------------------+----------------------------
Comment (by hinder):
Cactus now checks that you are using the correct return type for scheduled functions. This looks like a problem in the Whisky_Exp/CarpetControl thorn (which is not a part of the Einstein Toolkit). Try redeclaring CarpetControl_Initialize as returning an "int" instead of void. See http://cactuscode.org/pipermail/users/2011-March/002820.html.
#422: Cactus make problems -----------------------------------------------+---------------------------- Reporter: alexander.beck-ratzka@… | Owner: Type: defect | Status: new Priority: major | Milestone: Component: Cactus | Version: Resolution: | Keywords: -----------------------------------------------+----------------------------
Comment (by alexander.beck-ratzka@…):
This fixes the problem. The ticket can be closed
#422: Cactus make problems -----------------------------------------------+---------------------------- Reporter: alexander.beck-ratzka@… | Owner: Type: defect | Status: closed Priority: major | Milestone: Component: Cactus | Version: Resolution: fixed | Keywords: -----------------------------------------------+---------------------------- Changes (by eschnett):
* status: new => closed * resolution: => fixed
trac@lists.einsteintoolkit.org