Closed niweicumt closed 7 years ago
I get this error when building from source or using the pgxn installer:
Python version is 2.7 [ -d sql ] || mkdir sql [ -d src ] || mkdir src touch directories.stamp clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I./ -I/usr/local/Cellar/postgresql/9.5.4/include/server -I/usr/local/Cellar/postgresql/9.5.4/include/internal -I/usr/local/opt/openssl/include -I/usr/local/opt/readline/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 -c -o src/errors.o src/errors.c clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I./ -I/usr/local/Cellar/postgresql/9.5.4/include/server -I/usr/local/Cellar/postgresql/9.5.4/include/internal -I/usr/local/opt/openssl/include -I/usr/local/opt/readline/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 -c -o src/python.o src/python.c clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I./ -I/usr/local/Cellar/postgresql/9.5.4/include/server -I/usr/local/Cellar/postgresql/9.5.4/include/internal -I/usr/local/opt/openssl/include -I/usr/local/opt/readline/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 -c -o src/query.o src/query.c clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I./ -I/usr/local/Cellar/postgresql/9.5.4/include/server -I/usr/local/Cellar/postgresql/9.5.4/include/internal -I/usr/local/opt/openssl/include -I/usr/local/opt/readline/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 -c -o src/multicorn.o src/multicorn.c clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2 -bundle -multiply_defined suppress -Wl,-undefined,dynamic_lookup -o multicorn.so src/errors.o src/python.o src/query.o src/multicorn.o -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib -Wl,-dead_strip_dylibs -undefined dynamic_lookup -bundle_loader /usr/local/Cellar/postgresql/9.5.4/bin/postgres -bundle_loader /usr/local/Cellar/postgresql/9.5.4/bin/postgres -lpython2.7 -ldl -framework CoreFoundation -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -ldl -framework CoreFoundation 0 0x10d9ef5cc __assert_rtn + 144 1 0x10da5e17e ld::tool::OutputFile::compressedOrdinalForAtom(ld::Atom const*) + 246 2 0x10da5ee4a ld::tool::OutputFile::addDyldInfo(ld::Internal&, ld::Internal::FinalSection*, ld::Atom const*, ld::Fixup*, ld::Fixup*, ld::Fixup*, ld::Atom const*, ld::Atom const*, unsigned long long, unsigned long long) + 2250 3 0x10da52ede ld::tool::OutputFile::generateLinkEditInfo(ld::Internal&) + 1294 4 0x10da4d498 ld::tool::OutputFile::write(ld::Internal&) + 116 5 0x10d9f069e main + 1421 A linker snapshot was created at: /tmp/multicorn.so-2017-02-22-160742.ld-snapshot ld: Assertion failed: (0 && "dylib not assigned ordinal"), function compressedOrdinalForAtom, file /Library/Caches/com.apple.xbs/Sources/ld64/ld64-274.1/src/ld/OutputFile.cpp, line 3778. clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [multicorn.so] Error 1
edit Makefile, line (93), change darwin to Darwin make sudo ARCHFLAGS="-arch x86_64" make install
I get this error when building from source or using the pgxn installer: