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

Error on Compiling Boomerang for macOS 10.13 #220

Open
humanitiesclinic opened this issue Apr 26, 2019 · 4 comments
Open

Error on Compiling Boomerang for macOS 10.13 #220

humanitiesclinic opened this issue Apr 26, 2019 · 4 comments
Labels
os: mac (I) This issue is specific to macOS type: support (I) Q&A about how to use Boomerang

Comments

@humanitiesclinic
Copy link

Trying to compile for macOS 10.13.6.

I have:


Command "/usr/bin/flex --version" failed with output:

  

  dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib

    Referenced from: /usr/bin/flex
    Reason: image not found

When I run /usr/bin/flex, I get:

dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
  Referenced from: /usr/bin/flex
  Reason: image not found
Abort trap: 6

I also have:

Found Doxygen: /Applications/Doxygen.app/Contents/Resources/doxygen (found version "1.8.15") found components: doxygen missing components: dot

Any suggestions?

@ceeac ceeac added os: mac (I) This issue is specific to macOS type: support (I) Q&A about how to use Boomerang labels Apr 28, 2019
@ceeac
Copy link
Member

ceeac commented Apr 28, 2019

Have you tried installing gettext?

@humanitiesclinic
Copy link
Author

Ok done that. and looks like there's some progress. but still there's the problem of:

-- APPLE=1
-- BISON_EXECUTABLE=/usr/bin/bison
-- BOOMERANG_BUILD_CLI=ON
-- BOOMERANG_BUILD_CODEGEN_C=ON
-- BOOMERANG_BUILD_DECODER_CapstoneX86=ON
-- BOOMERANG_BUILD_DECODER_PPC=ON
-- BOOMERANG_BUILD_DECODER_SPARC=ON
-- BOOMERANG_BUILD_DECODER_ST20=ON
-- BOOMERANG_BUILD_DOCS=ON
-- BOOMERANG_BUILD_FRONTEND_PPC=ON
-- BOOMERANG_BUILD_FRONTEND_SPARC=ON
-- BOOMERANG_BUILD_FRONTEND_ST20=ON
-- BOOMERANG_BUILD_FRONTEND_X86=ON
-- BOOMERANG_BUILD_GUI=ON
-- BOOMERANG_BUILD_LOADER_DOS4GW=ON
-- BOOMERANG_BUILD_LOADER_Elf=ON
-- BOOMERANG_BUILD_LOADER_Exe=ON
-- BOOMERANG_BUILD_LOADER_MachO=ON
-- BOOMERANG_BUILD_LOADER_Win32=ON
-- BOOMERANG_BUILD_REGRESSION_TESTS=OFF
-- BOOMERANG_BUILD_SYMBOLPROVIDER_C=ON
-- BOOMERANG_BUILD_TYPERECOVERY_DFA=ON
-- BOOMERANG_BUILD_UNIT_TESTS=OFF
-- BOOMERANG_INSTALL_DEV=OFF
-- BOOMERANG_INSTALL_SAMPLES=OFF
-- Boomerang_BINARY_DIR=/Users/user/Documents/zDEVELOP/boomerang/build
-- Boomerang_SOURCE_DIR=/Users/user/Documents/zDEVELOP/boomerang
-- CCache_EXECUTABLE=CCache_EXECUTABLE-NOTFOUND
-- CMAKE_AR=/Library/Developer/CommandLineTools/usr/bin/ar
-- CMAKE_AUTOMOC=ON
-- CMAKE_AUTOUIC=ON
-- CMAKE_BINARY_DIR=/Users/user/Documents/zDEVELOP/boomerang/build
-- CMAKE_BUILD_TYPE=RelWithDebInfo
-- CMAKE_CACHEFILE_DIR=/Users/user/Documents/zDEVELOP/boomerang/build
-- CMAKE_CACHE_MAJOR_VERSION=3
-- CMAKE_CACHE_MINOR_VERSION=13
-- CMAKE_CACHE_PATCH_VERSION=4
-- CMAKE_COLOR_MAKEFILE=ON
-- CMAKE_COMMAND=/usr/local/Cellar/cmake/3.13.4/bin/cmake
-- CMAKE_CPACK_COMMAND=/usr/local/Cellar/cmake/3.13.4/bin/cpack
-- CMAKE_CTEST_COMMAND=/usr/local/Cellar/cmake/3.13.4/bin/ctest
-- CMAKE_CURRENT_BINARY_DIR=/Users/user/Documents/zDEVELOP/boomerang/build
-- CMAKE_CURRENT_LIST_DIR=/Users/user/Documents/zDEVELOP/boomerang
-- CMAKE_CURRENT_LIST_FILE=/Users/user/Documents/zDEVELOP/boomerang/CMakeLists.txt
-- CMAKE_CURRENT_SOURCE_DIR=/Users/user/Documents/zDEVELOP/boomerang
-- CMAKE_CXX_COMPILER=/Library/Developer/CommandLineTools/usr/bin/c++
-- CMAKE_CXX_FLAGS=
-- CMAKE_CXX_FLAGS_DEBUG=-g
-- CMAKE_CXX_FLAGS_MINSIZEREL=-Os -DNDEBUG
-- CMAKE_CXX_FLAGS_RELEASE=-O3 -DNDEBUG
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG
-- CMAKE_C_COMPILER=/Library/Developer/CommandLineTools/usr/bin/cc
-- CMAKE_C_FLAGS=
-- CMAKE_C_FLAGS_DEBUG=-g
-- CMAKE_C_FLAGS_MINSIZEREL=-Os -DNDEBUG
-- CMAKE_C_FLAGS_RELEASE=-O3 -DNDEBUG
-- CMAKE_C_FLAGS_RELWITHDEBINFO=-O2 -g -DNDEBUG
-- CMAKE_EDIT_COMMAND=/usr/local/Cellar/cmake/3.13.4/bin/ccmake
-- CMAKE_EXECUTABLE_FORMAT=Unknown
-- CMAKE_EXE_LINKER_FLAGS=
-- CMAKE_EXE_LINKER_FLAGS_DEBUG=
-- CMAKE_EXE_LINKER_FLAGS_MINSIZEREL=
-- CMAKE_EXE_LINKER_FLAGS_RELEASE=
-- CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO=
-- CMAKE_EXPORT_COMPILE_COMMANDS=OFF
-- CMAKE_EXTRA_GENERATOR=
-- CMAKE_FILES_DIRECTORY=/CMakeFiles
-- CMAKE_GENERATOR=Unix Makefiles
-- CMAKE_GENERATOR_INSTANCE=
-- CMAKE_GENERATOR_PLATFORM=
-- CMAKE_GENERATOR_TOOLSET=
-- CMAKE_HAVE_LIBC_CREATE=1
-- CMAKE_HAVE_PTHREAD_H=1
-- CMAKE_HOME_DIRECTORY=/Users/user/Documents/zDEVELOP/boomerang
-- CMAKE_HOST_APPLE=1
-- CMAKE_HOST_SYSTEM_NAME=Darwin
-- CMAKE_HOST_UNIX=1
-- CMAKE_INCLUDE_CURRENT_DIR=ON
-- CMAKE_INSTALL_NAME_TOOL=/usr/bin/install_name_tool
-- CMAKE_INSTALL_PREFIX=/usr/local
-- CMAKE_LINKER=/Library/Developer/CommandLineTools/usr/bin/ld
-- CMAKE_MAJOR_VERSION=3
-- CMAKE_MAKE_PROGRAM=/usr/bin/make
-- CMAKE_MINIMUM_REQUIRED_VERSION=3.8
-- CMAKE_MINOR_VERSION=13
-- CMAKE_MODULE_LINKER_FLAGS=
-- CMAKE_MODULE_LINKER_FLAGS_DEBUG=
-- CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL=
-- CMAKE_MODULE_LINKER_FLAGS_RELEASE=
-- CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO=
-- CMAKE_MODULE_PATH=/Users/user/Qt/5.11.0/clang_64/lib/cmake/Qt5Core;/Users/user/Qt/5.11.0/clang_64/lib/cmake/Qt5Xml;/Users/user/Qt/5.11.0/clang_64/lib/cmake/Qt5Widgets
-- CMAKE_NM=/Library/Developer/CommandLineTools/usr/bin/nm
-- CMAKE_NUMBER_OF_MAKEFILES=23
-- CMAKE_OBJCOPY=CMAKE_OBJCOPY-NOTFOUND
-- CMAKE_OBJDUMP=/Library/Developer/CommandLineTools/usr/bin/objdump
-- CMAKE_OSX_ARCHITECTURES=
-- CMAKE_OSX_DEPLOYMENT_TARGET=
-- CMAKE_OSX_SYSROOT=
-- CMAKE_PARENT_LIST_FILE=/Users/user/Documents/zDEVELOP/boomerang/CMakeLists.txt
-- CMAKE_PATCH_VERSION=4
-- CMAKE_PLATFORM_INFO_INITIALIZED=1
-- CMAKE_PREFIX_PATH=/Users/user/Qt/5.11.0/clang_64/lib/cmake/Qt5Core;/Users/user/Qt/5.11.0/clang_64/lib/cmake/Qt5Xml;/Users/user/Qt/5.11.0/clang_64/lib/cmake/Qt5Widgets
-- CMAKE_PROJECT_DESCRIPTION=
-- CMAKE_PROJECT_HOMEPAGE_URL=
-- CMAKE_PROJECT_NAME=Boomerang
-- CMAKE_RANLIB=/Library/Developer/CommandLineTools/usr/bin/ranlib
-- CMAKE_ROOT=/usr/local/Cellar/cmake/3.13.4/share/cmake
-- CMAKE_SHARED_LINKER_FLAGS=
-- CMAKE_SHARED_LINKER_FLAGS_DEBUG=
-- CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL=
-- CMAKE_SHARED_LINKER_FLAGS_RELEASE=
-- CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO=
-- CMAKE_SIZEOF_UNSIGNED_SHORT=2
-- CMAKE_SKIP_INSTALL_RPATH=NO
-- CMAKE_SKIP_RPATH=NO
-- CMAKE_SOURCE_DIR=/Users/user/Documents/zDEVELOP/boomerang
-- CMAKE_STATIC_LINKER_FLAGS=
-- CMAKE_STATIC_LINKER_FLAGS_DEBUG=
-- CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL=
-- CMAKE_STATIC_LINKER_FLAGS_RELEASE=
-- CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO=
-- CMAKE_STRIP=/Library/Developer/CommandLineTools/usr/bin/strip
-- CMAKE_TWEAK_VERSION=0
-- CMAKE_UNAME=/usr/bin/uname
-- CMAKE_VERBOSE_MAKEFILE=FALSE
-- CMAKE_VERSION=3.13.4
-- CPACK_SOURCE_RPM=OFF
-- CPACK_SOURCE_TBZ2=ON
-- CPACK_SOURCE_TGZ=ON
-- CPACK_SOURCE_TXZ=ON
-- CPACK_SOURCE_TZ=ON
-- CPACK_SOURCE_ZIP=OFF
-- CXX_FLAG__Wall_SUPPORTED=1
-- CXX_FLAG__Walloc_zero_SUPPORTED=
-- CXX_FLAG__Walloca_SUPPORTED=
-- CXX_FLAG__Wduplicated_branches_SUPPORTED=
-- CXX_FLAG__Wduplicated_cond_SUPPORTED=
-- CXX_FLAG__Werror_SUPPORTED=1
-- CXX_FLAG__Werror_alloca_SUPPORTED=
-- CXX_FLAG__Werror_implicit_fallthrough_SUPPORTED=1
-- CXX_FLAG__Werror_pedantic_SUPPORTED=1
-- CXX_FLAG__Werror_strict_overflow_SUPPORTED=1
-- CXX_FLAG__Werror_zero_as_null_pointer_constant_SUPPORTED=1
-- CXX_FLAG__Wextra_SUPPORTED=1
-- CXX_FLAG__Wformat_2_SUPPORTED=1
-- CXX_FLAG__Wgnu_zero_variadic_macro_arguments_SUPPORTED=1
-- CXX_FLAG__Wmissing_include_dirs_SUPPORTED=1
-- CXX_FLAG__Wnull_dereference_SUPPORTED=1
-- CXX_FLAG__Wshadow_SUPPORTED=1
-- CXX_FLAG__Wstrict_overflow_2_SUPPORTED=1
-- CXX_FLAG__Wsuggest_override_SUPPORTED=
-- CXX_FLAG__Wundef_SUPPORTED=1
-- CXX_FLAG__Wunknown_pragmas_SUPPORTED=1
-- CXX_FLAG__Wzero_as_null_pointer_constant_SUPPORTED=1
-- CXX_FLAG__fno_strict_aliasing_SUPPORTED=1
-- C_FLAG__Wall_SUPPORTED=1
-- C_FLAG__Walloc_zero_SUPPORTED=
-- C_FLAG__Walloca_SUPPORTED=
-- C_FLAG__Wduplicated_branches_SUPPORTED=
-- C_FLAG__Wduplicated_cond_SUPPORTED=
-- C_FLAG__Werror_SUPPORTED=1
-- C_FLAG__Werror_alloca_SUPPORTED=
-- C_FLAG__Werror_implicit_fallthrough_SUPPORTED=1
-- C_FLAG__Werror_pedantic_SUPPORTED=1
-- C_FLAG__Werror_strict_overflow_SUPPORTED=1
-- C_FLAG__Werror_zero_as_null_pointer_constant_SUPPORTED=1
-- C_FLAG__Wextra_SUPPORTED=1
-- C_FLAG__Wformat_2_SUPPORTED=1
-- C_FLAG__Wgnu_zero_variadic_macro_arguments_SUPPORTED=1
-- C_FLAG__Wmissing_include_dirs_SUPPORTED=1
-- C_FLAG__Wnull_dereference_SUPPORTED=1
-- C_FLAG__Wshadow_SUPPORTED=1
-- C_FLAG__Wstrict_overflow_2_SUPPORTED=1
-- C_FLAG__Wsuggest_override_SUPPORTED=
-- C_FLAG__Wundef_SUPPORTED=1
-- C_FLAG__Wunknown_pragmas_SUPPORTED=1
-- C_FLAG__Wzero_as_null_pointer_constant_SUPPORTED=1
-- C_FLAG__fno_strict_aliasing_SUPPORTED=1
-- Capstone_INCLUDE_DIR=/usr/local/include
-- Capstone_LIBRARY=/usr/local/lib/libcapstone.dylib
-- DOXYGEN_DOT_EXECUTABLE=DOXYGEN_DOT_EXECUTABLE-NOTFOUND
-- DOXYGEN_EXECUTABLE=/Applications/Doxygen.app/Contents/Resources/doxygen
-- FIND_PACKAGE_MESSAGE_DETAILS_BISON=[/usr/bin/bison][v3.3.2(3.0)]
-- FIND_PACKAGE_MESSAGE_DETAILS_Capstone=[/usr/local/lib/libcapstone.dylib][/usr/local/include][v(3.0)]
-- FIND_PACKAGE_MESSAGE_DETAILS_Doxygen=[/Applications/Doxygen.app/Contents/Resources/doxygen][cfound components:  doxygen missing components:  dot][v1.8.15()]
-- FIND_PACKAGE_MESSAGE_DETAILS_FLEX=[/usr/bin/flex][v(2.6)]
-- FIND_PACKAGE_MESSAGE_DETAILS_Git=[/usr/bin/git][v2.15.1 (Apple Git-101)()]
-- FIND_PACKAGE_MESSAGE_DETAILS_Threads=[TRUE][v()]
-- FLEX_EXECUTABLE=/usr/bin/flex
-- FLEX_INCLUDE_DIR=FLEX_INCLUDE_DIR-NOTFOUND
-- FL_LIBRARY=FL_LIBRARY-NOTFOUND
-- GIT_EXECUTABLE=/usr/bin/git
-- HAVE_BYTESWAP_H=
-- HAVE_CMAKE_SIZEOF_UNSIGNED_SHORT=TRUE
-- HAVE_DLFCN_H=1
-- HAVE_FCNTL_H=1
-- HAVE_INTTYPES_H=1
-- HAVE_MALLOC_H=
-- HAVE_MEMORY_H=1
-- HAVE_SIZEOF_CHAR=TRUE
-- HAVE_SIZEOF_DOUBLE=TRUE
-- HAVE_SIZEOF_FLOAT=TRUE
-- HAVE_SIZEOF_INT=TRUE
-- HAVE_SIZEOF_INT_P=TRUE
-- HAVE_SIZEOF_LONG=TRUE
-- HAVE_SIZEOF_LONG_DOUBLE=TRUE
-- HAVE_SIZEOF_LONG_LONG=TRUE
-- HAVE_SIZEOF_SHORT=TRUE
-- HAVE_STDDEF_H=1
-- HAVE_STDINT_H=1
-- HAVE_STDLIB_H=1
-- HAVE_STRINGS_H=1
-- HAVE_STRING_H=1
-- HAVE_SYS_STAT_H=1
-- HAVE_SYS_TIME_H=1
-- HAVE_SYS_TYPES_H=1
-- HAVE_UNISTD_H=1
-- HAVE_WORDS_BIGENDIAN=TRUE
-- Qt5Core_DIR=/Users/user/Qt/5.11.0/clang_64/lib/cmake/Qt5Core
-- Qt5Gui_DIR=/Users/user/Qt/5.11.0/clang_64/lib/cmake/Qt5Gui
-- Qt5Widgets_DIR=/Users/user/Qt/5.11.0/clang_64/lib/cmake/Qt5Widgets
-- Qt5Xml_DIR=/Users/user/Qt/5.11.0/clang_64/lib/cmake/Qt5Xml
-- SIZEOF_CHAR=1
-- SIZEOF_DOUBLE=8
-- SIZEOF_FLOAT=4
-- SIZEOF_INT=4
-- SIZEOF_INT_P=8
-- SIZEOF_LONG=8
-- SIZEOF_LONG_DOUBLE=16
-- SIZEOF_LONG_LONG=8
-- SIZEOF_SHORT=2
-- UNIX=1
-- WORDS_BIGENDIAN=0
-- _Wall_CHECKED=YES
-- _Walloc_zero_CHECKED=YES
-- _Walloca_CHECKED=YES
-- _Wduplicated_branches_CHECKED=YES
-- _Wduplicated_cond_CHECKED=YES
-- _Werror_CHECKED=YES
-- _Werror_alloca_CHECKED=YES
-- _Werror_implicit_fallthrough_CHECKED=YES
-- _Werror_pedantic_CHECKED=YES
-- _Werror_strict_overflow_CHECKED=YES
-- _Werror_zero_as_null_pointer_constant_CHECKED=YES
-- _Wextra_CHECKED=YES
-- _Wformat_2_CHECKED=YES
-- _Wgnu_zero_variadic_macro_arguments_CHECKED=YES
-- _Wmissing_include_dirs_CHECKED=YES
-- _Wnull_dereference_CHECKED=YES
-- _Wshadow_CHECKED=YES
-- _Wstrict_overflow_2_CHECKED=YES
-- _Wsuggest_override_CHECKED=YES
-- _Wundef_CHECKED=YES
-- _Wunknown_pragmas_CHECKED=YES
-- _Wzero_as_null_pointer_constant_CHECKED=YES
-- _fno_strict_aliasing_CHECKED=YES
-- boomerang-CCodegen_LIB_DEPENDS=general;Qt5::Core;general;boomerang;
-- boomerang-CSymbolProvider_LIB_DEPENDS=general;Qt5::Core;general;boomerang;
-- boomerang-CapstoneX86Decoder_LIB_DEPENDS=general;Qt5::Core;general;boomerang;general;Capstone::Capstone;
-- boomerang-DFATypeRecovery_LIB_DEPENDS=general;Qt5::Core;general;boomerang;
-- boomerang-DOS4GWLoader_LIB_DEPENDS=general;Qt5::Core;general;boomerang;
-- boomerang-ElfLoader_LIB_DEPENDS=general;Qt5::Core;general;boomerang;
-- boomerang-ExeLoader_LIB_DEPENDS=general;Qt5::Core;general;boomerang;
-- boomerang-MachOLoader_LIB_DEPENDS=general;Qt5::Core;general;boomerang;
-- boomerang-PPCDecoder_LIB_DEPENDS=general;Qt5::Core;general;boomerang;
-- boomerang-PPCFrontEnd_LIB_DEPENDS=general;Qt5::Core;general;boomerang;
-- boomerang-SPARCDecoder_LIB_DEPENDS=general;Qt5::Core;general;boomerang;
-- boomerang-SPARCFrontEnd_LIB_DEPENDS=general;Qt5::Core;general;boomerang;
-- boomerang-ST20Decoder_LIB_DEPENDS=general;Qt5::Core;general;boomerang;
-- boomerang-ST20FrontEnd_LIB_DEPENDS=general;Qt5::Core;general;boomerang;
-- boomerang-Win32Loader_LIB_DEPENDS=general;Qt5::Core;general;boomerang;
-- boomerang-X86FrontEnd_LIB_DEPENDS=general;Qt5::Core;general;boomerang;
-- boomerang_LIB_DEPENDS=general;boomerang-ansic-parser;
TERM_PROGRAM=Apple_Terminal
TERM=xterm-256color
SHELL=/bin/bash
TMPDIR=/var/folders/05/rn0kgvkj6zbcgrnh4cyx8gyh0000gn/T/
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.uhLDKYT78P/Render
TERM_PROGRAM_VERSION=404
TERM_SESSION_ID=9AB8D25C-54C5-4DFD-8CBF-B6ADB122A698
USER=user
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.TZkhwqf3IK/Listeners
PATH=/Users/user/miniconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
PWD=/Users/user/Documents/zDEVELOP/boomerang/build
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
HOME=/Users/user
SHLVL=1
LOGNAME=user
LC_CTYPE=UTF-8
_=/usr/local/bin/cmake
__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x64
-- Could NOT find CCache (missing: CCache_EXECUTABLE) 
-- Configuring Boomerang v0.4.0-alpha-463-g3e26bfb8-dirty ...
-- _NAME is 
-- Found FLEX: /usr/bin/flex (found suitable version "2.6.4", minimum required is "2.6") 
-- Configuring done
CMake Warning (dev) in src/boomerang/ssl/parser/CMakeLists.txt:
  Policy CMP0071 is not set: Let AUTOMOC and AUTOUIC process GENERATED files.
  Run "cmake --help-policy CMP0071" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  For compatibility, CMake is excluding the GENERATED source file(s):

    "/Users/user/Documents/zDEVELOP/boomerang/src/boomerang/ssl/parser/SSL2Parser.hpp"
    "/Users/user/Documents/zDEVELOP/boomerang/src/boomerang/ssl/parser/SSL2Parser.cpp"
    "/Users/user/Documents/zDEVELOP/boomerang/src/boomerang/ssl/parser/SSL2Scanner.cpp"

  from processing by AUTOMOC and AUTOUIC.  If any of the files should be
  processed, set CMP0071 to NEW.  If any of the files should not be
  processed, explicitly exclude them by setting the source file property
  SKIP_AUTOGEN:

    set_property(SOURCE file.h PROPERTY SKIP_AUTOGEN ON)

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in src/boomerang-plugins/symbol/c/parser/CMakeLists.txt:
  Policy CMP0071 is not set: Let AUTOMOC and AUTOUIC process GENERATED files.
  Run "cmake --help-policy CMP0071" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  For compatibility, CMake is excluding the GENERATED source file(s):

    "/Users/user/Documents/zDEVELOP/boomerang/src/boomerang-plugins/symbol/c/parser/AnsiCParser.hpp"
    "/Users/user/Documents/zDEVELOP/boomerang/src/boomerang-plugins/symbol/c/parser/AnsiCParser.cpp"
    "/Users/user/Documents/zDEVELOP/boomerang/src/boomerang-plugins/symbol/c/parser/AnsiCScanner.cpp"

  from processing by AUTOMOC and AUTOUIC.  If any of the files should be
  processed, set CMP0071 to NEW.  If any of the files should not be
  processed, explicitly exclude them by setting the source file property
  SKIP_AUTOGEN:

    set_property(SOURCE file.h PROPERTY SKIP_AUTOGEN ON)

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /Users/user/Documents/zDEVELOP/boomerang/build
Scanning dependencies of target boomerang-ansic-parser_autogen
[  0%] Automatic MOC and UIC for target boomerang-ansic-parser
[  0%] Built target boomerang-ansic-parser_autogen
[  0%] [FLEX][AnsiCScanner] Building scanner with flex 2.6.4
[  0%] [BISON][AnsiCParser] Building parser with bison 3.3.2
/Users/user/Documents/zDEVELOP/boomerang/src/boomerang-plugins/symbol/c/parser/AnsiCParser.y:17.1-20: warning: deprecated directive, use ‘%define api.prefix {AnsiC}’ [-Wdeprecated]
 %name-prefix "AnsiC"
 ^~~~~~~~~~~~~~~~~~~~
/Users/user/Documents/zDEVELOP/boomerang/src/boomerang-plugins/symbol/c/parser/AnsiCParser.y: warning: 17 shift/reduce conflicts [-Wconflicts-sr]
bison: /usr/local/Cellar/bison/3.3.2/share/bison/m4sugar/m4sugar.m4: cannot open: No such file or directory
make[2]: *** [../src/boomerang-plugins/symbol/c/parser/AnsiCParser.cpp] Error 1
make[1]: *** [src/boomerang-plugins/symbol/c/parser/CMakeFiles/boomerang-ansic-parser.dir/all] Error 2
make: *** [all] Error 2
Users-MacBook-Pro:build user$ type bison
bison is /usr/bin/bison
Users-MacBook-Pro:build user$ type flex
flex is /usr/bin/flex

@humanitiesclinic
Copy link
Author

any suggestions, anyone?

@ceeac
Copy link
Member

ceeac commented Apr 29, 2019

Got access to a macOS build environment now. What I've found to work is this:

  • brew install git cmake qt capstone bison flex gettext pcre2 (The last 2 installed automatically for me)
  • clone Boomerang and make build directory
  • cmake -DQt5_DIR=$(brew --prefix qt5)/lib/cmake/Qt5/ -DFLEX_EXECUTABLE=$(brew --prefix flex)/bin/flex -DBISON_EXECUTABLE=$(brew --prefix bison)/bin/bison ..
  • make

Note that you also need the code from #222 to compile successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: mac (I) This issue is specific to macOS type: support (I) Q&A about how to use Boomerang
Projects
None yet
Development

No branches or pull requests

2 participants