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

Bug: undefined symbol: __pow_finite #637

Open
jowodo opened this issue Apr 4, 2024 · 3 comments
Open

Bug: undefined symbol: __pow_finite #637

jowodo opened this issue Apr 4, 2024 · 3 comments
Assignees

Comments

@jowodo
Copy link

jowodo commented Apr 4, 2024

Describe the bug
callpeak function fails due to old glibc version during compilation of cython code (assumption)

To Reproduce

pip install macs3=3.0.1 
macs3 callpeak -t $BAMFILE -n 8h_3utr --nomodel --extsize 200 --broad --outdir $OUTDIR

Expected behavior
calculation to terminate successfully (macs3 version 3.0.0 works)

stderr

Traceback (most recent call last):
  File "/app/macs3/3.0.1-3.12.2/bin/macs3", line 1028, in <module>
    main()
  File "/app/macs3/3.0.1-3.12.2/bin/macs3", line 48, in main
    from MACS3.Commands.callpeak_cmd import run
  File "/app/macs3/3.0.1-3.12.2/MACS3/Commands/callpeak_cmd.py", line 23, in <module>
    from MACS3.Utilities.OptValidator import opt_validate_callpeak
  File "/app/macs3/3.0.1-3.12.2/MACS3/Utilities/OptValidator.py", line 24, in <module>
    from MACS3.IO.Parser import BEDParser, ELANDResultParser, ELANDMultiParser, \
  File "MACS3/IO/Parser.pyx", line 36, in init MACS3.IO.Parser
  File "MACS3/Signal/FixWidthTrack.pyx", line 25, in init MACS3.Signal.FixWidthTrack
ImportError: /app/macs3/3.0.1-3.12.2/MACS3/Signal/SignalProcessing.cpython-312-x86_64-linux-gnu.so: undefined symbol: __pow_finite

System (please complete the following information):

  • OS: Oracle Linux 9.3
  • kernel: 5.14.0-362.24.1.el9_3.x86_64
  • clang: 16.0.6
  • Python version 3.12.2
  • Numpy version 1.26.4
  • MACS Version 3.0.1

Additional context
Add any other context about the problem here.

@taoliu
Copy link
Contributor

taoliu commented Apr 8, 2024

@jowodo What's the version of Cython?

@timwoo102
Copy link

Had the same issue, quick Fix is to rebuild without -Ofast or include -fno-finite-math-only

Running with: Cython 3.0.10
Clang 14.0.0
ldd (Ubuntu GLIBC 2.35-0ubuntu3.6) 2.35

@taoliu
Copy link
Contributor

taoliu commented Apr 10, 2024

Thanks for your report! We will switch back to -O3 in future releases, to avoid the -ffast-math optimization.

@taoliu taoliu self-assigned this Apr 10, 2024
taoliu added a commit that referenced this issue Apr 10, 2024
taoliu added a commit that referenced this issue Apr 26, 2024
taoliu added a commit that referenced this issue May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants