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

Compile failure under macOS Monterey ARM #94

Closed
sclsj opened this issue Apr 4, 2022 · 3 comments
Closed

Compile failure under macOS Monterey ARM #94

sclsj opened this issue Apr 4, 2022 · 3 comments
Labels

Comments

@sclsj
Copy link

sclsj commented Apr 4, 2022

Jin@Joy-MBP ~/t/build (master)> cmake ../ ; make -i
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Checking for __attribute__((packed))
-- Checking for __attribute__((packed)) - done
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Check size of off_t
-- Check size of off_t - done
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for scandir
-- Looking for scandir - found
-- Looking for fstat
-- Looking for fstat - found
-- Looking for fileno
-- Looking for fileno - found
-- Looking for getc_unlocked
-- Looking for getc_unlocked - found
-- Looking for fread_unlocked
-- Looking for fread_unlocked - not found
-- Looking for pow
-- Looking for pow - found
-- Found OpenMP_C: -Xclang -fopenmp (found version "5.0") 
-- Found OpenMP_CXX: -Xclang -fopenmp (found version "5.0") 
-- Found OpenMP: TRUE (found version "5.0")  
-- Found BISON: /usr/bin/bison (found version "2.3") 
-- Found FLEX: /usr/bin/flex (found version "2.6.4") 
-- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2") 
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jin/thtk/build
[  1%] Building C object extlib/CMakeFiles/z.dir/zlib-ng/adler32.c.o
[  2%] Building C object extlib/CMakeFiles/z.dir/zlib-ng/compress.c.o
[  3%] Building C object extlib/CMakeFiles/z.dir/zlib-ng/crc32.c.o
[  5%] Building C object extlib/CMakeFiles/z.dir/zlib-ng/deflate.c.o
[  6%] Building C object extlib/CMakeFiles/z.dir/zlib-ng/deflate_fast.c.o
[  7%] Building C object extlib/CMakeFiles/z.dir/zlib-ng/deflate_medium.c.o
[  8%] Building C object extlib/CMakeFiles/z.dir/zlib-ng/deflate_slow.c.o
[ 10%] Building C object extlib/CMakeFiles/z.dir/zlib-ng/functable.c.o
[ 11%] Building C object extlib/CMakeFiles/z.dir/zlib-ng/infback.c.o
[ 12%] Building C object extlib/CMakeFiles/z.dir/zlib-ng/inffast.c.o
[ 13%] Building C object extlib/CMakeFiles/z.dir/zlib-ng/inflate.c.o
[ 15%] Building C object extlib/CMakeFiles/z.dir/zlib-ng/inftrees.c.o
[ 16%] Building C object extlib/CMakeFiles/z.dir/zlib-ng/match.c.o
[ 17%] Building C object extlib/CMakeFiles/z.dir/zlib-ng/trees.c.o
[ 18%] Building C object extlib/CMakeFiles/z.dir/zlib-ng/uncompr.c.o
[ 20%] Building C object extlib/CMakeFiles/z.dir/zlib-ng/zutil.c.o
[ 21%] Linking C static library libz.a
[ 21%] Built target z
[ 22%] Building C object extlib/CMakeFiles/png.dir/libpng/png.c.o
[ 24%] Building C object extlib/CMakeFiles/png.dir/libpng/pngerror.c.o
[ 25%] Building C object extlib/CMakeFiles/png.dir/libpng/pngget.c.o
[ 26%] Building C object extlib/CMakeFiles/png.dir/libpng/pngmem.c.o
[ 27%] Building C object extlib/CMakeFiles/png.dir/libpng/pngpread.c.o
[ 29%] Building C object extlib/CMakeFiles/png.dir/libpng/pngread.c.o
[ 30%] Building C object extlib/CMakeFiles/png.dir/libpng/pngrio.c.o
[ 31%] Building C object extlib/CMakeFiles/png.dir/libpng/pngrtran.c.o
[ 32%] Building C object extlib/CMakeFiles/png.dir/libpng/pngrutil.c.o
[ 34%] Building C object extlib/CMakeFiles/png.dir/libpng/pngset.c.o
[ 35%] Building C object extlib/CMakeFiles/png.dir/libpng/pngtrans.c.o
[ 36%] Building C object extlib/CMakeFiles/png.dir/libpng/pngwio.c.o
[ 37%] Building C object extlib/CMakeFiles/png.dir/libpng/pngwrite.c.o
[ 39%] Building C object extlib/CMakeFiles/png.dir/libpng/pngwtran.c.o
[ 40%] Building C object extlib/CMakeFiles/png.dir/libpng/pngwutil.c.o
[ 41%] Linking C static library libpng.a
[ 41%] Built target png
[ 43%] Building C object util/CMakeFiles/util.dir/file.c.o
[ 44%] Building C object util/CMakeFiles/util.dir/list.c.o
[ 45%] Building C object util/CMakeFiles/util.dir/program.c.o
[ 46%] Building C object util/CMakeFiles/util.dir/util.c.o
[ 48%] Building C object util/CMakeFiles/util.dir/value.c.o
[ 49%] Building C object util/CMakeFiles/util.dir/mygetopt.c.o
[ 50%] Linking C static library libutil.a
[ 50%] Built target util
[ 51%] Building C object thanm/CMakeFiles/thanm.dir/thanm.c.o
In file included from /Users/jin/thtk/thanm/thanm.c:37:
In file included from /Users/jin/thtk/thanm/image.h:33:
/Users/jin/thtk/extlib/thtypes/anm_types.h:8:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
#include "pragma_push.h"
         ^
/Users/jin/thtk/extlib/thtypes/pragma_push.h:11:9: note: previous '#pragma pack' directive that modifies alignment is here
#pragma pack(push, 1)
        ^
In file included from /Users/jin/thtk/thanm/thanm.c:37:
In file included from /Users/jin/thtk/thanm/image.h:33:
/Users/jin/thtk/extlib/thtypes/anm_types.h:117:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
#include "pragma_pop.h"
         ^
note: previous '#pragma pack' directive that modifies alignment is here
2 warnings generated.
[ 53%] Building C object thanm/CMakeFiles/thanm.dir/image.c.o
In file included from /Users/jin/thtk/thanm/image.c:37:
In file included from /Users/jin/thtk/thanm/image.h:33:
/Users/jin/thtk/extlib/thtypes/anm_types.h:8:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
#include "pragma_push.h"
         ^
/Users/jin/thtk/extlib/thtypes/pragma_push.h:11:9: note: previous '#pragma pack' directive that modifies alignment is here
#pragma pack(push, 1)
        ^
In file included from /Users/jin/thtk/thanm/image.c:37:
In file included from /Users/jin/thtk/thanm/image.h:33:
/Users/jin/thtk/extlib/thtypes/anm_types.h:117:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
#include "pragma_pop.h"
         ^
note: previous '#pragma pack' directive that modifies alignment is here
2 warnings generated.
[ 54%] Linking C executable thanm
Undefined symbols for architecture arm64:
  "_adler32_neon", referenced from:
      _adler32_stub in libz.a(functable.c.o)
  "_crc32_acle", referenced from:
      _crc32_z in libz.a(crc32.c.o)
  "_fill_window_arm", referenced from:
      _fill_window_stub in libz.a(functable.c.o)
  "_png_init_filter_functions_neon", referenced from:
      _png_init_filter_functions in libpng.a(pngrutil.c.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ 54%] Built target thanm
[ 55%] Building C object thtk/CMakeFiles/thtk.dir/bits.c.o
[ 56%] Building C object thtk/CMakeFiles/thtk.dir/error.c.o
[ 58%] Building C object thtk/CMakeFiles/thtk.dir/io.c.o
[ 59%] Building C object thtk/CMakeFiles/thtk.dir/thcrypt.c.o
[ 60%] Building C object thtk/CMakeFiles/thtk.dir/thcrypt105.c.o
[ 62%] Building C object thtk/CMakeFiles/thtk.dir/rng_mt.c.o
[ 63%] Building C object thtk/CMakeFiles/thtk.dir/thdat.c.o
[ 64%] Building C object thtk/CMakeFiles/thtk.dir/thdat02.c.o
[ 65%] Building C object thtk/CMakeFiles/thtk.dir/thdat06.c.o
[ 67%] Building C object thtk/CMakeFiles/thtk.dir/thdat08.c.o
[ 68%] Building C object thtk/CMakeFiles/thtk.dir/thdat95.c.o
[ 69%] Building C object thtk/CMakeFiles/thtk.dir/thdat105.c.o
[ 70%] Building C object thtk/CMakeFiles/thtk.dir/thlzss.c.o
[ 72%] Building C object thtk/CMakeFiles/thtk.dir/thrle.c.o
[ 73%] Building C object thtk/CMakeFiles/thtk.dir/detect.c.o
[ 74%] Linking C shared library libthtk.dylib
Undefined symbols for architecture arm64:
  "___kmpc_critical", referenced from:
      _th02_read in thdat02.c.o
      _th02_write in thdat02.c.o
      _th06_read in thdat06.c.o
      _th06_write in thdat06.c.o
      _th08_read in thdat08.c.o
      _th08_write in thdat08.c.o
      _th95_read in thdat95.c.o
      ...
  "___kmpc_end_critical", referenced from:
      _th02_read in thdat02.c.o
      _th02_write in thdat02.c.o
      _th06_read in thdat06.c.o
      _th06_write in thdat06.c.o
      _th08_read in thdat08.c.o
      _th08_write in thdat08.c.o
      _th95_read in thdat95.c.o
      ...
  "___kmpc_global_thread_num", referenced from:
      _th02_read in thdat02.c.o
      _th02_write in thdat02.c.o
      _th06_read in thdat06.c.o
      _th06_write in thdat06.c.o
      _th08_read in thdat08.c.o
      _th08_write in thdat08.c.o
      _th95_read in thdat95.c.o
      ...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ 74%] Built target thtk
[ 75%] Building C object thdat/CMakeFiles/thdat.dir/thdat.c.o
make[2]: *** No rule to make target `thtk/libthtk.1.0.0.dylib', needed by `thdat/thdat'.  Stop.
[ 77%] Built target thdat
[ 78%] [FLEX][EcsScan] Building scanner with flex 2.6.4
[ 79%] [BISON][EcsParse] Building parser with bison 2.3
ecsparse.y:177.9-19: syntax error, unexpected identifier, expecting string
[ 79%] [BISON][EcsParse] Building parser with bison 2.3
ecsparse.y:177.9-19: syntax error, unexpected identifier, expecting string
[ 81%] Building C object thecl/CMakeFiles/thecl.dir/ecsparse.c.o
clang: error: no such file or directory: '/Users/jin/thtk/build/thecl/ecsparse.c'
clang: error: no input files
[ 82%] Building C object thecl/CMakeFiles/thecl.dir/ecsscan.c.o
ecsscan.l:38:14: fatal error: 'ecsparse.h' file not found
    #include "ecsparse.h"
             ^~~~~~~~~~~~
1 error generated.
[ 83%] Building C object thecl/CMakeFiles/thecl.dir/expr.c.o
/Users/jin/thtk/thecl/expr.c:32:10: fatal error: 'ecsparse.h' file not found
#include "ecsparse.h"
         ^~~~~~~~~~~~
1 error generated.
[ 84%] Building C object thecl/CMakeFiles/thecl.dir/thecl.c.o
[ 86%] Building C object thecl/CMakeFiles/thecl.dir/seqmap.c.o
[ 87%] Building C object thecl/CMakeFiles/thecl.dir/eclmap.c.o
[ 88%] Building C object thecl/CMakeFiles/thecl.dir/path.c.o
[ 89%] Building C object thecl/CMakeFiles/thecl.dir/thecl06.c.o
[ 91%] Building C object thecl/CMakeFiles/thecl.dir/thecl10.c.o
[ 92%] Linking C executable thecl
clang: error: no such file or directory: 'CMakeFiles/thecl.dir/ecsparse.c.o'
clang: error: no such file or directory: 'CMakeFiles/thecl.dir/ecsscan.c.o'
clang: error: no such file or directory: 'CMakeFiles/thecl.dir/expr.c.o'
[ 92%] Built target thecl
[ 93%] Building C object thmsg/CMakeFiles/thmsg.dir/thmsg.c.o
[ 94%] Building C object thmsg/CMakeFiles/thmsg.dir/thmsg06.c.o
[ 96%] Building C object thmsg/CMakeFiles/thmsg.dir/thmsg95.c.o
[ 97%] Linking C executable thmsg
[ 97%] Built target thmsg
[ 98%] Building C object thstd/CMakeFiles/thstd.dir/thstd.c.o
[100%] Linking C executable thstd
[100%] Built target thstd
Jin@Joy-MBP ~/t/build (master) [SIGINT]> cmake ../ -DCMAKE_INSTALL_PREFIX=/opt/homebrew/Cellar/thtk/12 -DWITH_LIBPNG_SOURCE=OFF ; make -i
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Checking for __attribute__((packed))
-- Checking for __attribute__((packed)) - done
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Check size of off_t
-- Check size of off_t - done
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for scandir
-- Looking for scandir - found
-- Looking for fstat
-- Looking for fstat - found
-- Looking for fileno
-- Looking for fileno - found
-- Looking for getc_unlocked
-- Looking for getc_unlocked - found
-- Looking for fread_unlocked
-- Looking for fread_unlocked - not found
-- Found ZLIB: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/lib/libz.tbd (found version "1.2.11") 
-- Found PNG: /opt/homebrew/lib/libpng.dylib (found suitable version "1.6.37", minimum required is "1.6") 
-- Found OpenMP_C: -Xclang -fopenmp (found version "5.0") 
-- Found OpenMP_CXX: -Xclang -fopenmp (found version "5.0") 
-- Found OpenMP: TRUE (found version "5.0")  
-- Found BISON: /usr/bin/bison (found version "2.3") 
-- Found FLEX: /usr/bin/flex (found version "2.6.4") 
-- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2") 
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jin/thtk/build
[  2%] Building C object util/CMakeFiles/util.dir/file.c.o
[  4%] Building C object util/CMakeFiles/util.dir/list.c.o
[  6%] Building C object util/CMakeFiles/util.dir/program.c.o
[  8%] Building C object util/CMakeFiles/util.dir/util.c.o
[ 10%] Building C object util/CMakeFiles/util.dir/value.c.o
[ 13%] Building C object util/CMakeFiles/util.dir/mygetopt.c.o
[ 15%] Linking C static library libutil.a
[ 15%] Built target util
[ 17%] Building C object thanm/CMakeFiles/thanm.dir/thanm.c.o
In file included from /Users/jin/thtk/thanm/thanm.c:37:
In file included from /Users/jin/thtk/thanm/image.h:33:
/Users/jin/thtk/extlib/thtypes/anm_types.h:8:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
#include "pragma_push.h"
         ^
/Users/jin/thtk/extlib/thtypes/pragma_push.h:11:9: note: previous '#pragma pack' directive that modifies alignment is here
#pragma pack(push, 1)
        ^
In file included from /Users/jin/thtk/thanm/thanm.c:37:
In file included from /Users/jin/thtk/thanm/image.h:33:
/Users/jin/thtk/extlib/thtypes/anm_types.h:117:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
#include "pragma_pop.h"
         ^
note: previous '#pragma pack' directive that modifies alignment is here
2 warnings generated.
[ 19%] Building C object thanm/CMakeFiles/thanm.dir/image.c.o
In file included from /Users/jin/thtk/thanm/image.c:37:
In file included from /Users/jin/thtk/thanm/image.h:33:
/Users/jin/thtk/extlib/thtypes/anm_types.h:8:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
#include "pragma_push.h"
         ^
/Users/jin/thtk/extlib/thtypes/pragma_push.h:11:9: note: previous '#pragma pack' directive that modifies alignment is here
#pragma pack(push, 1)
        ^
In file included from /Users/jin/thtk/thanm/image.c:37:
In file included from /Users/jin/thtk/thanm/image.h:33:
/Users/jin/thtk/extlib/thtypes/anm_types.h:117:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
#include "pragma_pop.h"
         ^
note: previous '#pragma pack' directive that modifies alignment is here
2 warnings generated.
[ 21%] Linking C executable thanm
[ 21%] Built target thanm
[ 23%] Building C object thtk/CMakeFiles/thtk.dir/bits.c.o
[ 26%] Building C object thtk/CMakeFiles/thtk.dir/error.c.o
[ 28%] Building C object thtk/CMakeFiles/thtk.dir/io.c.o
[ 30%] Building C object thtk/CMakeFiles/thtk.dir/thcrypt.c.o
[ 32%] Building C object thtk/CMakeFiles/thtk.dir/thcrypt105.c.o
[ 34%] Building C object thtk/CMakeFiles/thtk.dir/rng_mt.c.o
[ 36%] Building C object thtk/CMakeFiles/thtk.dir/thdat.c.o
[ 39%] Building C object thtk/CMakeFiles/thtk.dir/thdat02.c.o
[ 41%] Building C object thtk/CMakeFiles/thtk.dir/thdat06.c.o
[ 43%] Building C object thtk/CMakeFiles/thtk.dir/thdat08.c.o
[ 45%] Building C object thtk/CMakeFiles/thtk.dir/thdat95.c.o
[ 47%] Building C object thtk/CMakeFiles/thtk.dir/thdat105.c.o
[ 50%] Building C object thtk/CMakeFiles/thtk.dir/thlzss.c.o
[ 52%] Building C object thtk/CMakeFiles/thtk.dir/thrle.c.o
[ 54%] Building C object thtk/CMakeFiles/thtk.dir/detect.c.o
[ 56%] Linking C shared library libthtk.dylib
Undefined symbols for architecture arm64:
  "___kmpc_critical", referenced from:
      _th02_read in thdat02.c.o
      _th02_write in thdat02.c.o
      _th06_read in thdat06.c.o
      _th06_write in thdat06.c.o
      _th08_read in thdat08.c.o
      _th08_write in thdat08.c.o
      _th95_read in thdat95.c.o
      ...
  "___kmpc_end_critical", referenced from:
      _th02_read in thdat02.c.o
      _th02_write in thdat02.c.o
      _th06_read in thdat06.c.o
      _th06_write in thdat06.c.o
      _th08_read in thdat08.c.o
      _th08_write in thdat08.c.o
      _th95_read in thdat95.c.o
      ...
  "___kmpc_global_thread_num", referenced from:
      _th02_read in thdat02.c.o
      _th02_write in thdat02.c.o
      _th06_read in thdat06.c.o
      _th06_write in thdat06.c.o
      _th08_read in thdat08.c.o
      _th08_write in thdat08.c.o
      _th95_read in thdat95.c.o
      ...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ 56%] Built target thtk
[ 58%] Building C object thdat/CMakeFiles/thdat.dir/thdat.c.o
make[2]: *** No rule to make target `thtk/libthtk.1.0.0.dylib', needed by `thdat/thdat'.  Stop.
[ 60%] Built target thdat
[ 63%] [FLEX][EcsScan] Building scanner with flex 2.6.4
[ 65%] [BISON][EcsParse] Building parser with bison 2.3
ecsparse.y:177.9-19: syntax error, unexpected identifier, expecting string
[ 65%] [BISON][EcsParse] Building parser with bison 2.3
ecsparse.y:177.9-19: syntax error, unexpected identifier, expecting string
[ 67%] Building C object thecl/CMakeFiles/thecl.dir/ecsparse.c.o
clang: error: no such file or directory: '/Users/jin/thtk/build/thecl/ecsparse.c'
clang: error: no input files
[ 69%] Building C object thecl/CMakeFiles/thecl.dir/ecsscan.c.o
ecsscan.l:38:14: fatal error: 'ecsparse.h' file not found
    #include "ecsparse.h"
             ^~~~~~~~~~~~
1 error generated.
[ 71%] Building C object thecl/CMakeFiles/thecl.dir/expr.c.o
/Users/jin/thtk/thecl/expr.c:32:10: fatal error: 'ecsparse.h' file not found
#include "ecsparse.h"
         ^~~~~~~~~~~~
1 error generated.
[ 73%] Building C object thecl/CMakeFiles/thecl.dir/thecl.c.o
[ 76%] Building C object thecl/CMakeFiles/thecl.dir/seqmap.c.o
[ 78%] Building C object thecl/CMakeFiles/thecl.dir/eclmap.c.o
[ 80%] Building C object thecl/CMakeFiles/thecl.dir/path.c.o
[ 82%] Building C object thecl/CMakeFiles/thecl.dir/thecl06.c.o
[ 84%] Building C object thecl/CMakeFiles/thecl.dir/thecl10.c.o
[ 86%] Linking C executable thecl
clang: error: no such file or directory: 'CMakeFiles/thecl.dir/ecsparse.c.o'
clang: error: no such file or directory: 'CMakeFiles/thecl.dir/ecsscan.c.o'
clang: error: no such file or directory: 'CMakeFiles/thecl.dir/expr.c.o'
[ 86%] Built target thecl
[ 89%] Building C object thmsg/CMakeFiles/thmsg.dir/thmsg.c.o
[ 91%] Building C object thmsg/CMakeFiles/thmsg.dir/thmsg06.c.o
[ 93%] Building C object thmsg/CMakeFiles/thmsg.dir/thmsg95.c.o
[ 95%] Linking C executable thmsg
[ 95%] Built target thmsg
[ 97%] Building C object thstd/CMakeFiles/thstd.dir/thstd.c.o
[100%] Linking C executable thstd
[100%] Built target thstd
DankRank added a commit that referenced this issue Apr 4, 2022
@DankRank
Copy link
Member

DankRank commented Apr 4, 2022

There are three problems with your build:

  • libpng/zlib
    • Looks like we're building these wrong
    • I've updated them to the latest version, but I doubt it'll change anything.
    • as a workaround you could try -DWITH_LIBPNG_SOURCE=OFF to use the libraries that come with your system
    • you might need to run git submodule sync --recursive and git submodule update --init --recursive after pulling the latest commit
  • OpenMP
    • Apparently we didn't link the omp library correctly, and it somehow didn't matter on Windows and Linux.
    • This should be fixed in the latest commit. Also, I've added an ability to specify-DWITH_OPENMP=OFF
    • I'm actually considering removing OpenMP entirely remove OpenMP and unlocked stdio? #93
  • bison 2.3
    • We require at least 3.0.4 (though the lowest one we test with is 3.5.1)

@DankRank DankRank added the bug label Apr 4, 2022
DankRank added a commit that referenced this issue Apr 4, 2022
@sclsj
Copy link
Author

sclsj commented Apr 5, 2022

I can confirm that this (-DWITH_LIBPNG_SOURCE=OFF) fix works.

@sclsj
Copy link
Author

sclsj commented Apr 5, 2022

I installed bison with homebrew but forget that it's not linked by default. I need to export PATH="/opt/homebrew/opt/bison/bin:$PATH" and export LDFLAGS="-L/opt/homebrew/opt/bison/lib" to find it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants