PDA

Просмотр полной версии : Ретро КР580



uart
26.09.2020, 12:43
https://github.com/chicherov/Retro80

Сделал сборку под GNUstep. Проверял только под linux (RHEL8).

Shaos
03.09.2024, 02:48
в Debian 10.13 не собирается :(

uart
04.09.2024, 13:49
Что конкретно не собирается?

Shaos
07.09.2024, 08:55
1. пробуем собрать как есть (gcc):



This is gnustep-make 2.7.0. Type 'make print-gnustep-make-help' for help.
Running in gnustep-make version 2 strict mode.
Making all for app Retro80...
Creating Retro80.app/....
Compiling file Document.m ...
gcc: error: unrecognized command line option ‘-Wobjc-property-no-attribute’; did you mean ‘--warn-no-attributes’?
gcc: error: unrecognized command line option ‘-fobjc-arc’; did you mean ‘-fobjc-gc’?
make[3]: *** [/usr/share/GNUstep/Makefiles/rules.make:479: obj/Retro80.obj/Document.m.o] Error 1
make[2]: *** [/usr/share/GNUstep/Makefiles/Instance/application.make:147: internal-app-run-compile-submake] Error 2
make[1]: *** [/usr/share/GNUstep/Makefiles/Master/rules.make:297: Retro80.all.app.variables] Error 2
make: *** [/usr/share/GNUstep/Makefiles/Master/application.make:38: internal-all] Error 2


2. пробуем собрать с помощью clang:



This is gnustep-make 2.7.0. Type 'make print-gnustep-make-help' for help.
Running in gnustep-make version 2 strict mode.
Making all for app Retro80...
Compiling file Document.m ...
error: -fobjc-arc is not supported on platforms using the legacy runtime
make[3]: *** [/usr/share/GNUstep/Makefiles/rules.make:479: obj/Retro80.obj/Document.m.o] Error 1
make[2]: *** [/usr/share/GNUstep/Makefiles/Instance/application.make:147: internal-app-run-compile-submake] Error 2
make[1]: *** [/usr/share/GNUstep/Makefiles/Master/rules.make:297: Retro80.all.app.variables] Error 2
make: *** [/usr/share/GNUstep/Makefiles/Master/application.make:38: internal-all] Error 2


3. возвращаемся обратно к gcc и меняем ‘-Wobjc-property-no-attribute’ на ‘--warn-no-attributes’ и ‘-fobjc-arc’ на ‘-fobjc-gc’:


This is gnustep-make 2.7.0. Type 'make print-gnustep-make-help' for help.
Running in gnustep-make version 2 strict mode.
Making all for app Retro80...
Compiling file Document.m ...
cc1obj: warning: ‘-fobjc-gc’ is ignored for ‘-fgnu-runtime’
In file included from <command-line>:
./GNUstep-Prefix.pch:8:1: error: cannot find interface declaration for ‘NSLayoutConstraint’
- (void) setConstant:(CGFloat)constant;
^
make[3]: *** [/usr/share/GNUstep/Makefiles/rules.make:479: obj/Retro80.obj/Document.m.o] Error 1
make[2]: *** [/usr/share/GNUstep/Makefiles/Instance/application.make:147: internal-app-run-compile-submake] Error 2
make[1]: *** [/usr/share/GNUstep/Makefiles/Master/rules.make:297: Retro80.all.app.variables] Error 2
make: *** [/usr/share/GNUstep/Makefiles/Master/application.make:38: internal-all] Error 2

uart
09.09.2024, 15:55
Debian 12. Поставил GnuStep с помощью https://github.com/plaurent/gnustep-build/blob/master/debian-12-clang-14.0/GNUstep-buildon-debian12.sh
Все собралось.

- - - Добавлено - - -

Судя по всему при сборке tools-make не была указана опция --enable-objc-arc

Shaos
10.09.2024, 02:40
т.е. с родным дебиановским гнустепом никак?

uart
10.09.2024, 09:11
Не могу сказать точно, но скорее всего он урезанный, в нем нет arc.