GithubHelp home page GithubHelp logo

Comments (5)

riastradh-probcomp avatar riastradh-probcomp commented on July 25, 2024

What goes wrong if you don't change the stdlib or if you omit the macosx-version-min?

from crosscat.

tibbetts avatar tibbetts commented on July 25, 2024

Build failure:

g++ -bundle -undefined dynamic_lookup -L/Users/tibbetts/anaconda/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.5-x86_64-2.7/crosscat/cython_code/CyclicComponentModel.o build/temp.macosx-10.5-x86_64-2.7/cpp_code/src/utils.o build/temp.macosx-10.5-x86_64-2.7/cpp_code/src/numerics.o build/temp.macosx-10.5-x86_64-2.7/cpp_code/src/RandomNumberGenerator.o build/temp.macosx-10.5-x86_64-2.7/cpp_code/src/ComponentModel.o build/temp.macosx-10.5-x86_64-2.7/cpp_code/src/CyclicComponentModel.o -L/Users/tibbetts/anaconda/lib -o build/lib.macosx-10.5-x86_64-2.7/crosscat/cython_code/CyclicComponentModel.so
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'g++' failed with exit status 1

----------------------------------------
Command "/Users/tibbetts/anaconda/bin/python -c "import setuptools, tokenize;__file__='/var/folders/h9/8d2yv2ln0gq74mp5mffdw8qw0000gn/T/pip-6CaCIe-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/h9/8d2yv2ln0gq74mp5mffdw8qw0000gn/T/pip-pFbKkb-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /var/folders/h9/8d2yv2ln0gq74mp5mffdw8qw0000gn/T/pip-6CaCIe-build

from crosscat.

riastradh-probcomp avatar riastradh-probcomp commented on July 25, 2024

Is that without -stdlib=libstdc++, or is that without -mmacosx-version-min=10.6?

from crosscat.

riastradh-probcomp avatar riastradh-probcomp commented on July 25, 2024

I just tried setting LDFLAGS and it took effect:

% LDFLAGS=-wotsit python setup.py build
...
c++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -wotsit build/temp.linux-x86_64-2.7/crosscat/cython_code/CyclicComponentModel.o build/temp.linux-x86_64-2.7/cpp_code/src/utils.o build/temp.linux-x86_64-2.7/cpp_code/src/numerics.o build/temp.linux-x86_64-2.7/cpp_code/src/RandomNumberGenerator.o build/temp.linux-x86_64-2.7/cpp_code/src/ComponentModel.o build/temp.linux-x86_64-2.7/cpp_code/src/CyclicComponentModel.o -o build/lib.linux-x86_64-2.7/crosscat/cython_code/CyclicComponentModel.so
c++: error: unrecognized command line option ‘-wotsit’
error: command 'c++' failed with exit status 1

from crosscat.

tibbetts avatar tibbetts commented on July 25, 2024

I stand corrected, the following line builds successfully:

LDFLAGS="-stdlib=libstdc++ -mmacosx-version-min=10.6" pip install git+ssh://[email protected]/probcomp/crosscat

from crosscat.

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.