Git Product home page Git Product logo

Comments (11)

andrey-khropov avatar andrey-khropov commented on June 4, 2024

Problem: build from source failed Catboost version: latest source code Operating System: OS 14.0 CPU: Apple M1 Pro

I downloaded the latest code from GitHub and prepared to build the Python Whl package according to the official website instructions, but it showed an error.

What is your python version, pip version and do you have setuptools, wheel and build python packages installed?

BTW, does there exist any debug mode for catboost? Really feel confused about how the tree is built. I tried using plain mode and plot the tree structure but found that the tree is also a symmetric tree.

You can build CatBoost from source with build type set to Debug either using build_native.py with the option --build-type=Debug or when invoking CMake directly and specifying CMAKE_BUILD_TYPE.

If you are talking about debug mode in a sense that more additional information is output then:

  • I think there are too many things and scenarios for what should be output and what not to build a some kind of universally useful debug mode. But we are open to suggestions.

  • CatBoost is open source so you can modify the source code to output what is useful in your debugging case.

from catboost.

ccylance avatar ccylance commented on June 4, 2024

What is your python version, pip version and do you have setuptools, wheel and build python packages installed?

@andrey-khropov
Python: 3.9.6
pip: 24.0
setuptools: 69.2.0
wheel: 0.37.0
build: 1.2.1

BTW, I noticed that the piror_numerator might be different in one tree of different depths. Why is this๏ผŸ

from catboost.

andrey-khropov avatar andrey-khropov commented on June 4, 2024

one tree of different depths

I don't understand what you mean by this.

P.S. Please don't ask unrelated questions in a single issue, open a separate one or ask in the Discussions page on in the Telegram chat

from catboost.

ccylance avatar ccylance commented on June 4, 2024

@andrey-khropov Ok, let's continue discussing the build failure issue here.

from catboost.

andrey-khropov avatar andrey-khropov commented on June 4, 2024

image

What revision of the the source code did you use exactly?

Your error is reported on line 311. but this code with user_options has been on line 312 for quite some time.

from catboost.

ccylance avatar ccylance commented on June 4, 2024

I am using the latest version from git. I previously made some modifications to the code because I wanted to use GPT to fix the problem. So I pull the code again and try to compile, it showed a new error
image
@andrey-khropov

from catboost.

andrey-khropov avatar andrey-khropov commented on June 4, 2024

I am using the latest version from git. I previously made some modifications to the code because I wanted to use GPT to fix the problem. So I pull the code again and try to compile, it showed a new error image @andrey-khropov

This is very weird and I don't think it depends on CatBoost. Try to cleanup .eggs directory and run the build command again.

from catboost.

ccylance avatar ccylance commented on June 4, 2024

@andrey-khropov Python Conan dependencies with version 2.2.3 works well but the build process occurred new error after cleaning .egg directory.
image

from catboost.

andrey-khropov avatar andrey-khropov commented on June 4, 2024

@andrey-khropov Python Conan dependencies with version 2.2.3

Version of what? CatBoost does not have version 2.2.3 yet.

works well but the build process occurred new error after cleaning .egg directory.

It prints that the Conan install failed, check the messages above to get the original error during the conan packages installation.

P.S. Please insert text as text, not images, it will be easier to find, quote and copy-paste.

from catboost.

ccylance avatar ccylance commented on June 4, 2024

@andrey-khropov The source code of Catboost is the latest one pulled from GitHub. I installed Conan using pip, and the down the version of Conan to 1.62.0. But another error occured:

FAILED: util/draft/CMakeFiles/util-draft.dir/ip.cpp.o
/usr/bin/clang++ -DCATBOOST_OPENSOURCE=yes -I../../../../ -I. -I../../../../contrib/libs/linux-headers -I../../../../contrib/libs/linux-headers/_nf -I../../../../contrib/libs/cxxsupp/libcxx/include -I../../../../contrib/libs/cxxsupp/libcxxrt/include -I../../../../contrib/libs/clang16-rt/include -fexceptions -fno-common -fcolor-diagnostics -faligned-allocation -fdebug-default-version=4 -ffunction-sections -fdata-sections -Wall -Wextra -Wno-parentheses -Wno-implicit-const-int-float-conversion -Wno-unknown-warning-option -pipe -D_THREAD_SAFE -D_PTHREADS -D_REENTRANT -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__LONG_LONG_SUPPORTED -D_GNU_SOURCE -DLIBCXX_BUILDING_LIBCXXRT -fuse-init-array -D_FILE_OFFSET_BITS=64 -m64 -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mcx16 -D_YNDX_LIBUNWIND_ENABLE_EXCEPTION_BACKTRACE -Woverloaded-virtual -Wimport-preprocessor-directive-pedantic -Wno-undefined-var-template -Wno-return-std-move -Wno-defaulted-function-deleted -Wno-pessimizing-move -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-deprecated-enum-float-conversion -Wno-ambiguous-reversed-operator -Wno-deprecated-volatile -DSSE_ENABLED=1 -DSSE3_ENABLED=1 -DSSSE3_ENABLED=1 -DSSE41_ENABLED=1 -DSSE42_ENABLED=1 -DPOPCNT_ENABLED=1 -DCX16_ENABLED=1 -fPIC -DLIBCXX_BUILDING_LIBCXXRT -nostdinc++ -D_libunwind_ -std=c++2a -MD -MT util/draft/CMakeFiles/util-draft.dir/ip.cpp.o -MF util/draft/CMakeFiles/util-draft.dir/ip.cpp.o.d -o util/draft/CMakeFiles/util-draft.dir/ip.cpp.o -c ../../../../util/draft/ip.cpp
clang: error: unknown argument: '-fdebug-default-version=4'

from catboost.

andrey-khropov avatar andrey-khropov commented on June 4, 2024

@andrey-khropov The source code of Catboost is the latest one pulled from GitHub. I installed Conan using pip, and the down the version of Conan to 1.62.0. But another error occured:

FAILED: util/draft/CMakeFiles/util-draft.dir/ip.cpp.o
/usr/bin/clang++ -DCATBOOST_OPENSOURCE=yes -I../../../../ -I. -I../../../../contrib/libs/linux-headers -I../../../../contrib/libs/linux-headers/_nf -I../../../../contrib/libs/cxxsupp/libcxx/include -I../../../../contrib/libs/cxxsupp/libcxxrt/include -I../../../../contrib/libs/clang16-rt/include -fexceptions -fno-common -fcolor-diagnostics -faligned-allocation -fdebug-default-version=4 -ffunction-sections -fdata-sections -Wall -Wextra -Wno-parentheses -Wno-implicit-const-int-float-conversion -Wno-unknown-warning-option -pipe -D_THREAD_SAFE -D_PTHREADS -D_REENTRANT -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__LONG_LONG_SUPPORTED -D_GNU_SOURCE -DLIBCXX_BUILDING_LIBCXXRT -fuse-init-array -D_FILE_OFFSET_BITS=64 -m64 -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mcx16 -D_YNDX_LIBUNWIND_ENABLE_EXCEPTION_BACKTRACE -Woverloaded-virtual -Wimport-preprocessor-directive-pedantic -Wno-undefined-var-template -Wno-return-std-move -Wno-defaulted-function-deleted -Wno-pessimizing-move -Wno-deprecated-anon-enum-enum-conversion -Wno-deprecated-enum-enum-conversion -Wno-deprecated-enum-float-conversion -Wno-ambiguous-reversed-operator -Wno-deprecated-volatile -DSSE_ENABLED=1 -DSSE3_ENABLED=1 -DSSSE3_ENABLED=1 -DSSE41_ENABLED=1 -DSSE42_ENABLED=1 -DPOPCNT_ENABLED=1 -DCX16_ENABLED=1 -fPIC -DLIBCXX_BUILDING_LIBCXXRT -nostdinc++ -D_libunwind_ -std=c++2a -MD -MT util/draft/CMakeFiles/util-draft.dir/ip.cpp.o -MF util/draft/CMakeFiles/util-draft.dir/ip.cpp.o.d -o util/draft/CMakeFiles/util-draft.dir/ip.cpp.o -c ../../../../util/draft/ip.cpp
clang: error: unknown argument: '-fdebug-default-version=4'

That means that your clang version is very old. '-fdebug-default-version' argument is supported since clang 10.x.

CatBoost requires newer clang versions to build.

from catboost.

Related Issues (20)

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.