WolframResearch / codeparser

Parse Wolfram Language source code as abstract syntax trees (ASTs) or concrete syntax trees (CSTs)
MIT License
122 stars 14 forks source link

Build Failed despite current installation Mathematica 13.0 #28

Open rebcabin opened 1 year ago

rebcabin commented 1 year ago

I have Mathematica 13.0 properly licensed and installed on MacOS Ventura M1 Mac Book Pro

└─(17:02:29 on master ✖ ✭)──> /Applications/Mathematica.app/Contents/MacOS/MathKernel
Mathematica 13.0.0 Kernel for Mac OS X ARM (64-bit)
Copyright 1988-2021 Wolfram Research, Inc.

In[1]:=    
┌─(~/Documents/GitHub/codeparser/build)────────────────────────────────(brian@Golf37:s008)─┐
└─(17:07:59 on master ✖ ✭)──> neofetch                                       ──(Fri,Nov25)─┘
                    'c.          brian@Golf37.local 
                 ,xNMM.          ------------------ 
               .OMMMMo           OS: macOS 13.0.1 22A400 arm64 
               OMMM0,            Host: MacBookPro18,2 
     .;loddo:' loolloddol;.      Kernel: 22.1.0 
   cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 4 hours, 41 mins 
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 3 (port), 212 (brew) 
 XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: zsh 5.8.1 
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 1728x1117 
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua 
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: Quartz Compositor 
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.    WM Theme: Yellow (Dark) 
 .XMMMMMMMMMMMMMMMMMMMMMMMMMMk   Terminal: Apple_Terminal 
  .XMMMMMMMMMMMMMMMMMMMMMMMMK.   Terminal Font: AndaleMono 
    kMMMMMMMMMMMMMMMMMMMMMMd     CPU: Apple M1 Max 
     ;KMMMMMMMWXXWMMMMMMMk.      GPU: Apple M1 Max 
       .cooc,.    .,coo:.        Memory: 5520MiB / 65536MiB 

following the instructions in this repository, I get the following errors. What did I miss in the instructions?

-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- 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
CMake Error at CMakeLists.txt:14 (include):
  include could not find requested file:

    WolframKernel

CMake Error at CMakeLists.txt:15 (include):
  include could not find requested file:

    PacletInfo

CMake Error at CMakeLists.txt:16 (include):
  include could not find requested file:

    WolframLibrary

-- BUILDNUMBER: 0
-- CMAKE_VERSION: 3.24.2
-- PACLET: CodeParser
-- PACLET_LAYOUT_DIR: paclet
-- WOLFRAMKERNEL: 
-- BUILD_PACLET: ON
-- BUILD_EXE: OFF
-- BUILD_TESTS: OFF
-- TRANSPORT: Automatic
-- CHECK_ISSUES: ON
-- CHECK_ABORT: ON
-- COMPUTE_OOB: ON
-- COMPUTE_SOURCE: ON
-- FAST_STRING_SCAN: OFF
-- USE_MUSTTAIL: OFF
-- DIAGNOSTICS: OFF
-- LOCAL_BUILD: OFF
-- CMAKE_SIZEOF_VOID_P: 8
-- KERNEL_PAUSE: 0
-- KERNEL_TIMEOUT: 600
-- CODEPARSER_EXE: CODEPARSER_EXE-NOTFOUND
-- Optional tool CODEPARSER_EXE was not found; skipping
-- WOLFRAMLIBRARY_INCLUDE_DIR: 
CMake Error at CMakeLists.txt:102 (ParseWolframLibraryHeader):
  Unknown CMake command "ParseWolframLibraryHeader".

-- Configuring incomplete, errors occurred!
See also "/Users/brian/Documents/GitHub/codeparser/build/CMakeFiles/CMakeOutput.log".
See also "/Users/brian/Documents/GitHub/codeparser/build/CMakeFiles/CMakeError.log".
bostick commented 1 year ago

The "include could not find requested file" errors are very strange and indicate some kind of misconfiguration with CMake.

Please post the entire transcript, including showing the directory that are running in and all of the commands that you run.