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

Make7 Error #24

Closed
celtic-coder opened this issue Nov 22, 2023 · 3 comments
Closed

Make7 Error #24

celtic-coder opened this issue Nov 22, 2023 · 3 comments

Comments

@celtic-coder
Copy link

Hi Thomas (@ThomasMertes),

This afternoon I was running these commands on Windows following your updates from earlier today (Add support for reading Windows symlinks):

  1. ..\bin\make7 -f mk_mingc.mak clean
  2. ..\bin\make7 -f mk_mingc.mak depend
  3. ..\bin\make7 -f mk_mingc.mak

The "make" command failed with these errors:

..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   cmd_win.c -o cmd_win.o
cmd_win.c: In function 'winReadLink':
cmd_win.c:581:58: error: 'FILE_NAME_OPENED' undeclared (first use in this function)
                                              bufferSize, FILE_NAME_OPENED);
                                                          ^
cmd_win.c:581:58: note: each undeclared identifier is reported only once for each function it appears in
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   dir_win.c -o dir_win.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   dll_win.c -o dll_win.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   fil_win.c -o fil_win.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   pcs_win.c -o pcs_win.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   pol_sel.c -o pol_sel.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   soc_none.c -o soc_none.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   stat_win.c -o stat_win.o
stat_win.c: In function 'lstati64Ext':
stat_win.c:310:64: error: 'FILE_NAME_OPENED' undeclared (first use in this function)
                 GetFinalPathNameByHandleW(fileHandle, NULL, 0, FILE_NAME_OPENED);
                                                                ^
stat_win.c:310:64: note: each undeclared identifier is reported only once for each function it appears in
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   tim_win.c -o tim_win.o
..\bin\call_ar r ..\bin\seed7_05.a arr_rtl.o bln_rtl.o bst_rtl.o chr_rtl.o cmd_rtl.o con_rtl.o dir_rtl.o drw_rtl.o fil_rtl.o flt_rtl.o hsh_rtl.o int_rtl.o itf_rtl.o pcs_rtl.o set_rtl.o soc_rtl.o sql_rtl.o str_rtl.o tim_rtl.o ut8_rtl.o heaputl.o numutl.o sigutl.o striutl.o big_rtl.o big_gmp.o cmd_win.o dir_win.o dll_win.o fil_win.o pcs_win.o pol_sel.o soc_none.o stat_win.o tim_win.o
ar: creating ..\bin\seed7_05.a
ar: cmd_win.o: No such file or directory
..\bin\call_gcc -Wl,--gc-sections,--stack,8388608 s7.o ..\bin\s7_comp.a ..\bin\s7_data.a ..\bin\s7_draw.a ..\bin\s7_con.a ..\bin\s7_db.a ..\bin\seed7_05.a -lws2_32   -lodbc32 -lgdi32 -lm -o ..\bin\s7
gcc: error: ..\bin\seed7_05.a: No such file or directory
del next_lvl
copy ..\bin\s7.exe ..\prg /Y
Cannot copy non-existent file ../bin/s7.exe
..\bin\s7 -l ..\lib level
'c:\seed7\bin\s7' is not recognized as an internal or external command,
operable program or batch file.
 *** [s7] Error 1
 *** Make7 terminated.

I have included below the entire log.

The "make" log:

C:\seed7\src>..\bin\make7 -f mk_mingc.mak
..\bin\call_gcc levelup.c -w -o levelup
.\levelup.exe
Current level is 22
echo X > next_lvl
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   s7.c -o s7.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   runerr.c -o runerr.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   option.c -o option.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   primitiv.c -o primitiv.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   actlib.c -o actlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   arrlib.c -o arrlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   biglib.c -o biglib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   binlib.c -o binlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   blnlib.c -o blnlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   bstlib.c -o bstlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   chrlib.c -o chrlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   cmdlib.c -o cmdlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   conlib.c -o conlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   dcllib.c -o dcllib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   drwlib.c -o drwlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   enulib.c -o enulib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   fillib.c -o fillib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   fltlib.c -o fltlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   hshlib.c -o hshlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   intlib.c -o intlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   itflib.c -o itflib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   kbdlib.c -o kbdlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   lstlib.c -o lstlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   pcslib.c -o pcslib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   pollib.c -o pollib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   prclib.c -o prclib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   prglib.c -o prglib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   reflib.c -o reflib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   rfllib.c -o rfllib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sctlib.c -o sctlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   setlib.c -o setlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   soclib.c -o soclib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sqllib.c -o sqllib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   strlib.c -o strlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   timlib.c -o timlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   typlib.c -o typlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   ut8lib.c -o ut8lib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   exec.c -o exec.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   doany.c -o doany.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   objutl.c -o objutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   act_comp.c -o act_comp.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   prg_comp.c -o prg_comp.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   analyze.c -o analyze.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   syntax.c -o syntax.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   token.c -o token.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   parser.c -o parser.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   name.c -o name.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   type.c -o type.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   expr.c -o expr.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   atom.c -o atom.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   object.c -o object.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   scanner.c -o scanner.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   literal.c -o literal.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   numlit.c -o numlit.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   findid.c -o findid.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   error.c -o error.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   infile.c -o infile.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   libpath.c -o libpath.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   symbol.c -o symbol.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   info.c -o info.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   stat.c -o stat.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   fatal.c -o fatal.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   match.c -o match.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   syvarutl.c -o syvarutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   traceutl.c -o traceutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   actutl.c -o actutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   executl.c -o executl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   blockutl.c -o blockutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   entutl.c -o entutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   identutl.c -o identutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   chclsutl.c -o chclsutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   arrutl.c -o arrutl.o
..\bin\call_ar r ..\bin\s7_comp.a runerr.o option.o primitiv.o actlib.o arrlib.o biglib.o binlib.o blnlib.o bstlib.o chrlib.o cmdlib.o conlib.o dcllib.o drwlib.o enulib.o fillib.o fltlib.o hshlib.o intlib.o itflib.o kbdlib.o lstlib.o pcslib.o pollib.o prclib.o prglib.o reflib.o rfllib.o sctlib.o setlib.o soclib.o sqllib.o strlib.o timlib.o typlib.o ut8lib.o exec.o doany.o objutl.o act_comp.o prg_comp.o analyze.o syntax.o token.o parser.o name.o type.o expr.o atom.o object.o scanner.o literal.o numlit.o findid.o error.o infile.o libpath.o symbol.o info.o stat.o fatal.o match.o syvarutl.o traceutl.o actutl.o executl.o blockutl.o entutl.o identutl.o chclsutl.o arrutl.o
ar: creating ..\bin\s7_comp.a
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   typ_data.c -o typ_data.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   rfl_data.c -o rfl_data.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   ref_data.c -o ref_data.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   listutl.c -o listutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   flistutl.c -o flistutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   typeutl.c -o typeutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   datautl.c -o datautl.o
..\bin\call_ar r ..\bin\s7_data.a typ_data.o rfl_data.o ref_data.o listutl.o flistutl.o typeutl.o datautl.o
ar: creating ..\bin\s7_data.a
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   gkb_rtl.c -o gkb_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   drw_win.c -o drw_win.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   gkb_win.c -o gkb_win.o
..\bin\call_ar r ..\bin\s7_draw.a gkb_rtl.o drw_win.o gkb_win.o
ar: creating ..\bin\s7_draw.a
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   kbd_rtl.c -o kbd_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   con_win.c -o con_win.o
..\bin\call_ar r ..\bin\s7_con.a kbd_rtl.o con_win.o
ar: creating ..\bin\s7_con.a
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sql_base.c -o sql_base.o
..\bin\call_gcc -c   -O2 -g -ffunction-sections -fdata-sections   sql_db2.c
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sql_fire.c -o sql_fire.o
..\bin\call_gcc -c   -O2 -g -ffunction-sections -fdata-sections   sql_ifx.c
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sql_lite.c -o sql_lite.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sql_my.c -o sql_my.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sql_oci.c -o sql_oci.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sql_odbc.c -o sql_odbc.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sql_post.c -o sql_post.o
..\bin\call_gcc -c   -O2 -g -ffunction-sections -fdata-sections   sql_srv.c
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sql_tds.c -o sql_tds.o
..\bin\call_ar r ..\bin\s7_db.a sql_base.o sql_db2.o sql_fire.o sql_ifx.o sql_lite.o sql_my.o sql_oci.o sql_odbc.o sql_post.o sql_srv.o sql_tds.o
ar: creating ..\bin\s7_db.a
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   arr_rtl.c -o arr_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   bln_rtl.c -o bln_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   bst_rtl.c -o bst_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   chr_rtl.c -o chr_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   cmd_rtl.c -o cmd_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   con_rtl.c -o con_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   dir_rtl.c -o dir_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   drw_rtl.c -o drw_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   fil_rtl.c -o fil_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   flt_rtl.c -o flt_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   hsh_rtl.c -o hsh_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   int_rtl.c -o int_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   itf_rtl.c -o itf_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   pcs_rtl.c -o pcs_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   set_rtl.c -o set_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   soc_rtl.c -o soc_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sql_rtl.c -o sql_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   str_rtl.c -o str_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   tim_rtl.c -o tim_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   ut8_rtl.c -o ut8_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   heaputl.c -o heaputl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   numutl.c -o numutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sigutl.c -o sigutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   striutl.c -o striutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   big_rtl.c -o big_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   big_gmp.c -o big_gmp.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   cmd_win.c -o cmd_win.o
cmd_win.c: In function 'winReadLink':
cmd_win.c:581:58: error: 'FILE_NAME_OPENED' undeclared (first use in this function)
                                              bufferSize, FILE_NAME_OPENED);
                                                          ^
cmd_win.c:581:58: note: each undeclared identifier is reported only once for each function it appears in
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   dir_win.c -o dir_win.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   dll_win.c -o dll_win.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   fil_win.c -o fil_win.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   pcs_win.c -o pcs_win.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   pol_sel.c -o pol_sel.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   soc_none.c -o soc_none.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   stat_win.c -o stat_win.o
stat_win.c: In function 'lstati64Ext':
stat_win.c:310:64: error: 'FILE_NAME_OPENED' undeclared (first use in this function)
                 GetFinalPathNameByHandleW(fileHandle, NULL, 0, FILE_NAME_OPENED);
                                                                ^
stat_win.c:310:64: note: each undeclared identifier is reported only once for each function it appears in
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   tim_win.c -o tim_win.o
..\bin\call_ar r ..\bin\seed7_05.a arr_rtl.o bln_rtl.o bst_rtl.o chr_rtl.o cmd_rtl.o con_rtl.o dir_rtl.o drw_rtl.o fil_rtl.o flt_rtl.o hsh_rtl.o int_rtl.o itf_rtl.o pcs_rtl.o set_rtl.o soc_rtl.o sql_rtl.o str_rtl.o tim_rtl.o ut8_rtl.o heaputl.o numutl.o sigutl.o striutl.o big_rtl.o big_gmp.o cmd_win.o dir_win.o dll_win.o fil_win.o pcs_win.o pol_sel.o soc_none.o stat_win.o tim_win.o
ar: creating ..\bin\seed7_05.a
ar: cmd_win.o: No such file or directory
..\bin\call_gcc -Wl,--gc-sections,--stack,8388608 s7.o ..\bin\s7_comp.a ..\bin\s7_data.a ..\bin\s7_draw.a ..\bin\s7_con.a ..\bin\s7_db.a ..\bin\seed7_05.a -lws2_32   -lodbc32 -lgdi32 -lm -o ..\bin\s7
gcc: error: ..\bin\seed7_05.a: No such file or directory
del next_lvl
copy ..\bin\s7.exe ..\prg /Y
Cannot copy non-existent file ../bin/s7.exe
..\bin\s7 -l ..\lib level
'c:\seed7\bin\s7' is not recognized as an internal or external command,
operable program or batch file.
 *** [s7] Error 1
 *** Make7 terminated.

C:\seed7\src>

It would appear that the problem has arisen from changes to cmd_win.c (and other related changes) from this morning. The history of the changes to the file, shows that it was last modified on December 3rd, 2022.

Kind Regards,
Liam

@celtic-coder
Copy link
Author

Hi Thomas (@ThomasMertes),

I reverted the changes from this morning and the "make" step completed without error. I have put the log contents below.

"make" log with reverted changes:

C:\seed7\src>..\bin\make7 -f mk_mingc.mak
..\bin\call_gcc levelup.c -w -o levelup
.\levelup.exe
Current level is 23
echo X > next_lvl
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   s7.c -o s7.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   runerr.c -o runerr.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   option.c -o option.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   primitiv.c -o primitiv.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   actlib.c -o actlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   arrlib.c -o arrlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   biglib.c -o biglib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   binlib.c -o binlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   blnlib.c -o blnlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   bstlib.c -o bstlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   chrlib.c -o chrlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   cmdlib.c -o cmdlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   conlib.c -o conlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   dcllib.c -o dcllib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   drwlib.c -o drwlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   enulib.c -o enulib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   fillib.c -o fillib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   fltlib.c -o fltlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   hshlib.c -o hshlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   intlib.c -o intlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   itflib.c -o itflib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   kbdlib.c -o kbdlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   lstlib.c -o lstlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   pcslib.c -o pcslib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   pollib.c -o pollib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   prclib.c -o prclib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   prglib.c -o prglib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   reflib.c -o reflib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   rfllib.c -o rfllib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sctlib.c -o sctlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   setlib.c -o setlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   soclib.c -o soclib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sqllib.c -o sqllib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   strlib.c -o strlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   timlib.c -o timlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   typlib.c -o typlib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   ut8lib.c -o ut8lib.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   exec.c -o exec.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   doany.c -o doany.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   objutl.c -o objutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   act_comp.c -o act_comp.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   prg_comp.c -o prg_comp.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   analyze.c -o analyze.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   syntax.c -o syntax.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   token.c -o token.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   parser.c -o parser.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   name.c -o name.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   type.c -o type.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   expr.c -o expr.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   atom.c -o atom.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   object.c -o object.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   scanner.c -o scanner.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   literal.c -o literal.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   numlit.c -o numlit.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   findid.c -o findid.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   error.c -o error.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   infile.c -o infile.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   libpath.c -o libpath.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   symbol.c -o symbol.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   info.c -o info.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   stat.c -o stat.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   fatal.c -o fatal.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   match.c -o match.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   syvarutl.c -o syvarutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   traceutl.c -o traceutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   actutl.c -o actutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   executl.c -o executl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   blockutl.c -o blockutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   entutl.c -o entutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   identutl.c -o identutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   chclsutl.c -o chclsutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   arrutl.c -o arrutl.o
..\bin\call_ar r ..\bin\s7_comp.a runerr.o option.o primitiv.o actlib.o arrlib.o biglib.o binlib.o blnlib.o bstlib.o chrlib.o cmdlib.o conlib.o dcllib.o drwlib.o enulib.o fillib.o fltlib.o hshlib.o intlib.o itflib.o kbdlib.o lstlib.o pcslib.o pollib.o prclib.o prglib.o reflib.o rfllib.o sctlib.o setlib.o soclib.o sqllib.o strlib.o timlib.o typlib.o ut8lib.o exec.o doany.o objutl.o act_comp.o prg_comp.o analyze.o syntax.o token.o parser.o name.o type.o expr.o atom.o object.o scanner.o literal.o numlit.o findid.o error.o infile.o libpath.o symbol.o info.o stat.o fatal.o match.o syvarutl.o traceutl.o actutl.o executl.o blockutl.o entutl.o identutl.o chclsutl.o arrutl.o
ar: creating ..\bin\s7_comp.a
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   typ_data.c -o typ_data.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   rfl_data.c -o rfl_data.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   ref_data.c -o ref_data.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   listutl.c -o listutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   flistutl.c -o flistutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   typeutl.c -o typeutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   datautl.c -o datautl.o
..\bin\call_ar r ..\bin\s7_data.a typ_data.o rfl_data.o ref_data.o listutl.o flistutl.o typeutl.o datautl.o
ar: creating ..\bin\s7_data.a
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   gkb_rtl.c -o gkb_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   drw_win.c -o drw_win.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   gkb_win.c -o gkb_win.o
..\bin\call_ar r ..\bin\s7_draw.a gkb_rtl.o drw_win.o gkb_win.o
ar: creating ..\bin\s7_draw.a
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   kbd_rtl.c -o kbd_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   con_win.c -o con_win.o
..\bin\call_ar r ..\bin\s7_con.a kbd_rtl.o con_win.o
ar: creating ..\bin\s7_con.a
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sql_base.c -o sql_base.o
..\bin\call_gcc -c   -O2 -g -ffunction-sections -fdata-sections   sql_db2.c
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sql_fire.c -o sql_fire.o
..\bin\call_gcc -c   -O2 -g -ffunction-sections -fdata-sections   sql_ifx.c
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sql_lite.c -o sql_lite.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sql_my.c -o sql_my.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sql_oci.c -o sql_oci.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sql_odbc.c -o sql_odbc.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sql_post.c -o sql_post.o
..\bin\call_gcc -c   -O2 -g -ffunction-sections -fdata-sections   sql_srv.c
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sql_tds.c -o sql_tds.o
..\bin\call_ar r ..\bin\s7_db.a sql_base.o sql_db2.o sql_fire.o sql_ifx.o sql_lite.o sql_my.o sql_oci.o sql_odbc.o sql_post.o sql_srv.o sql_tds.o
ar: creating ..\bin\s7_db.a
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   arr_rtl.c -o arr_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   bln_rtl.c -o bln_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   bst_rtl.c -o bst_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   chr_rtl.c -o chr_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   cmd_rtl.c -o cmd_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   con_rtl.c -o con_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   dir_rtl.c -o dir_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   drw_rtl.c -o drw_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   fil_rtl.c -o fil_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   flt_rtl.c -o flt_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   hsh_rtl.c -o hsh_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   int_rtl.c -o int_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   itf_rtl.c -o itf_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   pcs_rtl.c -o pcs_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   set_rtl.c -o set_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   soc_rtl.c -o soc_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sql_rtl.c -o sql_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   str_rtl.c -o str_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   tim_rtl.c -o tim_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   ut8_rtl.c -o ut8_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   heaputl.c -o heaputl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   numutl.c -o numutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   sigutl.c -o sigutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   striutl.c -o striutl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   big_rtl.c -o big_rtl.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   big_gmp.c -o big_gmp.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   cmd_win.c -o cmd_win.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   dir_win.c -o dir_win.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   dll_win.c -o dll_win.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   fil_win.c -o fil_win.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   pcs_win.c -o pcs_win.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   pol_sel.c -o pol_sel.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   soc_none.c -o soc_none.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   stat_win.c -o stat_win.o
..\bin\call_gcc -c  -O2 -g -ffunction-sections -fdata-sections   tim_win.c -o tim_win.o
..\bin\call_ar r ..\bin\seed7_05.a arr_rtl.o bln_rtl.o bst_rtl.o chr_rtl.o cmd_rtl.o con_rtl.o dir_rtl.o drw_rtl.o fil_rtl.o flt_rtl.o hsh_rtl.o int_rtl.o itf_rtl.o pcs_rtl.o set_rtl.o soc_rtl.o sql_rtl.o str_rtl.o tim_rtl.o ut8_rtl.o heaputl.o numutl.o sigutl.o striutl.o big_rtl.o big_gmp.o cmd_win.o dir_win.o dll_win.o fil_win.o pcs_win.o pol_sel.o soc_none.o stat_win.o tim_win.o
ar: creating ..\bin\seed7_05.a
..\bin\call_gcc -Wl,--gc-sections,--stack,8388608 s7.o ..\bin\s7_comp.a ..\bin\s7_data.a ..\bin\s7_draw.a ..\bin\s7_con.a ..\bin\s7_db.a ..\bin\seed7_05.a -lws2_32   -lodbc32 -lgdi32 -lm -o ..\bin\s7
del next_lvl
copy ..\bin\s7.exe ..\prg /Y
..\bin\s7 -l ..\lib level
SEED7 INTERPRETER Version 5.2.23  Copyright (c) 1990-2023 Thomas Mertes
Current level is 23

C:\seed7\src>

Kind Regards,
Liam

@ThomasMertes
Copy link
Owner

ThomasMertes commented Nov 23, 2023

Hi Liam,

The commit "Add support for reading Windows symlinks" caused the problem. It uses the windows function GetFinalPathNameByHandleW(). Unfortunately this function is not supported by the embedded 32-bit gcc of the Seed7 installer. The missing FILE_NAME_OPENED is a symptom of that.

I just committed "Check if GetFinalPathNameByHandleW() is available" in which chkccomp.c checks if GetFinalPathNameByHandleW() is available. If not available it is not used.

With this change I can compile with the 32-bit gcc from the Seed7 installer. Unfortunately I tested the Windows symlink change only with a 64-bit gcc.

Sorry for the inconvenience.

Kind Regards,
Thomas

@celtic-coder
Copy link
Author

Hi Thomas (@ThomasMertes),

With this change I can compile with the 32-bit gcc from the Seed7 installer. Unfortunately I tested the Windows symlink change only with a 64-bit gcc.

Sorry for the inconvenience.

It was not an inconvenience. As noted here, I once worked as a contractor for a major international software company. And despite all the testing, there were still bugs.

So, even though I was not a developer, per se, I understand the software development process. Having to revert changes and redo a build process, is not an inconvenience. This is just part of the journey in improving a software product.

Thanks for making the changes for the 32-bit gcc. I can confirm that with today's updates, the "make" step now runs without error.

Kind Regards,
Liam

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

2 participants