I have opened https://trac.sagemath.org/ticket/33153 for this.

On Wednesday, January 12, 2022 at 9:20:55 AM UTC-8 bae...@gmail.com wrote:

> Indeed, adding the flag 
> export CFLAGS="${CFLAGS} -Wno-error=return-type"
> fixed the problem. Never had to do this in the past though.
>
> Thanks a lot for the help!
>
> Michael Orlitzky schrieb am Mittwoch, 12. Januar 2022 um 14:18:20 UTC+1:
>
>> On Wed, 2022-01-12 at 10:19 +0000, Dima Pasechnik wrote: 
>> > 
>> > Basically, your C++ compiler is too strict. 
>>
>> I think it's just the CFLAGS that are too strict: 
>>
>> error: Command "gcc-10 -Wno-unused-result -Wsign-compare -DNDEBUG 
>> -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong 
>> -funwind-tables -fasynchronous-unwind-tables 
>> -fstack-clash-protection -Werror=return-type ... 
>>
>> If it wasn't added manually, that "-Werror=return-type" likely came 
>> from some pkg-config file and was automatically appended to CFLAGS. 
>> First I would try 
>>
>> export CFLAGS="${CFLAGS} -Wno-error=return-type" 
>> ./configure 
>> make 
>>
>> to see if it can be overridden. But it would be nice to track down the 
>> source of the -Werror so that it can be fixed for others. 
>>
>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/a94c79c8-266d-4b72-91fe-a3077f925708n%40googlegroups.com.

Reply via email to