Thanks for the logs. I gather you have a mixup of C and C++ compilers. Sage cannot be built with "real" gcc, while you have it installed and found by ./configure as the compiler to use, as can be gathered from eclib-20210625.log Namely, eclib picks up "real" gcc/g++ from /usr/local/Cellar/gcc/11.2.0_3/bin - but this should not happen, it is guaranteed to break everything, as all Homebrew packages we are using are built with clang/clang++ One way to make sure this does not happen is to unlink gcc and g++: remove symbolic links /usr/local/bin/gcc and /usr/local/bin/g++
At the terminal, the command which gcc should print /usr/bin/gcc and which g++ should print /usr/bin/g++ these gcc and g++ are actually Apple's Clang compilers, as can be seen from running the command "gcc -v": dima@oucl13243 sage % gcc -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 13.0.0 (clang-1300.0.29.30) Target: x86_64-apple-darwin21.3.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin Once this is fixed, I recommend running make distclean followed by make Please let us know how it goes. We should try to fix our ./configure so that "real" gcc is never picked on macOS. Sorry for this trouble. Best Dima On Sat, Mar 12, 2022 at 10:56 AM Niranjan M <newninj...@gmail.com> wrote: > > Same as above. Attached the new logs > I have built sage 8.x from source before and used it without any issues (if > this info helps) > > On Saturday, 12 March 2022 at 13:40:00 UTC+5:30 dim...@gmail.com wrote: >> >> On Saturday, March 12, 2022 at 2:44:43 AM UTC newni...@gmail.com wrote: >>> >>> Yes I run source .homebrew-build-ev >>> >>> export MAKE="make -j6" >>> export SAGE_MATPLOTLIB_GUI=yes >>> source .homebrew-build-env >>> make configure >>> ./configure >>> make >>> >>> These are commands I ran. The one you suggested also didn't work. >> >> >> we certainly need more info than just "it didn't work". >> >> Please send the latest top-level config.log >> >>> >>> >>> On Friday, 11 March 2022 at 22:29:55 UTC+5:30 dim...@gmail.com wrote: >>>> >>>> On Fri, Mar 11, 2022 at 4:55 PM Niranjan M <newni...@gmail.com> wrote: >>>> > >>>> > I tried reinstalling all the brew packages and xcode cli and it didn't >>>> > help fix the issue. >>>> >>>> Are you forgetting to run >>>> >>>> source .homebrew-build-env >>>> >>>> ahead of running >>>> >>>> ./bootstrap >>>> >>>> and >>>> >>>> ./configure --enable-download-from-upstream-url && make build >>>> >>>> ? >>>> >>>> >>>> > And for the `-L` flag, I tried building the `lcalc` package using the >>>> > sage subshell but when I make it gives a different error `-lpari not >>>> > found` which seems valid because the `-rpath` and the `-L` flags were >>>> > not passed with the path where the actual pari library is present(which >>>> > is in /usr/local/Cellar/pari/2.13.3/lib/). I edited lcalc makefile >>>> > manually and added this pari's path to `-L` and `rpath` it gives the >>>> > error `Undefined symbols for architecture x86_64` which I don't >>>> > understand. >>>> > I am new to C/CPP build systems and in general makefile based systems so >>>> > I tried some time to understand the sage build system, but couldn't find >>>> > relevant places which is causing this error. >>>> > >>>> > PS: if there's any doc or articles used in sage community to get a idea >>>> > of how sage build happens that would be interesting and helpful. >>>> > On Thursday, 3 March 2022 at 01:28:15 UTC+5:30 François Bissey wrote: >>>> >> >>>> >> It looks like several things not going well. The first and most obvious >>>> >> one is that libntl doesn’t seem to be found. Some of the other stuff >>>> >> may be related to gmp. ntl is definitely found by configure but the >>>> >> location of the library is not passed with `-L` to giac and eclib at >>>> >> least. So I think some stuff you are getting from brew (I am assuming >>>> >> it is brew) is not setup properly for sage build. >>>> >> >>>> >> > On 2/03/2022, at 21:23, Niranjan M <newni...@gmail.com> wrote: >>>> >> > >>>> >> > Hi I am trying to build from the develop branch and I am getting this >>>> >> > error for few packages like (giac-1.6.0.47p3, eclib-20210625, >>>> >> > givaro-4.1.1, lcalc-2.0.5) >>>> >> > ld: symbol(s) not found for architecture x86_64 >>>> >> > Thanks for the help. >>>> >> > >>>> >> > -- >>>> >> > 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/0d101b40-47f0-44ac-8a61-6df56e2aaf86n%40googlegroups.com. >>>> >> > <giac-1.6.0.47p3.log><lcalc-2.0.5.log><eclib-20210625.log><givaro-4.1.1.log><config.log> >>>> >> >>>> > -- >>>> > 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/4a5df77a-ed7c-4abd-8653-5e840862d22fn%40googlegroups.com. > > -- > 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/c007e475-9191-4803-b366-4f8b6b1938fbn%40googlegroups.com. -- 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/CAAWYfq2XeeeYEUFMLTeu4yqFs6kUGu1MGAEXW3-a7PEd418Cww%40mail.gmail.com.