Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE WHILE GENERATING make #468

Open
amirremad opened this issue Dec 26, 2022 · 8 comments
Open

ISSUE WHILE GENERATING make #468

amirremad opened this issue Dec 26, 2022 · 8 comments

Comments

@amirremad
Copy link

make generate is not working and give me this error !!
D:\OSEK_TRIAL\Firmware>make generate

===============================================================================
Run RTOS Generator

php modules/tools/generator/generator.php --cmdline -l -v
-DARCH=x86 -DCPUTYPE=ia32 -DCPU=none
-c examples/blinking/etc/blinking.oil -t ./modules/rtos/gen/inc/Os_Internal_Cfg.h.php ./modules/rtos/gen/inc/Os_Cfg.h.php ./modules/rtos/gen/src/Os_Cfg.c.php ./modules/rtos/gen/src/Os_Internal_Cfg.c.php ./modules/rtos/gen/src/x86/Os_Internal_Arch_Cfg.c.php ./modules/rtos/gen/inc/x86/Os_Internal_Arch_Cfg.h.php -o ./out/gen
make: php: No such file or directory
make: *** [Makefile:601: gen.intermediate] Error 127

@martinribelotta
Copy link

Need php binary in your path... this, or move to fw v3

@amirremad
Copy link
Author

How could i do the binary path ?
or can you give me the link of the new repo ?

@amirremad
Copy link
Author

i try the fw v3 it is doesnot work !
can you tell me how to add php binary in my path

@cpantel
Copy link
Contributor

cpantel commented Dec 26, 2022 via email

@amirremad
Copy link
Author

https://www.php.net/downloads
after I download this should I add the path of this file to the system environment variable?

@cpantel
Copy link
Contributor

cpantel commented Dec 26, 2022 via email

@amirremad
Copy link
Author

NOW I HAVE A NEW PROBLEM AFTER MAKING MAKE GENERATE

Run RTOS Generator

php modules/tools/generator/generator.php --cmdline -l -v
-DARCH=x86 -DCPUTYPE=ia32 -DCPU=none
-c examples/blinking/etc/blinking.oil -t ./modules/rtos/gen/inc/Os_Internal_Cfg.h.php ./modules/rtos/gen/inc/Os_Cfg.h.php ./modules/rtos/gen/src/Os_Cfg.c.php ./modules/rtos/gen/src/Os_Internal_Cfg.c.php ./modules/rtos/gen/src/x86/Os_Internal_Arch_Cfg.c.php ./modules/rtos/gen/inc/x86/Os_Internal_Arch_Cfg.h.php -o ./out/gen
PHP Fatal error: Uncaught Error: Call to a member function printMsg() on null in D:\OSEK_TRIAL\Firmware\modules\tools\generator\OilGenerator.php:80
Stack trace:
#0 D:\OSEK_TRIAL\Firmware\modules\tools\generator\OilGenerator.php(146): OilGenerator->printCmdLine()
#1 D:\OSEK_TRIAL\Firmware\modules\tools\generator\OilGenerator.php(460): OilGenerator->processArgs(Array)
#2 D:\OSEK_TRIAL\Firmware\modules\tools\generator\generator.php(60): OilGenerator->run(Array)
#3 {main}
thrown in D:\OSEK_TRIAL\Firmware\modules\tools\generator\OilGenerator.php on line 80

Fatal error: Uncaught Error: Call to a member function printMsg() on null in D:\OSEK_TRIAL\Firmware\modules\tools\generator\OilGenerator.php:80
Stack trace:
#0 D:\OSEK_TRIAL\Firmware\modules\tools\generator\OilGenerator.php(146): OilGenerator->printCmdLine()
#1 D:\OSEK_TRIAL\Firmware\modules\tools\generator\OilGenerator.php(460): OilGenerator->processArgs(Array)
#2 D:\OSEK_TRIAL\Firmware\modules\tools\generator\generator.php(60): OilGenerator->run(Array)
#3 {main}
thrown in D:\OSEK_TRIAL\Firmware\modules\tools\generator\OilGenerator.php on line 80
make: *** [Makefile:601: gen.intermediate] Error 255

@martinribelotta
Copy link

You requiere php v5 not more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants