Skip to content

MacOS: fails to compile #12

@mouse07410

Description

@mouse07410

MacOS Sequoia 15.6.1, Xcode-16.4. Current main branch.

$ cmake .. -DSQISIGN_BUILD_TYPE=broadwell -DBUILD_EXTRAS=ON 
-- The C compiler identification is AppleClang 17.0.0.17000013
-- The ASM compiler identification is AppleClang
-- Found assembler: /opt/local/bin/clang
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/local/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of __uint128_t
-- Check size of __uint128_t - done
-- Using 64-bit radix for gf module
-- Using system GMP
-- Configuring done (3.7s)
-- Generating done (1.1s)
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_EXTRAS


-- Build files have been written to: /Users/ur20980/src/sqisign/build
$
$ time make
[  0%] Building C object src/precomp/ref/lvl1/CMakeFiles/sqisign_precomp_lvl1.dir/ec_params.c.o
In file included from <built-in>:465:
<command line>:9:9: error: 'TARGET_OS_UNIX' macro redefined [-Werror,-Wmacro-redefined]
    9 | #define TARGET_OS_UNIX 1
      |         ^
<built-in>:364:9: note: previous definition is here
  364 | #define TARGET_OS_UNIX 0
      |         ^
1 error generated.
make[2]: *** [src/precomp/ref/lvl1/CMakeFiles/sqisign_precomp_lvl1.dir/ec_params.c.o] Error 1
make[1]: *** [src/precomp/ref/lvl1/CMakeFiles/sqisign_precomp_lvl1.dir/all] Error 2
make: *** [all] Error 2

real	0m0.526s
user	0m0.361s
sys	0m0.124s
$ 

Metadata

Metadata

Assignees

No one assigned

    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