-
Notifications
You must be signed in to change notification settings - Fork 923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined symbol _bfdec_normalize_and_round
, when compiling without CONFIG_BIGNUM
, since 94010ed
#241
Comments
@past-due Sorry for the lack of responsiveness, I shall fix it this week. |
GerHobbelt
pushed a commit
to GerHobbelt/quickjs
that referenced
this issue
May 6, 2024
HarlonWang
added a commit
to HarlonWang/quickjs
that referenced
this issue
Sep 19, 2024
…round', Related issues:bellard#241
HarlonWang
added a commit
to HarlonWang/quickjs
that referenced
this issue
Sep 19, 2024
HarlonWang
added a commit
to HarlonWang/quickjs
that referenced
this issue
Sep 19, 2024
HarlonWang
added a commit
to HarlonWang/quickjs
that referenced
this issue
Sep 19, 2024
HarlonWang
added a commit
to HarlonWang/quickjs
that referenced
this issue
Sep 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In 94010ed, the defines for
USE_BF_DEC
andUSE_FFT_MUL
were placed inside an#ifdef CONFIG_BIGNUM
:quickjs/libbf.c
Lines 40 to 45 in 94010ed
This causes an undefined symbol error when compiling without
CONFIG_BIGNUM
defined, due to_bf_atof_internal
's referencing_bfdec_normalize_and_round
.(Example: Try compiling QuickJS without optimizations and without CONFIG_BIGNUM defined.)
It appears that there are only two uses of
_bf_atof_internal
whenCONFIG_BIGNUM
is undefined:quickjs/libbf.c
Lines 3159 to 3172 in 3bb2ca3
Both of these pass
FALSE
to theBOOL is_dec
parameter of_bf_atof_internal
, and so_bfdec_normalize_and_round
should never actually be called whenCONFIG_BIGNUM
is undefined:quickjs/libbf.c
Lines 3105 to 3108 in 3bb2ca3
So it seems like
_bf_atof_internal
could use an#ifdef USE_BF_DEC
check around this single use ofbfdec_normalize_and_round
. For example (not sure if this is the best / desired approach):@chqrlie : Any thoughts / suggestions?
The text was updated successfully, but these errors were encountered: