Comments (4)
I've discovered this problem likely has something to do with a bug in XCode, so I'm closing the issue here.
from cpphs.
I think the problem might be that my g++
seems to actually be pointing at clang
. I'm trying to remedy this now.
from cpphs.
Same problem, essentially:
g++-9 \
-liconv \
-I/usr/local/Cellar/ghc/8.10.1/lib/ghc-8.10.1/include \
-L/usr/local/Cellar/ghc/8.10.1/lib/ghc-8.10.1 \
-L/usr/local/Cellar/ghc/8.10.1/lib/ghc-8.10.1/rts \
-lHSrts \
-L/usr/local/Cellar/ghc/8.10.1/lib/ghc-8.10.1/base-4.14.0.0 \
-lHSbase-4.14.0.0 \
-L/usr/local/Cellar/ghc/8.10.1/lib/ghc-8.10.1/ghc-prim-0.6.1 \
-lHSghc-prim-0.6.1 \
-L/usr/local/Cellar/ghc/8.10.1/lib/ghc-8.10.1/integer-gmp-1.0.3.0 \
-lHSinteger-gmp-1.0.3.0 \
-fno-stack-protector \
-Wall \
-o program program.cpp program.o
Undefined symbols for architecture x86_64:
"___darwin_check_fd_set_overflow", referenced from:
_awaitEvent in libHSrts.a(Select.o)
"___gmpn_add", referenced from:
_Lrfug_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_LcjqS_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
"___gmpn_add_1", referenced from:
_Lrfud_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_LcjiT_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
"___gmpn_and_n", referenced from:
_integer_gmp_mpn_and_n in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"___gmpn_andn_n", referenced from:
_integer_gmp_mpn_andn_n in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"___gmpn_cmp", referenced from:
_Lcbp7_info in libHSbase-4.14.0.0.a(Enum.o)
_Lcbsv_info in libHSbase-4.14.0.0.a(Enum.o)
_Lcbus_info in libHSbase-4.14.0.0.a(Enum.o)
_LcbrL_info in libHSbase-4.14.0.0.a(Enum.o)
_LcbAV_info in libHSbase-4.14.0.0.a(Enum.o)
_LcbDB_info in libHSbase-4.14.0.0.a(Enum.o)
_LcbGX_info in libHSbase-4.14.0.0.a(Enum.o)
...
"___gmpn_divrem_1", referenced from:
_Lrfup_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_Lckt9_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_Lckvn_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_LcmVb_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_LcmRk_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_Lcn2X_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_Lcn19_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
...
"___gmpn_gcd_1", referenced from:
_integer_gmp_gcd_word in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_mpn_gcd_1 in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_mpn_gcd in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"___gmpn_ior_n", referenced from:
_integer_gmp_mpn_ior_n in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"___gmpn_lshift", referenced from:
_integer_gmp_mpn_lshift in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"___gmpn_mod_1", referenced from:
_Lc4Yj_info in libHSbase-4.14.0.0.a(Natural.o)
_integerzmwiredzmin_GHCziIntegerziType_czumpnzumodzu1_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_Lckxj_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_LcnDk_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_LcnFs_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
"___gmpn_mul", referenced from:
_Lrfui_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_Lcjyw_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
"___gmpn_mul_1", referenced from:
_Lrfuf_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_LcjoB_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
"___gmpn_popcount", referenced from:
_Lc5c8_info in libHSbase-4.14.0.0.a(Natural.o)
_integerzmwiredzmin_GHCziIntegerziType_czumpnzupopcount_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_LclZ0_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_LclZt_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
"___gmpn_rshift", referenced from:
_integer_gmp_mpn_rshift in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_mpn_rshift_2c in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"___gmpn_sub", referenced from:
_Lrfuh_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_LcjvF_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
"___gmpn_sub_1", referenced from:
_Lrfue_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_Lcjlb_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_LcjmK_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_Lclbx_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_LclbZ_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_Lcl8V_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_Lclvk_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
...
"___gmpn_tdiv_qr", referenced from:
_Lrfum_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_LcmCD_info in libHSinteger-gmp-1.0.3.0.a(Type.o)
_integer_gmp_mpn_tdiv_q in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_mpn_tdiv_r in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"___gmpn_xor_n", referenced from:
_integer_gmp_mpn_xor_n in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"___gmpz_clear", referenced from:
_integer_gmp_mpn_gcd in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_gcdext in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_next_prime in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_next_prime1 in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_powm in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_powm1 in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_powm_sec in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
...
"___gmpz_export", referenced from:
_integer_gmp_mpn_export in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_mpn_export1 in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"___gmpz_gcd", referenced from:
_integer_gmp_mpn_gcd in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"___gmpz_gcdext", referenced from:
_integer_gmp_gcdext in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"___gmpz_get_d", referenced from:
_integer_gmp_mpn_get_d in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"___gmpz_get_d_2exp", referenced from:
_integer_gmp_mpn_get_d in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"___gmpz_init", referenced from:
_integer_gmp_mpn_gcd in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_gcdext in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_next_prime in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_next_prime1 in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_powm in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_powm1 in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_powm_sec in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
...
"___gmpz_invert", referenced from:
_integer_gmp_invert in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_invert_word in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"___gmpz_nextprime", referenced from:
_integer_gmp_next_prime in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_next_prime1 in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"___gmpz_powm", referenced from:
_integer_gmp_powm in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_powm1 in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"___gmpz_powm_sec", referenced from:
_integer_gmp_powm_sec in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"___gmpz_probab_prime_p", referenced from:
_integer_gmp_test_prime in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_test_prime1 in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"___gmpz_sizeinbase", referenced from:
_integer_gmp_mpn_sizeinbase in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
_integer_gmp_mpn_sizeinbase1 in libHSinteger-gmp-1.0.3.0.a(wrappers.o)
"_ffi_call", referenced from:
_rtsSyms in libHSrts.a(RtsSymbols.o)
_interpretBCO in libHSrts.a(Interpreter.o)
"_ffi_prep_cif", referenced from:
_rtsSyms in libHSrts.a(RtsSymbols.o)
"_ffi_type_double", referenced from:
_rtsSyms in libHSrts.a(RtsSymbols.o)
"_ffi_type_float", referenced from:
_rtsSyms in libHSrts.a(RtsSymbols.o)
"_ffi_type_pointer", referenced from:
_rtsSyms in libHSrts.a(RtsSymbols.o)
"_ffi_type_sint16", referenced from:
_rtsSyms in libHSrts.a(RtsSymbols.o)
"_ffi_type_sint32", referenced from:
_rtsSyms in libHSrts.a(RtsSymbols.o)
"_ffi_type_sint64", referenced from:
_rtsSyms in libHSrts.a(RtsSymbols.o)
"_ffi_type_sint8", referenced from:
_rtsSyms in libHSrts.a(RtsSymbols.o)
"_ffi_type_uint16", referenced from:
_rtsSyms in libHSrts.a(RtsSymbols.o)
"_ffi_type_uint32", referenced from:
_rtsSyms in libHSrts.a(RtsSymbols.o)
"_ffi_type_uint64", referenced from:
_rtsSyms in libHSrts.a(RtsSymbols.o)
"_ffi_type_uint8", referenced from:
_rtsSyms in libHSrts.a(RtsSymbols.o)
"_ffi_type_void", referenced from:
_rtsSyms in libHSrts.a(RtsSymbols.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make: *** [program] Error 1```
from cpphs.
@SjorsVanGelderen I am having same problem. Would love to know how you solved it.
from cpphs.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpphs.