-
-
Save y8/f28d795707f354d7311c61a36527d393 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
crystal build -s --release --link-flags="-static -L/usr/lib/x86_64-linux-gnu/" src/mongo_exporter.cr | |
Parse: 00:00:00.0001384 ( 0.19MB) | |
Semantic (top level): 00:00:01.6772618 ( 42.43MB) | |
Semantic (new): 00:00:00.0034218 ( 42.43MB) | |
Semantic (type declarations): 00:00:00.0308318 ( 50.43MB) | |
Semantic (abstract def check): 00:00:00.0019647 ( 50.43MB) | |
Semantic (cvars initializers): 00:00:00.1859773 ( 74.50MB) | |
Semantic (ivars initializers): 00:00:00.0096200 ( 74.50MB) | |
Semantic (main): 00:00:03.4502442 ( 154.87MB) | |
Semantic (cleanup): 00:00:00.0037070 ( 154.87MB) | |
Semantic (recursive struct check): 00:00:00.0025535 ( 154.87MB) | |
Codegen (crystal): 00:00:00.6544572 ( 163.37MB) | |
Codegen (bc+obj): 00:00:17.1992852 ( 163.37MB) | |
Codegen (linking): /usr/bin/ld: cannot find -lmongoc-1.0 | |
/usr/bin/ld: cannot find -lbson-1.0 | |
/usr/lib/x86_64-linux-gnu//libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup': | |
(.text+0x11): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking | |
_main.o: In function `*MongoExporter::Command#run:Nil': | |
main_module:(.text+0xb3623): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking | |
/opt/crystal/embedded/lib/../lib/libevent.a(evutil.o): In function `evutil_unparse_protoname': | |
evutil.c:(.text+0xf0d): warning: Using 'getprotobynumber' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking | |
collect2: error: ld returned 1 exit status | |
Error: execution of command failed with code: 1: `cc -o "/my/mongo_collection_exporter/mongo_exporter" "${@}" -static -L/usr/lib/x86_64-linux-gnu/ -rdynamic -lz `command -v pkg-config > /dev/null && pkg-config --libs libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs libcrypto || printf %s '-lcrypto'` -lmongoc-1.0 -lbson-1.0 -lpcre -lm -lgc -lpthread /opt/crystal/src/ext/libcrystal.a -levent -lrt -ldl -L/usr/lib -L/usr/local/lib` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment