Skip to content

Still failing compilation on newer compilers #63

@mouse07410

Description

@mouse07410

Current master still fails (MacOS Sequoia 15.7.1, Xcode-16.4):

$ ./configure
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 2
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether clang accepts -g... yes
checking for clang option to enable C11 features... none needed
checking whether clang understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of clang... gcc3
checking whether the compiler supports GNU C++... yes
checking whether clang++ accepts -g... yes
checking for clang++ option to enable C++11 features... unsupported
checking for clang++ option to enable C++98 features... none needed
checking dependency style of clang++... gcc3
checking for python... /opt/local/bin/python
checking for python version... 3.13
checking for python platform... darwin
checking for GNU default python prefix... ${prefix}
checking for GNU default python exec_prefix... ${exec_prefix}
checking for python script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.13/site-packages
checking for python extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib/python3.13/site-packages
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for ar... ar
checking the archiver (ar) interface... ar
checking whether ln -s works... yes
checking for flex... flex
checking for lex output file root... lex.yy
checking for lex library... none needed
checking for library containing yywrap... -ll
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for a sed that does not truncate output... /opt/local/bin/gsed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking build system type... x86_64-apple-darwin24.6.0
checking host system type... x86_64-apple-darwin24.6.0
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /opt/local/bin/gsed
checking for fgrep... /usr/bin/grep -F
checking for ld used by clang... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /opt/local/bin/nm -B
checking the name lister (/opt/local/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 786432
checking how to convert x86_64-apple-darwin24.6.0 file names to x86_64-apple-darwin24.6.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin24.6.0 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ranlib... ranlib
checking for archiver @FILE support... no
checking for strip... strip
checking command to parse /opt/local/bin/nm -B output from clang object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... ld: warning: -single_module is obsolete
no
checking for -no_fixup_chains linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fno-common -DPIC
checking if clang PIC flag -fno-common -DPIC works... yes
checking if clang static flag -static works... no
checking if clang supports -c -o file.o... yes
checking if clang supports -c -o file.o... (cached) yes
checking whether the clang linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin24.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... clang++ -E
checking for ld used by clang++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking whether the clang++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking for clang++ option to produce PIC... -fno-common -DPIC
checking if clang++ PIC flag -fno-common -DPIC works... yes
checking if clang++ static flag -static works... no
checking if clang++ supports -c -o file.o... yes
checking if clang++ supports -c -o file.o... (cached) yes
checking whether the clang++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin24.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking for pow in -lm... yes
checking for strchr... yes
checking for getchar... yes
checking for memset... yes
checking for memcmp... yes
checking for memcpy... yes
checking for windows.h... no
checking for C-compiler all-warnings support with -Wall... yes
checking for C-compiler extra-warnings support with -Wextra... yes
checking for C++-compiler all-warnings support with -Wall... yes
checking for C++-compiler extra-warnings support with -Wextra... yes
checking whether to build with code coverage support... no
checking for xsltproc... /opt/local/bin/xsltproc
checking for manpage docbook... http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
$ make all
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
clang -DHAVE_CONFIG_H -I.    -I./compiler/core -I./c-lib/inc -I./compiler/back-ends -I. -DCOMPILER -O3 -std=gnu18 -march=native -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -Wall -Wextra -MT compiler/back-ends/py-gen/esnacc-types.o -MD -MP -MF compiler/back-ends/py-gen/.deps/esnacc-types.Tpo -c -o compiler/back-ends/py-gen/esnacc-types.o `test -f 'compiler/back-ends/py-gen/types.c' || echo './'`compiler/back-ends/py-gen/types.c
compiler/back-ends/py-gen/types.c:113:13: warning: unused parameter 'm' [-Wunused-parameter]
  113 |     Module *m _AND_
      |             ^
compiler/back-ends/py-gen/types.c:230:13: error: call to undeclared function 'MakePyStrUnique'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  230 |             MakePyStrUnique(definedNamesG, cne->name, r->maxDigitsToAppend, 1);
      |             ^
compiler/back-ends/py-gen/types.c:230:13: note: did you mean 'MakeCStrUnique'?
./compiler/back-ends/str-util.h:62:7: note: 'MakeCStrUnique' declared here
   62 | void  MakeCStrUnique PROTO ((DefinedObj *nameList, char *str, int maxDigits, int startingDigit));
      |       ^
compiler/back-ends/py-gen/types.c:407:13: error: call to undeclared function 'MakePyStrUnique'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  407 |             MakePyStrUnique(fieldNames, cxxtri->fieldName,
      |             ^
compiler/back-ends/py-gen/types.c:445:13: error: call to undeclared function 'MakePyStrUnique'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  445 |             MakePyStrUnique(fieldNames, cFieldName, r->maxDigitsToAppend, 1);
      |             ^
compiler/back-ends/py-gen/types.c:378:16: warning: variable 'len' set but not used [-Wunused-but-set-variable]
  378 |     int        len;
      |                ^
compiler/back-ends/py-gen/types.c:460:14: warning: unused parameter 'td' [-Wunused-parameter]
  460 |     TypeDef *td _AND_
      |              ^
compiler/back-ends/py-gen/types.c:526:5: error: call to undeclared function 'MakePyStrUnique'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  526 |     MakePyStrUnique (definedNamesG, cxxtdi->className, r->maxDigitsToAppend, 1);
      |     ^
3 warnings and 4 errors generated.
make[1]: *** [compiler/back-ends/py-gen/esnacc-types.o] Error 1
make: *** [all] Error 2
$ 

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions