Opened 3 years ago

Closed 3 years ago

#26023 closed defect (duplicate)

Singular build with SAGE_DEBUG misses omalloc headers

Reported by: vbraun Owned by:
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: build Keywords:
Cc: jpflori, jakobkroeker Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: #24735 Stopgaps:

Status badges

Description

Building singular with SAGE_DEBUG fails to install omalloc headers into local/include/omalloc/, which later causes pynac to fail

[...]
cc1plus: warning: unrecognized command line option '-Wno-parentheses-equality'
mv -f .deps/libpynac_la-inifcns_comb.Tpo .deps/libpynac_la-inifcns_comb.Plo
/usr/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -std=c++11 -DHAVE_CONFIG_H -I. -I..  -I/mnt/disk/home/buildslave-sage/slave/sage_git/build/local/include/python2.7 -I/mnt/disk/home/buildslave-sage/slave/sage_git/build/local/include/ -DOM_NDEBUG  -Wall -Wextra -Wshadow -Wnon-virtual-dtor -Wno-unused-parameter -Wno-unknown-pragmas -Wno-parentheses-equality   -O2 -g  -MT libpynac_la-mpoly-singular.lo -MD -MP -MF .deps/libpynac_la-mpoly-singular.Tpo -c -o libpynac_la-mpoly-singular.lo `test -f 'mpoly-singular.cpp' || echo './'`mpoly-singular.cpp
mv -f .deps/libpynac_la-inifcns_orthopoly.Tpo .deps/libpynac_la-inifcns_orthopoly.Plo
/usr/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -std=c++11 -DHAVE_CONFIG_H -I. -I..  -I/mnt/disk/home/buildslave-sage/slave/sage_git/build/local/include/python2.7 -I/mnt/disk/home/buildslave-sage/slave/sage_git/build/local/include/ -DOM_NDEBUG  -Wall -Wextra -Wshadow -Wnon-virtual-dtor -Wno-unused-parameter -Wno-unknown-pragmas -Wno-parentheses-equality   -O2 -g  -MT libpynac_la-mpoly.lo -MD -MP -MF .deps/libpynac_la-mpoly.Tpo -c -o libpynac_la-mpoly.lo `test -f 'mpoly.cpp' || echo './'`mpoly.cpp
libtool: compile:  g++ -std=c++11 -DHAVE_CONFIG_H -I. -I.. -I/mnt/disk/home/buildslave-sage/slave/sage_git/build/local/include/python2.7 -I/mnt/disk/home/buildslave-sage/slave/sage_git/build/local/include/ -DOM_NDEBUG -Wall -Wextra -Wshadow -Wnon-virtual-dtor -Wno-unused-parameter -Wno-unknown-pragmas -Wno-parentheses-equality -O2 -g -MT libpynac_la-mpoly-singular.lo -MD -MP -MF .deps/libpynac_la-mpoly-singular.Tpo -c mpoly-singular.cpp  -fPIC -DPIC -o .libs/libpynac_la-mpoly-singular.o
libtool: compile:  g++ -std=c++11 -DHAVE_CONFIG_H -I. -I.. -I/mnt/disk/home/buildslave-sage/slave/sage_git/build/local/include/python2.7 -I/mnt/disk/home/buildslave-sage/slave/sage_git/build/local/include/ -DOM_NDEBUG -Wall -Wextra -Wshadow -Wnon-virtual-dtor -Wno-unused-parameter -Wno-unknown-pragmas -Wno-parentheses-equality -O2 -g -MT libpynac_la-mpoly.lo -MD -MP -MF .deps/libpynac_la-mpoly.Tpo -c mpoly.cpp  -fPIC -DPIC -o .libs/libpynac_la-mpoly.o
In file included from /mnt/disk/home/buildslave-sage/slave/sage_git/build/local/include/factory/factory.h:29,
                 from mpoly-singular.cpp:27:
/mnt/disk/home/buildslave-sage/slave/sage_git/build/local/include/omalloc/omalloc.h:14:10: fatal error: omalloc/omConfig.h: No such file or directory
 #include "omalloc/omConfig.h"
          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.

Indeed:

[buildslave-sage@volker build]$ ll local/include/omalloc/
total 12
-rw-r--r--. 1 buildslave-sage buildslave-sage 10010 Aug  7 00:50 omalloc.h

Change History (12)

comment:1 Changed 3 years ago by vbraun

  • Cc jdemeyer added

comment:2 Changed 3 years ago by jdemeyer

  • Cc jpflori added; jdemeyer removed

This whole omalloc business is really confusing to me...

See also https://github.com/Singular/Sources/issues/534

comment:3 Changed 3 years ago by jpflori

IIRC Singular used to install stub headers when omalloc was disabled but that was a long time ago...

comment:4 Changed 3 years ago by jdemeyer

Maybe we should just stop trying to build Singular without omalloc?

comment:5 follow-up: Changed 3 years ago by jpflori

Is there still an xalloc directory used when omalloc is not? The omConfig part is reminiscent of https://trac.sagemath.org/ticket/17254#comment:381

comment:6 in reply to: ↑ 5 Changed 3 years ago by jdemeyer

Replying to jpflori:

Is there still an xalloc directory used when omalloc is not?

Sorry, I don't understand your question.

comment:7 Changed 3 years ago by jdemeyer

In any case, if Singular wanted to make building with xalloc officially supported, they would have made a configure option for it. I don't think that we should be manually copying directories or whatever.

comment:8 Changed 3 years ago by jdemeyer

  • Cc jakobkroeker added

comment:10 Changed 3 years ago by jdemeyer

  • Dependencies set to #24735

comment:11 Changed 3 years ago by jdemeyer

By the way, simply using --disable-omalloc also doesn't work: https://github.com/Singular/Sources/issues/534#issuecomment-411336226

comment:12 Changed 3 years ago by jdemeyer

  • Milestone changed from sage-8.4 to sage-duplicate/invalid/wontfix
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.