fflas-ffpack install fail

129 views
Skip to first unread message

Gareth Ma

unread,
Jul 31, 2024, 3:11:42 PM7/31/24
to 'Martin R' via sage-devel
Hi, I'm running `make build` on latest dev branch, and I get the following error:

```
Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make all-build'):

* package: fflas_ffpack-2.5.0+sage-2024-05-18b
last build time: Jul 31 18:53
log file:
/home/grhkm/git/sage/logs/pkgs/fflas_ffpack-2.5.0+sage-2024-05-18b.log
build directory:
/home/grhkm/miniforge3/envs/sage-dev/var/tmp/sage/build/fflas_ffpack-2.5.0+sage-2024-05-18b
```

I have linked the log file below. In particular I see that these are the
erroring lines:

```
[spkg-install]
/home/grhkm/miniforge3/envs/sage-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/12.3.0/../../../../x86_64-conda-linux-g
nu/bin/ld: /home/grhkm/miniforge3/envs/sage-dev/lib/libfflas.a(fflas_L1_inst.o):
relocation R_X86_64_PC32 against symbol `_ZSt4co
ut@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC
[spkg-install]
/home/grhkm/miniforge3/envs/sage-dev/bin/../lib/gcc/x86_64-conda-linux-gnu/12.3.0/../../../../x86_64-conda-linux-g
nu/bin/ld: final link failed: bad value
```

Does anyone know what these means? *What* should I be recompiling with `-fPIC`,
and how do I enable that?

fflas_ffpack log: https://gist.github.com/grhkm21/58e1de21b9a2db85bf35149ec6b8c46b



Also I have fflas-ffpack installed on the system (from
`g...@github.com:linbox-team/fflas-ffpack.git` directly), is it possible to tell
Sage to use that instead?

```
$ ls -la /usr/include/fflas-ffpack | head -n 5
drwxr-xr-x - root 16 Jul 21:29 checkers
.rw-r--r-- 25k root 1 Jul 23:22 config-blas.h
.rw-r--r-- 6.6k root 1 Jul 23:22 config.h
drwxr-xr-x - root 16 Jul 21:29 fflas
.rw-r--r-- 5.0k root 1 Jul 23:22 fflas-ffpack-config.h
```

(Cross-posted from Zulip)

Gareth Ma

unread,
Aug 2, 2024, 8:23:59 AM8/2/24
to sage-devel
Bumping this thread, since it's stopping me from reviewing tickets :)

Dima Pasechnik

unread,
Aug 2, 2024, 2:24:27 PM8/2/24
to sage-...@googlegroups.com
is there a reason for not using fflas-ffpack from Conda?
(as far as I understand, you're building under Conda)

fflas-ffpack from the system might not be compatible (e.g. if a
different C++ compiler was used)
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/7b2d0cd7-05ef-42bb-a681-583fe283f161n%40googlegroups.com.

Matthias Koeppe

unread,
Aug 2, 2024, 2:24:37 PM8/2/24
to sage-devel
config.log please; also the result of "conda list" please, which gives a lot of relevant info when you try to build within a conda environment.

Gareth Ma

unread,
Aug 2, 2024, 2:33:15 PM8/2/24
to sage-...@googlegroups.com
My `conda list`:
https://gist.github.com/grhkm21/ac89913f1b168d96b3ffa67f37bcc2d5

config.log and package logs:
https://gist.github.com/grhkm21/6146c6da5c884687b28c4de07e6567fb

@Dima: As you can see from the output, I *did* install fflas-ffpack via Conda
using `conda install fflas-ffpack`. IIRC this command is also suggested after I
run ./configure. But it isn't used somehow.

@Matthias: Linked above.

Also the output of `fflas_ffpack-2.5.0+sage-2024-05-18b.log` gives me a command
to cd into the build directory and load a subshell to setup environment
variables. Confusingly when I build manually there (`make`) it compiles
successfully.

On 8/2/24 2:48 PM, Dima Pasechnik wrote:
> is there a reason for not using fflas-ffpack from Conda?
> (as far as I understand, you're building under Conda)
>
> fflas-ffpack from the system might not be compatible (e.g. if a
> different C++ compiler was used)
>
>
> On Fri, Aug 2, 2024 at 1:24 PM Gareth Ma <grh...@gmail.com> wrote:M

anon notmyfault64

unread,
Aug 4, 2024, 2:04:38 PM8/4/24
to sage-devel
On Saturday, August 3, 2024 at 1:33:15 AM UTC+7 Gareth Ma wrote:
My `conda list`:
https://gist.github.com/grhkm21/ac89913f1b168d96b3ffa67f37bcc2d5

config.log and package logs:
https://gist.github.com/grhkm21/6146c6da5c884687b28c4de07e6567fb

@Dima: As you can see from the output, I *did* install fflas-ffpack via Conda
using `conda install fflas-ffpack`. IIRC this command is also suggested after I
run ./configure. But it isn't used somehow.


So the build system can't check for fflas-ffpack from conda, right?

Dima Pasechnik

unread,
Aug 6, 2024, 4:16:41 PM8/6/24
to sage-...@googlegroups.com
It is checking and apparently rejecting it.
(assuming we talk about a regular install with
./configure && make)

More info should be in config.log

anon notmyfault64

unread,
Aug 8, 2024, 3:06:28 AM8/8/24
to sage-devel
On Wednesday, August 7, 2024 at 3:16:41 AM UTC+7 Dima Pasechnik wrote:
It is checking and apparently rejecting it.
(assuming we talk about a regular install with
./configure && make)

More info should be in config.log

OK, thanks!

Reply all
Reply to author
Forward
0 new messages