Coder Social home page Coder Social logo

tonlib-xcframework's Introduction

ton-swift

Swift builder for tonlib repository

This is package helps to build TON.xcframework and OpenSSL.xcframework

Requirements

  • Xcode 13.2 +
  • CMake 3 +
  • Swift 5.6+

Supported platfroms

  • macOS/simulator/arm64
  • iOS/simulator
  • macCatalyst/simulator
  • watchOS/simulator
  • tvOS/simulator

Usage

Go to repository directory and run:

swift run builder --output ./build --clean

Notes

  • Should be builded with Rosetta on M1 chip
  • Default version of OpenSSL used here is 1.1.1i

tonlib-xcframework's People

Contributors

0xstragner avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

tonlib-xcframework's Issues

Build failed using Xcode 14.1 (M1 Pro, arm arch)

OS: Mac OS Ventura 13.0
Xcode: 14.1
CMake: 3.24.0

Good day.

Trying to build the latest code from main branch, but it fails. Here's a log:

➜  tonlib-xcframework git:(main) ✗ swift run builder --output ./build --clean

Fetching https://github.com/apple/swift-system.git from cache
Updating https://github.com/apple/swift-argument-parser
Updating https://github.com/apple/swift-tools-support-core
Fetched https://github.com/apple/swift-system.git (0.51s)
Updated https://github.com/apple/swift-argument-parser (0.57s)
Updated https://github.com/apple/swift-tools-support-core (0.57s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.2.2 (0.67s)
Computing version for https://github.com/apple/swift-tools-support-core
Computed https://github.com/apple/swift-tools-support-core at 0.5.2 (0.53s)
Computed https://github.com/apple/swift-argument-parser at 1.2.2 (0.00s)
Computed https://github.com/apple/swift-tools-support-core at 0.5.2 (0.00s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.1.1 (0.36s)
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.2.2
Working copy of https://github.com/apple/swift-tools-support-core resolved at 0.5.2
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.1.1
Building for debugging...
/Users/igor.alefirenko/Projects/temp_build/tonlib-xcframework/Sources/Builder/Commands/OpenSSL.swift:104:31: warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead
            workingDirectory: AbsolutePath(from.deletingLastPathComponent().relativePath)
                              ^
/Users/igor.alefirenko/Projects/temp_build/tonlib-xcframework/Sources/Builder/Commands/OpenSSL.swift:104:31: warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead
            workingDirectory: AbsolutePath(from.deletingLastPathComponent().relativePath)
                              ^
/Users/igor.alefirenko/Projects/temp_build/tonlib-xcframework/Sources/Builder/Commands/OpenSSL.swift:104:31: warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead
            workingDirectory: AbsolutePath(from.deletingLastPathComponent().relativePath)
                              ^
/Users/igor.alefirenko/Projects/temp_build/tonlib-xcframework/Sources/Builder/Utilites/ShellCommands.swift:130:27: warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead
        workingDirectory: AbsolutePath(workingDirectory.relativePath),
                          ^
/Users/igor.alefirenko/Projects/temp_build/tonlib-xcframework/Sources/Builder/Utilites/ShellCommands.swift:130:27: warning: 'init(_:)' is deprecated: use throwing `init(validating:)` variant instead
        workingDirectory: AbsolutePath(workingDirectory.relativePath),
                          ^
[181/181] Linking builder
Build complete! (5.67s)

Start XCFramework build.
Output directry: /Users/igor.alefirenko/Projects/temp_build/tonlib-xcframework/build


Start downloading OpenSSL archive: /source/openssl-1.1.1i.tar.gz.

                                            Downloading OpenSSL...
100% [============================================================================================]
Done.


OpenSSL: 1.1.1i.
Build directry: /Users/igor.alefirenko/.tonlib-xcframework/build/openssl
Source direcotry: /Users/igor.alefirenko/.tonlib-xcframework/build/openssl/source
Out directory: /Users/igor.alefirenko/.tonlib-xcframework/build/openssl/ouput


Start building OpenSSL for platrom: iphoneos
Destination URL: /Users/igor.alefirenko/.tonlib-xcframework/build/openssl/ouput/Release-iphoneos


Done.


Start building OpenSSL for platrom: iphonesimulator
Destination URL: /Users/igor.alefirenko/.tonlib-xcframework/build/openssl/ouput/Release-iphonesimulator


Done.


Start building OpenSSL for platrom: appletvos
Destination URL: /Users/igor.alefirenko/.tonlib-xcframework/build/openssl/ouput/Release-appletvos


Done.


Start building OpenSSL for platrom: appletvsimulator
Destination URL: /Users/igor.alefirenko/.tonlib-xcframework/build/openssl/ouput/Release-appletvsimulator


Done.


Start building OpenSSL for platrom: watchos
Destination URL: /Users/igor.alefirenko/.tonlib-xcframework/build/openssl/ouput/Release-watchos


Done.


Start building OpenSSL for platrom: watchsimulator
Destination URL: /Users/igor.alefirenko/.tonlib-xcframework/build/openssl/ouput/Release-watchsimulator


Done.


Start building OpenSSL for platrom: macosx
Destination URL: /Users/igor.alefirenko/.tonlib-xcframework/build/openssl/ouput/Release-macosx


Done.


Start building OpenSSL for platrom: maccatalyst
Destination URL: /Users/igor.alefirenko/.tonlib-xcframework/build/openssl/ouput/Release-maccatalyst


Done.


Done! Did build OpenSSL: 1.1.1i.
Output directory: /Users/igor.alefirenko/.tonlib-xcframework/build/openssl/ouput


Start cloning TON: /Users/igor.alefirenko/.tonlib-xcframework/build/ton/source.

Cloning into '/Users/igor.alefirenko/.tonlib-xcframework/build/ton/source'...
remote: Enumerating objects: 7798, done.
remote: Total 7798 (delta 0), reused 0 (delta 0), pack-reused 7798
Receiving objects: 100% (7798/7798), 13.21 MiB | 2.34 MiB/s, done.
Resolving deltas: 100% (5578/5578), done.
branch 'labraburn' set up to track 'origin/labraburn'.
Switched to a new branch 'labraburn'
Already up to date.
Submodule 'third-party/abseil-cpp' (https://github.com/abseil/abseil-cpp.git) registered for path 'third-party/abseil-cpp'
Submodule 'third-party/crc32c' (https://github.com/google/crc32c) registered for path 'third-party/crc32c'
Submodule 'third-party/libraptorq' (https://github.com/ton-blockchain/libRaptorQ) registered for path 'third-party/libraptorq'
Submodule 'third-party/rocksdb' (https://github.com/facebook/rocksdb.git) registered for path 'third-party/rocksdb'
Cloning into '/Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/third-party/abseil-cpp'...
Cloning into '/Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/third-party/crc32c'...
Cloning into '/Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/third-party/libraptorq'...
Cloning into '/Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/third-party/rocksdb'...
Submodule path 'third-party/abseil-cpp': checked out '215105818dfde3174fe799600bb0f3cae233d0bf'
Submodule path 'third-party/crc32c': checked out '02e65f4fd3065d27b2e29324800ca6d04df16126'
Submodule 'third_party/benchmark' (https://github.com/google/benchmark.git) registered for path 'third-party/crc32c/third_party/benchmark'
Submodule 'third_party/glog' (https://github.com/google/glog.git) registered for path 'third-party/crc32c/third_party/glog'
Submodule 'third_party/googletest' (https://github.com/google/googletest.git) registered for path 'third-party/crc32c/third_party/googletest'
Cloning into '/Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/third-party/crc32c/third_party/benchmark'...
Cloning into '/Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/third-party/crc32c/third_party/glog'...
Cloning into '/Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/third-party/crc32c/third_party/googletest'...
Submodule path 'third-party/crc32c/third_party/benchmark': checked out 'e991355c02b93fe17713efe04cbc2e278e00fdbd'
Submodule path 'third-party/crc32c/third_party/glog': checked out '56523194b3ce1212414c93d55f31832e94677f55'
Submodule path 'third-party/crc32c/third_party/googletest': checked out '3b49be074d5c1340eeb447e6a8e78427051e675a'
Submodule path 'third-party/libraptorq': checked out '14baff5994b6faf7739a5f058481797365b57fb1'
Submodule 'external/lz4' (https://github.com/Cyan4973/lz4.git) registered for path 'third-party/libraptorq/external/lz4'
Cloning into '/Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/third-party/libraptorq/external/lz4'...
Submodule path 'third-party/libraptorq/external/lz4': checked out 'd86dc916771c126afb797637dda9f6421c0cb998'
Submodule path 'third-party/rocksdb': checked out 'fcf3d75f3f022a6a55ff1222d6b06f8518d38c7c'
Synchronizing submodule url for 'third-party/abseil-cpp'
Synchronizing submodule url for 'third-party/crc32c'
Synchronizing submodule url for 'third-party/crc32c/third_party/benchmark'
Synchronizing submodule url for 'third-party/crc32c/third_party/glog'
Synchronizing submodule url for 'third-party/crc32c/third_party/googletest'
Synchronizing submodule url for 'third-party/libraptorq'
Synchronizing submodule url for 'third-party/libraptorq/external/lz4'
Synchronizing submodule url for 'third-party/rocksdb'

TON.
Build directry: /Users/igor.alefirenko/.tonlib-xcframework/build/ton
Source direcotry: /Users/igor.alefirenko/.tonlib-xcframework/build/ton/source
Out directory: /Users/igor.alefirenko/.tonlib-xcframework/build/ton/ouput


Start TON build preparing.
Output directory: /Users/igor.alefirenko/.tonlib-xcframework/build/ton/ouput/Release-common


Done.


Start build TON for platfrom: iphoneos.
Output directory: /Users/igor.alefirenko/.tonlib-xcframework/build/ton/ouput/Release-iphoneos

Process did exit with code: 2, message: Add crc32c
Add ton


LaTeX command failed
/Library/TeX/texbin/pdflatex -interaction=batchmode -file-line-error doc/ton.tex
Log output:
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex 2022.8.6)  24 FEB 2023 20:12
entering extended mode
 restricted \write18 enabled.
 file:line:error style messages enabled.
 %&-line parsing enabled.
**doc/ton.tex
(./doc/ton.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-02-24> (/usr/local/texlive/2022basic/texmf-dist/tex/
latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2021/10/04 v1.4n Standard LaTeX file (size option)
)
\c@part=\count185
\c@section=\count186
\c@subsection=\count187
\c@subsubsection=\count188
\c@paragraph=\count189
\c@subparagraph=\count190
\c@figure=\count191
\c@table=\count192
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2021/04/29 v2.0v Standard LaTeX package
) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\@emptytoks=\toks16
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info:    Redeclaring math symbol \hbar on input line 98.
LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'
(Font)                  U/euf/m/n --> U/euf/b/n on input line 106.
)) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2021/10/15 v2.17l AMS math features
\@mathmargin=\skip49
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2021/08/26 v2.01 AMS text
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks17
\ex@=\dimen139
)) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen140
) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 2021/08/26 v2.02 operator names
)
\inf@bad=\count193
LaTeX Info: Redefining \frac on input line 234.
\uproot@=\count194
\leftroot@=\count195
LaTeX Info: Redefining \overline on input line 399.
\classnum@=\count196
\DOTSCASE@=\count197
LaTeX Info: Redefining \ldots on input line 496.
LaTeX Info: Redefining \dots on input line 499.
LaTeX Info: Redefining \cdots on input line 620.
\Mathstrutbox@=\box50
\strutbox@=\box51
\big@size=\dimen141
LaTeX Font Info:    Redeclaring font encoding OML on input line 743.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 744.
\macc@depth=\count198
\c@MaxMatrixCols=\count199
\dotsspace@=\muskip16
\c@parentequation=\count266
\dspbrk@lvl=\count267
\tag@help=\toks18
\row@=\count268
\column@=\count269
\maxfields@=\count270
\andhelp@=\toks19
\eqnshift@=\dimen142
\alignsep@=\dimen143
\tagshift@=\dimen144
\tagwidth@=\dimen145
\totwidth@=\dimen146
\lineht@=\dimen147
\@envbody=\toks20
\multlinegap=\skip50
\multlinetaggap=\skip51
\mathdisplay@stack=\toks21
LaTeX Info: Redefining \[ on input line 2938.
LaTeX Info: Redefining \] on input line 2939.
)

! LaTeX Error: File `stmaryrd.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
./doc/ton.tex:5: Emergency stop.
<read *> 
         
l.5 \usepackage
               [mathscr]{euscript}^^M
*** (cannot \read from terminal in nonstop modes)

 
Here is how much of TeX's memory you used:
 1653 strings out of 479719
 20088 string characters out of 5880575
 299612 words of memory out of 5000000
 19713 multiletter control sequences out of 15000+600000
 470321 words of font info for 30 fonts, out of 8000000 for 9000
 319 hyphenation exceptions out of 8191
 54i,0n,62p,233b,38s stack positions out of 10000i,1000n,20000p,200000b,200000s
./doc/ton.tex:5:  ==> Fatal error occurred, no output PDF file produced!

CMake Error at /Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/CMake/UseLATEX.cmake:480 (message):
  Successfully executed LaTeX, but LaTeX returned an error.
Call Stack (most recent call first):
  /Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/CMake/UseLATEX.cmake:1904 (latex_execute_latex)




LaTeX command failed
/Library/TeX/texbin/pdflatex -interaction=batchmode -file-line-error doc/tblkch.tex
Log output:
make[2]: *** [ton.pdf] Error 1
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex 2022.8.6)  24 FEB 2023 20:12
entering extended mode
 restricted \write18 enabled.
 file:line:error style messages enabled.
 %&-line parsing enabled.
**doc/tblkch.tex
(./doc/tblkch.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-02-24> (/usr/local/texlive/2022basic/texmf-dist/tex/
latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2021/10/04 v1.4n Standard LaTeX file (size option)
)
\c@part=\count185
\c@section=\count186
\c@subsection=\count187
\c@subsubsection=\count188
\c@paragraph=\count189
\c@subparagraph=\count190
\c@figure=\count191
\c@table=\count192
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2021/04/29 v2.0v Standard LaTeX package
) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\@emptytoks=\toks16
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info:    Redeclaring math symbol \hbar on input line 98.
LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'
(Font)                  U/euf/m/n --> U/euf/b/n on input line 106.
)) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2021/10/15 v2.17l AMS math features
\@mathmargin=\skip49
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2021/08/26 v2.01 AMS text
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks17
\ex@=\dimen139
)) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen140
) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 2021/08/26 v2.02 operator names
)
\inf@bad=\count193
LaTeX Info: Redefining \frac on input line 234.
\uproot@=\count194
\leftroot@=\count195
LaTeX Info: Redefining \overline on input line 399.
\classnum@=\count196
\DOTSCASE@=\count197
LaTeX Info: Redefining \ldots on input line 496.
LaTeX Info: Redefining \dots on input line 499.
LaTeX Info: Redefining \cdots on input line 620.
\Mathstrutbox@=\box50
\strutbox@=\box51
\big@size=\dimen141
LaTeX Font Info:    Redeclaring font encoding OML on input line 743.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 744.
\macc@depth=\count198
\c@MaxMatrixCols=\count199
\dotsspace@=\muskip16
\c@parentequation=\count266
\dspbrk@lvl=\count267
\tag@help=\toks18
\row@=\count268
\column@=\count269
\maxfields@=\count270
\andhelp@=\toks19
\eqnshift@=\dimen142
\alignsep@=\dimen143
\tagshift@=\dimen144
\tagwidth@=\dimen145
\totwidth@=\dimen146
\lineht@=\dimen147
\@envbody=\toks20
\multlinegap=\skip50
\multlinetaggap=\skip51
\mathdisplay@stack=\toks21
LaTeX Info: Redefining \[ on input line 2938.
LaTeX Info: Redefining \] on input line 2939.
)

! LaTeX Error: File `stmaryrd.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
./doc/tblkch.tex:5: Emergency stop.
<read *> 
         
l.5 \usepackage
               [mathscr]{euscript}^^M
*** (cannot \read from terminal in nonstop modes)

 
Here is how much of TeX's memory you used:
 1653 strings out of 479719
 20100 string characters out of 5880575
 299615 words of memory out of 5000000
 19713 multiletter control sequences out of 15000+600000
 470321 words of font info for 30 fonts, out of 8000000 for 9000
 319 hyphenation exceptions out of 8191
 54i,0n,62p,236b,38s stack positions out of 10000i,1000n,20000p,200000b,200000s
./doc/tblkch.tex:5:  ==> Fatal error occurred, no output PDF file produced!

CMake Error at /Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/CMake/UseLATEX.cmake:480 (message):
  Successfully executed LaTeX, but LaTeX returned an error.
Call Stack (most recent call first):
  /Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/CMake/UseLATEX.cmake:1904 (latex_execute_latex)


make[1]: *** [CMakeFiles/ton_white_paper_pdf.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [tblkch.pdf] Error 1
make[1]: *** [CMakeFiles/ton_blockchain_description_pdf.dir/all] Error 2


LaTeX command failed
/Library/TeX/texbin/pdflatex -interaction=batchmode -file-line-error doc/tvm.tex
Log output:
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex 2022.8.6)  24 FEB 2023 20:12
entering extended mode
 restricted \write18 enabled.
 file:line:error style messages enabled.
 %&-line parsing enabled.
**doc/tvm.tex
(./doc/tvm.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-02-24> (/usr/local/texlive/2022basic/texmf-dist/tex/
latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2021/10/04 v1.4n Standard LaTeX file (size option)
)
\c@part=\count185
\c@section=\count186
\c@subsection=\count187
\c@subsubsection=\count188
\c@paragraph=\count189
\c@subparagraph=\count190
\c@figure=\count191
\c@table=\count192
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2021/04/29 v2.0v Standard LaTeX package
) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\@emptytoks=\toks16
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info:    Redeclaring math symbol \hbar on input line 98.
LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'
(Font)                  U/euf/m/n --> U/euf/b/n on input line 106.
)) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2021/10/15 v2.17l AMS math features
\@mathmargin=\skip49
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2021/08/26 v2.01 AMS text
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks17
\ex@=\dimen139
)) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen140
) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 2021/08/26 v2.02 operator names
)
\inf@bad=\count193
LaTeX Info: Redefining \frac on input line 234.
\uproot@=\count194
\leftroot@=\count195
LaTeX Info: Redefining \overline on input line 399.
\classnum@=\count196
\DOTSCASE@=\count197
LaTeX Info: Redefining \ldots on input line 496.
LaTeX Info: Redefining \dots on input line 499.
LaTeX Info: Redefining \cdots on input line 620.
\Mathstrutbox@=\box50
\strutbox@=\box51
\big@size=\dimen141
LaTeX Font Info:    Redeclaring font encoding OML on input line 743.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 744.
\macc@depth=\count198
\c@MaxMatrixCols=\count199
\dotsspace@=\muskip16
\c@parentequation=\count266
\dspbrk@lvl=\count267
\tag@help=\toks18
\row@=\count268
\column@=\count269
\maxfields@=\count270
\andhelp@=\toks19
\eqnshift@=\dimen142
\alignsep@=\dimen143
\tagshift@=\dimen144
\tagwidth@=\dimen145
\totwidth@=\dimen146
\lineht@=\dimen147
\@envbody=\toks20
\multlinegap=\skip50
\multlinetaggap=\skip51
\mathdisplay@stack=\toks21
LaTeX Info: Redefining \[ on input line 2938.
LaTeX Info: Redefining \] on input line 2939.
)

! LaTeX Error: File `stmaryrd.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
./doc/tvm.tex:5: Emergency stop.
<read *> 
         
l.5 \usepackage
               [mathscr]{euscript}^^M
*** (cannot \read from terminal in nonstop modes)

 
Here is how much of TeX's memory you used:
 1653 strings out of 479719
 20088 string characters out of 5880575
 299612 words of memory out of 5000000
 19713 multiletter control sequences out of 15000+600000
 470321 words of font info for 30 fonts, out of 8000000 for 9000
 319 hyphenation exceptions out of 8191
 54i,0n,62p,233b,38s stack positions out of 10000i,1000n,20000p,200000b,200000s
./doc/tvm.tex:5:  ==> Fatal error occurred, no output PDF file produced!

CMake Error at /Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/CMake/UseLATEX.cmake:480 (message):
  Successfully executed LaTeX, but LaTeX returned an error.
Call Stack (most recent call first):
  /Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/CMake/UseLATEX.cmake:1904 (latex_execute_latex)




LaTeX command failed
/Library/TeX/texbin/pdflatex -interaction=batchmode -file-line-error doc/fiftbase.tex
Log output:
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex 2022.8.6)  24 FEB 2023 20:12
entering extended mode
 restricted \write18 enabled.
 file:line:error style messages enabled.
 %&-line parsing enabled.
**doc/fiftbase.tex
(./doc/fiftbase.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-02-24> (/usr/local/texlive/2022basic/texmf-dist/tex/
latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2021/10/04 v1.4n Standard LaTeX file (size option)
)
\c@part=\count185
\c@section=\count186
\c@subsection=\count187
\c@subsubsection=\count188
\c@paragraph=\count189
\c@subparagraph=\count190
\c@figure=\count191
\c@table=\count192
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2021/04/29 v2.0v Standard LaTeX package
) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\@emptytoks=\toks16
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info:    Redeclaring math symbol \hbar on input line 98.
LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'
(Font)                  U/euf/m/n --> U/euf/b/n on input line 106.
)) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2021/10/15 v2.17l AMS math features
\@mathmargin=\skip49
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2021/08/26 v2.01 AMS text
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks17
\ex@=\dimen139
)) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen140
) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 2021/08/26 v2.02 operator names
)
\inf@bad=\count193
LaTeX Info: Redefining \frac on input line 234.
\uproot@=\count194
\leftroot@=\count195
LaTeX Info: Redefining \overline on input line 399.
\classnum@=\count196
\DOTSCASE@=\count197
LaTeX Info: Redefining \ldots on input line 496.
LaTeX Info: Redefining \dots on input line 499.
LaTeX Info: Redefining \cdots on input line 620.
\Mathstrutbox@=\box50
\strutbox@=\box51
\big@size=\dimen141
LaTeX Font Info:    Redeclaring font encoding OML on input line 743.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 744.
\macc@depth=\count198
\c@MaxMatrixCols=\count199
\dotsspace@=\muskip16
\c@parentequation=\count266
\dspbrk@lvl=\count267
\tag@help=\toks18
\row@=\count268
\column@=\count269
\maxfields@=\count270
\andhelp@=\toks19
\eqnshift@=\dimen142
\alignsep@=\dimen143
\tagshift@=\dimen144
\tagwidth@=\dimen145
\totwidth@=\dimen146
\lineht@=\dimen147
\@envbody=\toks20
\multlinegap=\skip50
\multlinetaggap=\skip51
\mathdisplay@stack=\toks21
LaTeX Info: Redefining \[ on input line 2938.
LaTeX Info: Redefining \] on input line 2939.
)

! LaTeX Error: File `stmaryrd.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
./doc/fiftbase.tex:5: Emergency stop.
<read *> 
         
l.5 \usepackage
               [mathscr]{euscript}^^M
*** (cannot \read from terminal in nonstop modes)

 
Here is how much of TeX's memory you used:
 1653 strings out of 479719
 20108 string characters out of 5880575
 299617 words of memory out of 5000000
 19713 multiletter control sequences out of 15000+600000
 470321 words of font info for 30 fonts, out of 8000000 for 9000
 319 hyphenation exceptions out of 8191
 54i,0n,62p,238b,38s stack positions out of 10000i,1000n,20000p,200000b,200000s
./doc/fiftbase.tex:5:  ==> Fatal error occurred, no output PDF file produced!

CMake Error at /Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/CMake/UseLATEX.cmake:480 (message):
  Successfully executed LaTeX, but LaTeX returned an error.
Call Stack (most recent call first):
  /Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/CMake/UseLATEX.cmake:1904 (latex_execute_latex)




LaTeX command failed
/Library/TeX/texbin/pdflatex -interaction=batchmode -file-line-error doc/catchain.tex
Log output:
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex 2022.8.6)  24 FEB 2023 20:12
entering extended mode
 restricted \write18 enabled.
 file:line:error style messages enabled.
 %&-line parsing enabled.
**doc/catchain.tex
(./doc/catchain.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-02-24> (/usr/local/texlive/2022basic/texmf-dist/tex/
latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2021/10/04 v1.4n Standard LaTeX file (size option)
)
\c@part=\count185
\c@section=\count186
\c@subsection=\count187
\c@subsubsection=\count188
\c@paragraph=\count189
\c@subparagraph=\count190
\c@figure=\count191
\c@table=\count192
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2021/04/29 v2.0v Standard LaTeX package
) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\@emptytoks=\toks16
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info:    Redeclaring math symbol \hbar on input line 98.
LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'
(Font)                  U/euf/m/n --> U/euf/b/n on input line 106.
)) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsmath.sty
Package: amsmath 2021/10/15 v2.17l AMS math features
\@mathmargin=\skip49
For additional information on amsmath, use the `?' option.
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amstext.sty
Package: amstext 2021/08/26 v2.01 AMS text
(/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks17
\ex@=\dimen139
)) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen140
) (/usr/local/texlive/2022basic/texmf-dist/tex/latex/amsmath/amsopn.sty
Package: amsopn 2021/08/26 v2.02 operator names
)
\inf@bad=\count193
LaTeX Info: Redefining \frac on input line 234.
\uproot@=\count194
\leftroot@=\count195
LaTeX Info: Redefining \overline on input line 399.
\classnum@=\count196
\DOTSCASE@=\count197
LaTeX Info: Redefining \ldots on input line 496.
LaTeX Info: Redefining \dots on input line 499.
LaTeX Info: Redefining \cdots on input line 620.
\Mathstrutbox@=\box50
\strutbox@=\box51
\big@size=\dimen141
LaTeX Font Info:    Redeclaring font encoding OML on input line 743.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 744.
\macc@depth=\count198
\c@MaxMatrixCols=\count199
\dotsspace@=\muskip16
\c@parentequation=\count266
\dspbrk@lvl=\count267
\tag@help=\toks18
\row@=\count268
\column@=\count269
\maxfields@=\count270
\andhelp@=\toks19
\eqnshift@=\dimen142
\alignsep@=\dimen143
\tagshift@=\dimen144
\tagwidth@=\dimen145
\totwidth@=\dimen146
\lineht@=\dimen147
\@envbody=\toks20
\multlinegap=\skip50
\multlinetaggap=\skip51
\mathdisplay@stack=\toks21
LaTeX Info: Redefining \[ on input line 2938.
LaTeX Info: Redefining \] on input line 2939.
)

! LaTeX Error: File `stmaryrd.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
./doc/catchain.tex:5: Emergency stop.
<read *> 
         
l.5 \usepackage
               [mathscr]{euscript}^^M
*** (cannot \read from terminal in nonstop modes)

 
Here is how much of TeX's memory you used:
 1653 strings out of 479719
 20108 string characters out of 5880575
 299617 words of memory out of 5000000
 19713 multiletter control sequences out of 15000+600000
 470321 words of font info for 30 fonts, out of 8000000 for 9000
 319 hyphenation exceptions out of 8191
 54i,0n,62p,238b,38s stack positions out of 10000i,1000n,20000p,200000b,200000s
./doc/catchain.tex:5:  ==> Fatal error occurred, no output PDF file produced!

CMake Error at /Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/CMake/UseLATEX.cmake:480 (message):
  Successfully executed LaTeX, but LaTeX returned an error.
Call Stack (most recent call first):
  /Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/CMake/UseLATEX.cmake:1904 (latex_execute_latex)


make[2]: *** [tvm.pdf] Error 1
make[2]: *** [fiftbase.pdf] Error 1
make[1]: *** [CMakeFiles/fift_basic_description_pdf.dir/all] Error 2
make[1]: *** [CMakeFiles/ton_vm_description_pdf.dir/all] Error 2
make[2]: *** [catchain.pdf] Error 1
make[1]: *** [CMakeFiles/catchain_consensus_description_pdf.dir/all] Error 2
/Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/tdtl/td/tl/tl_config.cpp:359:15: warning: variable 'constructors_total' set but not used [-Wunused-but-set-variable]
  std::size_t constructors_total = 0;
              ^
/Users/igor.alefirenko/.tonlib-xcframework/build/ton/source/tdtl/td/tl/tl_writer.cpp:31:8: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
  std::sprintf(buf, "%d", x);
       ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
1 warning generated.
1 warning generated.
make: *** [all] Error 2

Build failed on M1, MacBook Pro (XCode 14.2)

Build is failed with following error:

➜  tonlib-xcframework git:(main) swift run builder --output ./build --clean
Fetching https://github.com/apple/swift-argument-parser from cache
Fetching https://github.com/apple/swift-tools-support-core from cache
Fetched https://github.com/apple/swift-argument-parser (2.96s)
Fetched https://github.com/apple/swift-tools-support-core (2.97s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.0.2 (0.62s)
Computing version for https://github.com/apple/swift-tools-support-core
Computed https://github.com/apple/swift-tools-support-core at 0.2.4 (0.62s)
Computed https://github.com/apple/swift-argument-parser at 1.0.2 (0.00s)
Computed https://github.com/apple/swift-tools-support-core at 0.2.4 (0.00s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.0.2
Creating working copy for https://github.com/apple/swift-tools-support-core
Working copy of https://github.com/apple/swift-tools-support-core resolved at 0.2.4
Building for debugging...
/Users/mstarikov/projects/maxim/ton/tonlib-xcframework/.build/checkouts/swift-tools-support-core/Sources/TSCUtility/FSWatch.swift:848:15: error: cannot assign value of type 'Thread' to type 'Thread?'
                self.thread = thread
                            ^
/Users/mstarikov/projects/maxim/ton/tonlib-xcframework/.build/checkouts/swift-tools-support-core/Sources/TSCUtility/FSWatch.swift:848:15: error: cannot assign value of type 'Thread' to type 'Thread?'
                self.thread = thread
                            ^
/Users/mstarikov/projects/maxim/ton/tonlib-xcframework/.build/checkouts/swift-tools-support-core/Sources/TSCUtility/FSWatch.swift:848:15: error: cannot assign value of type 'Thread' to type 'Thread?'
                self.thread = thread
                            ^
/Users/mstarikov/projects/maxim/ton/tonlib-xcframework/.build/checkouts/swift-tools-support-core/Sources/TSCUtility/FSWatch.swift:848:15: error: cannot assign value of type 'Thread' to type 'Thread?'
                self.thread = thread
                            ^
[130/131] Compiling TSCUtility misc.swift

I am not quite understand what "build using Rosetta" means, I tried to set checkbox "Open with Rosetta" in "Get Info" section on Terminal application when calling swift run builder --output ./build --clean but it brings me to the same result, maybe with the the little longer execution time.
Do I do something wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.