flex.c grows uncontrollably
#1
Moving this discussion from the Haku Forum ...


[Image: Screenshot-2024-03-13-at-18-41-11.png]

[Image: Screenshot-2024-03-13-at-18-44-14.png]

[Image: Screenshot-2024-03-13-at-18-45-34.png]


[Image: Screenshot-2024-03-13-at-18-46-52.png]
Reply
#2
We both started threads at about the same time. We should use this one.
Reply
#3
I suggest removing the buildfactory folder, un-installing buildfactory and re-installing it. There may be some left-over files from an earlier version in the BuildFactory folder.
Reply
#4
I'm reading this correctly, the file consists entirely of nulls.

[Image: yabide.png]
Reply
#5
Ahh I see. You are not using the default folder for Buildfactory and not all the files are in your folder. One canot just copy the BuilFactory folder from /system/apps . It does not contain all the files needed. The BuildFactory.yab file copys the files from the dev folder to the Buildfactory folder but it may not work in this case.
Reply
#6
trying to compile, sorry, build allinone.yab from the examples

Nope, same problem

OK, commandline. Never done that before, so be gentle ...

OUCH!

Code:
~/.../yab_work/BuildFactory> ./BuildFactory.yab Allinone /boot/home/Desktop/Programming/yab_work/Examples/AllInOne.yab
This_dir/boot/home/Desktop/Programming/yab_work/BuildFactory/yab_work/BuildFactory
File config.h not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/config.h': No such file or directory

File bison.h not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/bison.h': No such file or directory

File function.c not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/function.c': No such file or directory

File global.h not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/global.h': No such file or directory

File main.c not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/main.c': No such file or directory

File RdefApply not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/RdefApply': No such file or directory

File yabasic.bison not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/yabasic.bison': No such file or directory

File yabasic.flex not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/yabasic.flex': No such file or directory

File yabasic.h not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/yabasic.h': No such file or directory

File YabInterface.h not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/YabInterface.h': No such file or directory

File YabList.h not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/YabList.h': No such file or directory

File YabMain.cpp not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/YabMain.cpp': No such file or directory

IntelArchitecture (64 bit)
yab 1.8.2, built on BePC-Haiku
  Original yabasic Copyright 1995-2006 by Marc-Oliver Ihm
        yab Copyright 2006-2009 by Jan Bungeroth
        yab improvements Copyright 2013-2018 by Jim Saxton
        yab improvements Copyright 2018-2020 by BeSly Software Solutions (also thanks to Stephan Aßmus for Correction of Code)
        yab improvements Copyright 2021 by BeSly Software Solutions

---Error: could not open '/boot/home/Desktop/Programming/yab_work/BuildFactory/yab_work/BuildFactory/flex-bison.yab': No such file or directory
---Error in ./BuildFactory.yab, line 378: could not open '/boot/home/Desktop/Programming/yab_work/BuildFactory/yab_work/BuildFactory/parts/YabMain.cpp.appsig': No such file or directory
---Dump: sub SetAppSig() called in ./BuildFactory.yab,82
---Error: Program stopped due to an error
Reply
#7
(03-13-2024, 11:06 AM)bbjimmy Wrote: Ahh I see. You are not using the default folder for Buildfactory and not all the files are in your folder. One canot just copy the BuilFactory folder from /system/apps . It does not contain all the files needed. The BuildFactory.yab file copys the files from the dev folder to the Buildfactory folder but it may not work in this case.

It's symlinked back to ~
Reply
#8
Gotta go for an hour or so
Reply
#9
OK,  I did the following
  • moved yab_work back to ~ and symlinked that to my Programming folder instead of the other way round
  • deleted the Buildfactory folder
  • emptied the Trash
  •  uninstalled BuildFactory
  • reinstalled it

and ...

Code:
~/yab_work/BuildFactory> ./BuildFactory.yab allinone ../Examples/AllInOne.yab
This_dir/boot/home/yab_work/BuildFactory
File config.h not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/config.h': No such file or directory

File bison.h not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/bison.h': No such file or directory

File function.c not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/function.c': No such file or directory

File global.h not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/global.h': No such file or directory

File main.c not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/main.c': No such file or directory

File RdefApply not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/RdefApply': No such file or directory

File yabasic.bison not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/yabasic.bison': No such file or directory

File yabasic.flex not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/yabasic.flex': No such file or directory

File yabasic.h not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/yabasic.h': No such file or directory

File YabInterface.h not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/YabInterface.h': No such file or directory

File YabList.h not ok. The app copy it from source is available, otherwise reinstall package.
cp: cannot stat '/boot/system/develop/yab-1.8.0/YabList.h': No such file or directory

File YabMain.cpp ok
IntelArchitecture (64 bit)
yab 1.8.2, built on BePC-Haiku
  Original yabasic Copyright 1995-2006 by Marc-Oliver Ihm
        yab Copyright 2006-2009 by Jan Bungeroth
        yab improvements Copyright 2013-2018 by Jim Saxton
        yab improvements Copyright 2018-2020 by BeSly Software Solutions (also thanks to Stephan Aßmus for Correction of Code)
        yab improvements Copyright 2021 by BeSly Software Solutions

At this stage there is a freeze and CTRL-C is needed to continue

Code:
flex: can't open yabasic.flex
        -- removing not needed stuff ...
Reading file allinone_bf.yab...

Dumping file...

This yab version was compiled on Haiku.
This system is running HAIKU
Writing Automakefile and global.h...

Starting make (ignore warnings)...

rm -f core *.o yabasic.output
g++  -O -I. -DHAVE_CONFIG -DUNIX -DHAIKU -I/boot/system/non-packaged/develop/headers/yab -c YabMain.cpp -o YabMain.o
YabMain.cpp:4:10: fatal error: YabInterface.h: No such file or directory
    4 | #include "YabInterface.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
Automakefile:57: recipe for target 'YabMain.o' failed
make: *** [YabMain.o] Error 1
rm -f core *.o yabasic.output

Finished

/bin/sh: line 1: RdefApply: command not found
addattr: can't add attribute to file allinone: No such file or directory
addattr: can't add attribute to file allinone: No such file or directory
chmod: cannot access 'allinone': No such file or directory
--------
-- Info:
        Number of libs:        0
        Number of subs:        0
        Number of lines:        133
~/yab_work/BuildFactory>


So the flex.c problem has gone but there is something else wrong.
Reply
#10
getting late here. logging out.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)
Free Web Hosting