Help with errors building GC

63 views
Skip to first unread message

Steve Edmonds

unread,
Feb 14, 2022, 12:53:11 PM2/14/22
to golden-cheetah-developers
I have been building GC for a few months on Linux without problems.
I just ran git pull and the build exits with an error as below and would appreciate suggestions on where to look.

./sipgoldencheetahcmodule.cpp: In function ‘PyObject* PyInit_goldencheetah()’:
./sipgoldencheetahcmodule.cpp:219:40: error: ‘SIP_MODULE_NAME’ was not declared in this scope
./sipgoldencheetahcmodule.cpp:219:40: note: suggested alternative: ‘SIP_MODULE_TYPE’
./sipgoldencheetahcmodule.cpp:244:114: error: expected ‘)’ before string constant
make: *** [Makefile:116301: .obj/sipgoldencheetahcmodule.o] Error 1

Steve

Ale Martinez

unread,
Feb 14, 2022, 1:36:03 PM2/14/22
to golden-cheetah-developers
The likely reason is you have a sip version different from the one used to generate those files (4.19.8), solutions are to install that version or use your current version running make -f makefile.hack in Python/SIP folder to update the generated files.

Steve Edmonds

unread,
Feb 14, 2022, 2:10:45 PM2/14/22
to golden-cheetah-developers
Thanks Ale, that's all it took to jog my fading memory. I have sip-4.19.19
Ran sip -c src/Python/SIP src/Python/SIP/goldencheetah.sip and building again.

make -f Makefile.hack didn't seem to work

bash-4.4$ make -f Makefile.hack
make: 'sipgoldencheetahBindings.cpp' is up to date.

Thanks again, steve

Ale Martinez

unread,
Feb 22, 2022, 7:00:59 PM2/22/22
to golden-cheetah-developers
El lunes, 14 de febrero de 2022 a la(s) 16:10:45 UTC-3, Steve Edmonds escribió:
Thanks Ale, that's all it took to jog my fading memory. I have sip-4.19.19
Ran sip -c src/Python/SIP src/Python/SIP/goldencheetah.sip and building again.

make -f Makefile.hack didn't seem to work

bash-4.4$ make -f Makefile.hack
make: 'sipgoldencheetahBindings.cpp' is up to date.

 You can force make to build targets using -B or --always-make, or to make clean first, or just to install sip 4.19.8 as indicated in the build instructions to avoid the issue altogether.

Mark Liversedge

unread,
Jun 25, 2022, 6:04:21 AM6/25/22
to golden-cheetah-developers
Hi

I know this is an ancient thread but recently it hit me after an upgrade.

If you are making changes to GC then you definitely don't want the changes from running "sip -c" to be tracked !

$ git update-index --assume-unchanged src/Python/SIP/sip*.{cpp,h}

That way the generated files won't appear in git status or get included accidentally in a git commit.

Thanks
Mark
Reply all
Reply to author
Forward
0 new messages