Sage Build Failed

36 views
Skip to first unread message

Atharva Deore

unread,
Mar 20, 2023, 5:54:38 AM3/20/23
to sage-support
Hi,
 I am trying to build sage using WSL, but it failed while installing suitesparse. Please help me with this. I am attaching a log file for reference.

Regards
Atharva Deore
suitesparse-5.10.1.log

dim...@gmail.com

unread,
Mar 20, 2023, 6:18:26 AM3/20/23
to sage-s...@googlegroups.com
On Mon, Mar 20, 2023 at 12:33:20AM -0700, Atharva Deore wrote:
> I am trying to build sage using WSL, but it failed while
> installing suitesparse. Please help me with this. I am attaching a log file
> for reference.
>
> Host system:
> Linux DESKTOP-LO8OV26 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
> ****************************************************
> C compiler: clang
> C compiler version:
> Ubuntu clang version 14.0.0-1ubuntu1
> Target: x86_64-pc-linux-gnu
> Thread model: posix
> InstalledDir: /usr/bin
> Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/11
> Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/9
> Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/11
> Candidate multilib: .;@m64
> Selected multilib: .;@m64
> ****************************************************
> Package 'suitesparse' is currently not installed
> No legacy uninstaller found for 'suitesparse'; nothing to do
...

> /usr/bin/ld: cannot find -lomp: No such file or directory

looks like you need to install an extra package here.
Try doing

sudo apt install libomp-dev

and then run

make

again. You've probably run into this, as we don't test clang on Linux,
as far as I know.

HTH
Dima

Atharva Deore

unread,
Mar 20, 2023, 7:57:37 AM3/20/23
to sage-s...@googlegroups.com
Thanks, Dima! The issue is resolved now.

--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/ZBgy7AGipsZuYGpl%40hilbert.

Henri Girard

unread,
Mar 20, 2023, 10:39:43 AM3/20/23
to sage-s...@googlegroups.com

Good I compiled in wsl2 with lunar (ubuntu+1) I had no problem curious to know why,

Dima Pasechnik

unread,
Mar 20, 2023, 10:50:51 AM3/20/23
to sage-support


On Mon, 20 Mar 2023, 14:39 Henri Girard, <henri....@gmail.com> wrote:

Good I compiled in wsl2 with lunar (ubuntu+1) I had no problem curious to know why,


you probably used gcc as C/C++ compiler - the problem comes up with clang used instead.

Henri Girard

unread,
Mar 20, 2023, 10:58:20 AM3/20/23
to sage-s...@googlegroups.com

Thanks ! Yes it is true I use what wsl installed, to be true except the name I don't know about clang.

Best

Henri

Reply all
Reply to author
Forward
0 new messages