Skip to content
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

Unneeded yasm dependency on non-x86 platform #270

Open
rossbridger opened this issue May 1, 2019 · 2 comments
Open

Unneeded yasm dependency on non-x86 platform #270

rossbridger opened this issue May 1, 2019 · 2 comments

Comments

@rossbridger
Copy link

rossbridger commented May 1, 2019

When building mpir on non-x86 platform (e.g. sparc), the build script is still trying to locate the yasm binary, which leads to the following error:
Looking for a system-wide yasm... which: no yasm in (/usr/lib/portage/python3.5/ebuild-helpers/xattr:/usr/lib/portage/python3.5/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/sparc-unknown-linux-gnu/gcc-bin/7.3.0:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin) configure: error: no system-wide yasm found
For platforms that don't need yasm, the build script shouldn't force yasm as its mandatory dependency. This has been a downstream bug.

@ishandutta2007
Copy link

ishandutta2007 commented Jun 6, 2022

I am on windows 10. I am getting the same . Can someone tell whats the quick workaround ?

@ishandutta2007
Copy link

ishandutta2007 commented Jun 6, 2022

If I comment out this entire block ie

# # If the user provided its Yasm, check it seems functional
# MPIR_AS=""
# if test -z "$with_yasm"; then
#   echo "Looking for a system-wide yasm..."
#   MPIR_AS=`which yasm`
#   if test $? -ne 0; then
#     as_fn_error $? "no system-wide yasm found" "$LINENO" 5
#   fi
# else
#   MPIR_AS="$with_yasm"
# fi
# echo "Checking yasm..."
# if ! test -f "$MPIR_AS" || ! test -x "$MPIR_AS"; then
#   as_fn_error $? "$MPIR_AS does not seem functional" "$LINENO" 5
# fi

.\configure completes without any issue but make gives following error:
(I am not sure if it's related)

../strip_fPIC.sh: line 31: exec: -I: invalid option
exec: usage: exec [-cl] [-a name] [command [argument ...]] [redirection ...]
make[2]: *** [Makefile:730: divexact_1.lo] Error 1
make[2]: Leaving directory '/c/Users/hp/Documents/Projects/mpir-3.0.0/mpn'
make[1]: *** [Makefile:942: all-recursive] Error 1
make[1]: Leaving directory '/c/Users/hp/Documents/Projects/mpir-3.0.0'
make: *** [Makefile:744: all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants