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

Build failure: knightos-scas on darwin due to missing reference to strcasecmp #305818

Open
siraben opened this issue Apr 21, 2024 · 0 comments
Open
Labels
0.kind: build failure A package fails to build 6.topic: darwin Running or building packages on Darwin

Comments

@siraben
Copy link
Member

siraben commented Apr 21, 2024

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix build .#knightos-scas

Build log

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/z2cc52gks3026g1sljdmd4xljs8sv4jw-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
fixing cmake files...
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/wa7ikfvqpviyilfa2pkf46ijfkxjgmp0-scas-0.5.5/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/wa7ikfvqpviyilfa2pkf46ijfkxjgmp0-scas-0.5.5/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/wa7ikfvqpviyilfa2pkf46ijfkxjgmp0-scas-0.5.5/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/wa7ikfvqpviyilfa2pkf46ijfkxjgmp0-scas-0.5.5/share/doc/scas -DCMAKE_INSTALL_INFODIR=/nix/store/wa7ikfvqpviyilfa2pkf46ijfkxjgmp0-scas-0.5.5/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/wa7ikfvqpviyilfa2pkf46ijfkxjgmp0-scas-0.5.5/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/wa7ikfvqpviyilfa2pkf46ijfkxjgmp0-scas-0.5.5/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/wa7ikfvqpviyilfa2pkf46ijfkxjgmp0-scas-0.5.5/include -DCMAKE_INSTALL_SBINDIR=/nix/store/wa7ikfvqpviyilfa2pkf46ijfkxjgmp0-scas-0.5.5/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/wa7ikfvqpviyilfa2pkf46ijfkxjgmp0-scas-0.5.5/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/wa7ikfvqpviyilfa2pkf46ijfkxjgmp0-scas-0.5.5/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/ln8872dc380w03z5qs10gr1xnzqqkaha-clang-wrapper-16.0.6/bin/strip -DCMAKE_RANLIB=/nix/store/ln8872dc380w03z5qs10gr1xnzqqkaha-clang-wrapper-16.0.6/bin/ranlib -DCMAKE_AR=/nix/store/ln8872dc380w03z5qs10gr1xnzqqkaha-clang-wrapper-16.0.6/bin/ar -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=/nix/store/wa7ikfvqpviyilfa2pkf46ijfkxjgmp0-scas-0.5.5 -DSCAS_LIBRARY=1 
�[0mCMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

�[0m
-- The C compiler identification is Clang 16.0.6
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/ln8872dc380w03z5qs10gr1xnzqqkaha-clang-wrapper-16.0.6/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done (0.4s)
�[33mCMake Warning (dev):
  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
  --help-policy CMP0042" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  MACOSX_RPATH is not specified for the following targets:

   libscas

This warning is for project developers.  Use -Wno-dev to suppress it.
�[0m
-- Generating done (0.0s)
�[33mCMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_TESTING
    CMAKE_CXX_COMPILER
    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_FIND_USE_PACKAGE_REGISTRY
    CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY
    CMAKE_INSTALL_BINDIR
    CMAKE_INSTALL_DOCDIR
    CMAKE_INSTALL_INCLUDEDIR
    CMAKE_INSTALL_INFODIR
    CMAKE_INSTALL_LIBEXECDIR
    CMAKE_INSTALL_LOCALEDIR
    CMAKE_INSTALL_MANDIR
    CMAKE_INSTALL_OLDINCLUDEDIR
    CMAKE_INSTALL_SBINDIR

�[0m
-- Build files have been written to: /tmp/nix-build-scas-0.5.5.drv-0/source/build
cmake: enabled parallel building
cmake: enabled parallel installing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
build flags: -j10 SHELL=/nix/store/84n07r6ipwg61qn1i0v55d4k1nlrjh7f-bash-5.2-p15/bin/bash
[  1%] �[32mBuilding C object CMakeFiles/generate_tables.dir/tables/generate.c.o�[0m
[  2%] �[32m�[1mLinking C executable generate_tables�[0m
[  2%] Built target generate_tables
[  3%] �[34m�[1mGenerating tables/z80.c, tables/generated.h�[0m
Created /tmp/nix-build-scas-0.5.5.drv-0/source/build/tables/
[  3%] Built target tablegen
[  4%] �[32mBuilding C object CMakeFiles/libscas.dir/common/errors.c.o�[0m
[  7%] �[32mBuilding C object CMakeFiles/scdump.dir/common/format.c.o�[0m
[ 11%] �[32mBuilding C object CMakeFiles/scwrap.dir/common/expression.c.o�[0m
[ 11%] �[32mBuilding C object CMakeFiles/scas.dir/common/expression.c.o�[0m
[ 11%] �[32mBuilding C object CMakeFiles/scas.dir/common/format.c.o�[0m
[ 11%] �[32mBuilding C object CMakeFiles/libscas.dir/common/expression.c.o�[0m
[ 11%] �[32mBuilding C object CMakeFiles/scdump.dir/common/errors.c.o�[0m
[ 11%] �[32mBuilding C object CMakeFiles/scwrap.dir/common/errors.c.o�[0m
[ 12%] �[32mBuilding C object CMakeFiles/scas.dir/common/errors.c.o�[0m
[ 13%] �[32mBuilding C object CMakeFiles/scdump.dir/common/expression.c.o�[0m
In file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/errors.c:8:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/list.h:7:20: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
list_t *create_list();
�[0;1;32m                   ^
�[0m�[0;32m                    void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/errors.c:9:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/stack.h:7:25: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
stack_type *create_stack();
�[0;1;32m                        ^
�[0m�[0;32m                         void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/errors.c:12:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/expression.h:43:28: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
void initialize_expressions();
�[0;1;32m                           ^
�[0m�[0;32m                            void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/errors.c:13:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/objects.h:71:24: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
object_t *create_object();
�[0;1;32m                       ^
�[0m�[0;32m                        void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:8:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/list.h:7:20: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
list_t *create_list();
�[0;1;32m                   ^
�[0m�[0;32m                    void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:9:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/stack.h:7:25: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
stack_type *create_stack();
�[0;1;32m                        ^
�[0m�[0;32m                         void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:10:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/expression.h:43:28: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
void initialize_expressions();
�[0;1;32m                           ^
�[0m�[0;32m                            void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/errors.c:8:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/list.h:7:20: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
list_t *create_list();
�[0;1;32m                   ^
�[0m�[0;32m                    void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/errors.c:9:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/stack.h:7:25: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
stack_type *create_stack();
�[0;1;32m                        ^
�[0m�[0;32m                         void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/errors.c:12:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/In file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:15:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/objects.h:71:24: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
object_t *create_object();
�[0;1;32m                       ^
�[0m�[0;32m                        void
�[0msource/include/expression.h:43:28: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
void initialize_expressions();
�[0;1;32m                           ^
�[0m�[0;32m                            void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/errors.c:13:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/objects.h:71:24: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
object_t *create_object();
�[0;1;32m                       ^
�[0m�[0;32m                        void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:8:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/list.h:7:20: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
list_t *create_list();
�[0;1;32m                   ^
�[0m�[0;32m                    void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:9:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/stack.h:7:25: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
stack_type *create_stack();
�[0;1;32m                        ^
�[0m�[0;32m                         void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:10:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/expression.h:43:28: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
void initialize_expressions();
�[0;1;32m                           ^
�[0m�[0;32m                            void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/errors.c:8:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/list.h:7:20: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
list_t *create_list();
�[0;1;32m                   ^
�[0m�[0;32m                    void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/errors.c:9:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/stack.h:7:25: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
stack_type *create_stack();
�[0;1;32m                        ^
�[0m�[0;32m                         void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/errors.In file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/errors.c:12:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/expression.h:43:28: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
void initialize_expressions();
�[0;1;32m                           ^
�[0m�[0;32m                            void
�[0mc:8:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/list.h:7:20: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
list_t *create_list();
�[0;1;32m                   ^
�[0m�[0;32m                    void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/errors.c:13:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/objects.h:71:24: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
object_t *create_object();
�[0;1;32m                       ^
�[0m�[0;32m                        void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/errors.c:9:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/stack.h:7:25: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
stack_type *create_stack();
�[0;1;32m                        ^
�[0m�[0;32m                         void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/errors.c:12:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/expression.h:43:28: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
void initialize_expressions();
�[0;1;32m                           ^
�[0m�[0;32m                            void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:8:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/list.h:7:20: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
list_t *create_list();
�[0;1;32m                   ^
�[0m�[0;32m                    void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:9:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/stack.h:7:25: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
stack_type *create_stack();
�[0;1;32m                        ^
�[0m�[0;32m                         void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/errors.c:13:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/objects.h:71:24: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
object_t *create_object();
�[0;1;32m                       ^
�[0m�[0;32m                        void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:15:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/objects.h:71:24: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
object_t *create_object();
�[0;1;32m                       ^
�[0m�[0;32m                        void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:10:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/expression.h:43:28: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
void initialize_expressions();
�[0;1;32m                           ^
�[0m�[0;32m                            void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:8:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/list.h:7:20: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:137:list_t *create_list();
�[0;1;32m                   ^
�[0m�[0;32m                    void
�[0m�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:137:10: �[0m�[0;1;31merror: �[0m�[1mcall to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]�[0m
                                        if (strcasecmp(sym->name, token->symbol) == 0) {
�[0;1;32m                                            ^
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:9:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/stack.h:7:25: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
10: �[0mstack_type *create_stack();�[0;1;31m
error: �[0;1;32m�[0m                        ^�[1m
call to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]�[0m�[0m�[0;32m
                         void
�[0m                                        if (strcasecmp(sym->name, token->symbol) == 0) {
�[0;1;32m                                            ^
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:10:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/expression.h:43:28: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
void initialize_expressions();
�[0;1;32m                           ^
�[0m�[0;32m                            void
�[0m4 warnings and 1 error generated.
In file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:15:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/objects.h:71:24: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
In file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:15:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/objects.h:71:24: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
object_t *create_object();
�[0;1;32m                       ^
�[0m�[0;32m                        void
�[0mobject_t *create_object();
�[0;1;32m                       ^
�[0m�[0;32m                        void
�[0m4 warnings and 1 error generated.
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:137:10: �[0m�[0;1;31merror: �[0m�[1mcall to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]�[0m
                                        if (strcasecmp(sym->name, token->symbol) == 0) {
�[0;1;32m                                            ^
�[0m4 warnings and 1 error generated.
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/common/expression.c:137:10: �[0m�[0;1;31merror: �[0m�[1mcall to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]�[0m
                                        if (strcasecmp(sym->name, token->symbol) == 0) {
�[0;1;32m                                            ^
�[0m4 warnings and 1 error generated.
4 warnings generated.
make[2]: *** [CMakeFiles/scas.dir/build.make:98: CMakeFiles/scas.dir/common/expression.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
4 warnings generated.
4 warnings generated.
4 warnings generated.
make[2]: *** [CMakeFiles/scwrap.dir/build.make:98: CMakeFiles/scwrap.dir/common/expression.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/scdump.dir/build.make:98: CMakeFiles/scdump.dir/common/expression.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/libscas.dir/build.make:98: CMakeFiles/libscas.dir/common/expression.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:227: CMakeFiles/scwrap.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:146: CMakeFiles/scas.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:200: CMakeFiles/scdump.dir/all] Error 2
[ 15%] �[32mBuilding C object CMakeFiles/libscas.dir/common/format.c.o�[0m
[ 15%] �[32mBuilding C object CMakeFiles/libscas.dir/common/functions.c.o�[0m
In file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/functions.c:7:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/list.h:7:20: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
list_t *create_list();
�[0;1;32m                   ^
�[0m�[0;32m                    void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/functions.c:8:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/stack.h:7:25: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
stack_type *create_stack();
�[0;1;32m                        ^
�[0m�[0;32m                         void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/functions.c:9:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/expression.h:43:28: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
void initialize_expressions();
�[0;1;32m                           ^
�[0m�[0;32m                            void
�[0mIn file included from /tmp/nix-build-scas-0.5.5.drv-0/source/common/functions.c:10:
�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/include/objects.h:71:24: �[0m�[0;1;35mwarning: �[0m�[1ma function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]�[0m
object_t *create_object();
�[0;1;32m                       ^
�[0m�[0;32m                        void
�[0m�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/common/functions.c:29:7: �[0m�[0;1;31merror: �[0m�[1mcall to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]�[0m
                if (strcasecmp(sym->name, name) == 0) {
�[0;1;32m                    ^
�[0m�[1m/tmp/nix-build-scas-0.5.5.drv-0/source/common/functions.c:51:7: �[0m�[0;1;31merror: �[0m�[1mcall to undeclared function 'strcasecmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]�[0m
                if (strcasecmp(func->name, name) == 0) {
�[0;1;32m                    ^
�[0m4 warnings and 2 errors generated.
make[2]: *** [CMakeFiles/libscas.dir/build.make:126: CMakeFiles/libscas.dir/common/functions.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:173: CMakeFiles/libscas.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Additional context

I did a bisection and the commit to blame seems to be llvmPackages bump from 11 to 16 on darwin @NixOS/darwin-maintainers

❯ git bisect log
git bisect start
# status: waiting for both good and bad commits
# bad: [666bb4ea052c57fcca2945cee854208d61dd2b75] Merge pull request #294155 from equirosa/signal-desktop-beta-up-from-v7.2.0-beta.1
git bisect bad 666bb4ea052c57fcca2945cee854208d61dd2b75
# status: waiting for good commit(s), bad commit known
# good: [1d9483230a9d2d9ed8e9167cdb0f982fedc60e86] Merge master into staging-next
git bisect good 1d9483230a9d2d9ed8e9167cdb0f982fedc60e86
# bad: [6bda04eb17f4d6d1f3d2d864475754a8a8fd966d] Merge pull request #279802 from r-ryantm/auto-update/enc
git bisect bad 6bda04eb17f4d6d1f3d2d864475754a8a8fd966d
# bad: [c47766d44a2b082c2c89d56a27512352dd95ef00] Merge staging-next into staging
git bisect bad c47766d44a2b082c2c89d56a27512352dd95ef00
# good: [11e04c904399271e608ecc68c0405ad70ce622a7] Merge pull request #265988 from mweinelt/firefox-119.0.1
git bisect good 11e04c904399271e608ecc68c0405ad70ce622a7
# bad: [b103e1e3d7fc1a967b347af017c110fb9ea7a69b] gst-plugins-good: add openssl dependency
git bisect bad b103e1e3d7fc1a967b347af017c110fb9ea7a69b
# good: [3620d64912f35e984fb5a1ce61b6c29fb48072d8] Merge pull request #267092 from trofi/xtuner-zhf
git bisect good 3620d64912f35e984fb5a1ce61b6c29fb48072d8
# bad: [f99ac6d6f7996d7eca2016f229cfb8a746ab05f3] Merge branch 'staging-next' into perl-updates
git bisect bad f99ac6d6f7996d7eca2016f229cfb8a746ab05f3
# good: [64f82333aae1657df4bb232320ed71f92816b9d1] perlPackages.CSSDOM: fix test
git bisect good 64f82333aae1657df4bb232320ed71f92816b9d1
# bad: [85e53860c5cec154b7c3e9cbe9fad26d1a999de8] Merge pull request #262227 from trofi/percona-server_8_0-no-alias
git bisect bad 85e53860c5cec154b7c3e9cbe9fad26d1a999de8
# good: [2e97a3af0d045d47162eaddf36b99de6c1889766] Merge staging-next into staging
git bisect good 2e97a3af0d045d47162eaddf36b99de6c1889766
# good: [b4c4fd5f96f02d9e24c583f438655f5e0bc6d241] Merge pull request #259562 from trofi/xkeyboard_config-update
git bisect good b4c4fd5f96f02d9e24c583f438655f5e0bc6d241
# good: [5a1cc0e11dc9f5916db4c93d3080aa295f7f9247] Merge pull request #258431 from pbsds/stabilize-patches
git bisect good 5a1cc0e11dc9f5916db4c93d3080aa295f7f9247
# good: [024144542b9553e2d098ae3b3ab7f0690d71a51a] Merge staging-next into staging
git bisect good 024144542b9553e2d098ae3b3ab7f0690d71a51a
# good: [d7d8f296e72931c51cdbae9009b469da33dd9564] Merge pull request #253009 from reckenrode/node-fix
git bisect good d7d8f296e72931c51cdbae9009b469da33dd9564
# bad: [cad1b2525d506ce75b9e3de3343a63722f2063e9] Merge pull request #241692 from reckenrode/darwin-llvm16-update
git bisect bad cad1b2525d506ce75b9e3de3343a63722f2063e9
# bad: [9ed7bfe46bf193e55a6fd8ae89dfe54b4dca2c18] llvmPackages: 11 -> 16 on Linux
git bisect bad 9ed7bfe46bf193e55a6fd8ae89dfe54b4dca2c18
# bad: [bcbdb800cf7659d6ff36ac114121a056fe8c9656] llvmPackages: 11 -> 16 on Darwin
git bisect bad bcbdb800cf7659d6ff36ac114121a056fe8c9656
# first bad commit: [bcbdb800cf7659d6ff36ac114121a056fe8c9656] llvmPackages: 11 -> 16 on Darwin

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.3.0, macOS 14.3.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.20.5`
 - nixpkgs: `/nix/store/ka3vmkgvsn6cj8dywj7n1xl3bm54gxm7-source`

Add a 👍 reaction to issues you find important.

@siraben siraben added the 0.kind: build failure A package fails to build label Apr 21, 2024
@ofalvai ofalvai added the 6.topic: darwin Running or building packages on Darwin label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants