unable to compile sage-10.6 on opensuse leap 15.6

38 views
Skip to first unread message

Michael Dreher

unread,
Aug 18, 2025, 9:19:02 AMAug 18
to sage-support
Hello all,

for several years, I have installed sagemath on opensuse distributions from source, without problems. And I think that I have some experience with compiling from source.

But now it fails in the "./configure" stage with the claim of a missing "complex.h". But this file exists in /usr/include/complex.h

The system is opensuse leap 15.6 with gcc 13.2.1 and python3.9.



Any help is greatly appreciated!

best wishes
Michael

config.log

Dima Pasechnik

unread,
Aug 18, 2025, 10:54:38 AMAug 18
to sage-s...@googlegroups.com
Could you please try 10.7 instead?

Michael Dreher

unread,
Aug 19, 2025, 5:56:11 AMAug 19
to sage-support
Hello Dima,

now I have tried 10.7 and it fails in the same location.

thanks a lot,
Michael
config.log

Dima Pasechnik

unread,
Aug 19, 2025, 12:43:20 PMAug 19
to sage-s...@googlegroups.com
You have some weird thing called gpp in your PATH, which makes the
configure script think it's the C++ compiler (but in fact it's
a preprocessor)

real_configure:10361: checking for g++
real_configure:10397: result: no
real_configure:10361: checking for c++
real_configure:10397: result: no
real_configure:10361: checking for gpp
real_configure:10382: found /usr/bin/gpp
real_configure:10394: result: gpp
real_configure:10421: checking for C++ compiler version
real_configure:10430: gpp --version >&5
GPP 2.28

followed by the error you indicated:

real_configure:10445: checking whether the compiler supports GNU C++
real_configure:10465: gpp -c conftest.cpp >&5
stdin:1: error: character not allowed to start a syntax specifier


Please install gcc-c++ (which should give you g++, it seems to me - I
don't have an OpenSuse to test myself)
This will give you g++ and this will all go through.
(also don't forget to install gcc-fortran, etc)

HTH
Dima


On Tue, Aug 19, 2025 at 4:56 AM 'Michael Dreher' via sage-support
<sage-s...@googlegroups.com> wrote:
>
> Hello Dima,
>
> now I have tried 10.7 and it fails in the same location.
>
> thanks a lot,
> Michael
>
> dim...@gmail.com schrieb am Montag, 18. August 2025 um 16:54:38 UTC+2:
>>
>> Could you please try 10.7 instead?
>>
>>
>> On August 18, 2025 9:10:09 AM EDT, 'Michael Dreher' via sage-support <sage-s...@googlegroups.com> wrote:
>>>
>>> Hello all,
>>>
>>> for several years, I have installed sagemath on opensuse distributions from source, without problems. And I think that I have some experience with compiling from source.
>>>
>>> But now it fails in the "./configure" stage with the claim of a missing "complex.h". But this file exists in /usr/include/complex.h
>>>
>>> The system is opensuse leap 15.6 with gcc 13.2.1 and python3.9.
>>>
>>>
>>>
>>> Any help is greatly appreciated!
>>>
>>> best wishes
>>> Michael
>>>
> --
> 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 visit https://groups.google.com/d/msgid/sage-support/4090c1e5-312d-4ad0-b128-e7dd82dd5bbdn%40googlegroups.com.

Michael Dreher

unread,
Aug 20, 2025, 10:32:48 AMAug 20
to sage-support
Hello Dima,

thanks a lot; this is indeed the solution. Uninstalling the gpp preprocessor led to the ./configure run through, and also the "make" step was mostly successfull. I had to define a symbolic link "/usr/bin/g++" that points to "/usr/bin/g++-13" because the MAKEFLAG CXX=g++-13 somehow did not propagate to the compilation of the singular package. 

thanks again, the issue is solved now.
Michael
Reply all
Reply to author
Forward
0 new messages