Re: [sage-devel] Re: Sage 8.0 Build Error on MacOS, [mpir-3.0.0.p0] Error building MPIR.
On Saturday, November 18, 2017 at 8:42:48 PM UTC, Michael Frey wrote: > > This is still broken ins Sage 8.1.rc2 with the same error. Should I post > a new thread? > please try the branch on https://trac.sagemath.org/ticket/24085 -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Sage 8.0 Build Error on MacOS, [mpir-3.0.0.p0] Error building MPIR.
This is still broken ins Sage 8.1.rc2 with the same error. Should I post a new thread? -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Sage 8.0 Build Error on MacOS, [mpir-3.0.0.p0] Error building MPIR.
The Sage way is to create a patch in build/pkgs/mpir/patches which removes said file(s). You can also untar the tarball in upstream/, remove files, tar it up again, run ./sage --package fix-checksum And then rebuild the package with ./sage -f mpir Please feel free to open a trac ticket on this. On Friday, October 20, 2017 at 7:01:03 PM UTC+1, Andrew wrote: > > What is the recommended way to delete these three files? I have tried > deleting these files from > $SAGE_ROOT/local/var/tmp/sage/build/mpir-3.0.0.p0/src/mpn/x86_64w/skylake/avx > eitehr after a make, and then remaking, or during the build from the > makefile but I never get mpir to build. It would be nice to have a working > version of sage again... > > Andrew > > On Wednesday, 13 September 2017 22:28:29 UTC+2, Robert Jacobson wrote: >> >> I'm having the same issue. To get MPIR to compile I had to remove all >> three of >> >> mpn/x86_64/skylake/avx/addmul_1.asm >> mpn/x86_64/skylake/avx/mul_basecase.asm >> mpn/x86_64/skylake/avx/sqr_basecase.asm >> >> >> Thanks for working on this, Bill. >> >> Best, >> >> Robert >> >> >> On Wednesday, 6 September 2017 21:44:21 UTC-4, Bill Hart wrote: >>> >>> That's right. For now that is the only workaround. We know what the >>> problem is now, but don't have a working patch to fix it. It's the JMPENT >>> macro in mpn/x86_64/x86_64-defs.m4 that doesn't work on 64 bit OSX. >>> >>> Details of the issue can be found here, I believe [1]. >>> >>> Bill. >>> >>> [1] https://gmplib.org/list-archives/gmp-bugs/2012-December/002836.html >>> >>> On Tuesday, 22 August 2017 19:37:50 UTC+2, Alex J Best wrote: As the problem is skylake I assume mpn/x86_64/skylake/avx/addmul_1.asm is the one to patch out. On Monday, August 21, 2017 at 11:51:28 AM UTC-4, Dima Pasechnik wrote: > > > > On Monday, August 21, 2017 at 4:15:29 PM UTC+1, Michael Frey wrote: >> >> What is the best way to do this? The file is extracted from the >> mpir-3.0.0.tar.bz2 every time make is run. >> > > the standard way would be to add the patch removing this file (which > one exactly, there are few files named so?) > build/pkgs/mpir/patches/ > > > >> On Wednesday, August 2, 2017 at 5:41:01 PM UTC-4, Bill Hart wrote: >>> >>> The only workaround I'm currently aware of is to remove the >>> offending addmul_1.asm file. It is to do with our use of jump tables. >>> >>> > > -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Sage 8.0 Build Error on MacOS, [mpir-3.0.0.p0] Error building MPIR.
I'm having the same issue. To get MPIR to compile I had to remove all three of mpn/x86_64/skylake/avx/addmul_1.asm mpn/x86_64/skylake/avx/mul_basecase.asm mpn/x86_64/skylake/avx/sqr_basecase.asm Thanks for working on this, Bill. Best, Robert On Wednesday, 6 September 2017 21:44:21 UTC-4, Bill Hart wrote: > > That's right. For now that is the only workaround. We know what the > problem is now, but don't have a working patch to fix it. It's the JMPENT > macro in mpn/x86_64/x86_64-defs.m4 that doesn't work on 64 bit OSX. > > Details of the issue can be found here, I believe [1]. > > Bill. > > [1] https://gmplib.org/list-archives/gmp-bugs/2012-December/002836.html > > On Tuesday, 22 August 2017 19:37:50 UTC+2, Alex J Best wrote: >> >> As the problem is skylake I assume mpn/x86_64/skylake/avx/addmul_1.asm is >> the one to patch out. >> >> On Monday, August 21, 2017 at 11:51:28 AM UTC-4, Dima Pasechnik wrote: >>> >>> >>> >>> On Monday, August 21, 2017 at 4:15:29 PM UTC+1, Michael Frey wrote: What is the best way to do this? The file is extracted from the mpir-3.0.0.tar.bz2 every time make is run. >>> >>> the standard way would be to add the patch removing this file (which >>> one exactly, there are few files named so?) >>> build/pkgs/mpir/patches/ >>> >>> >>> On Wednesday, August 2, 2017 at 5:41:01 PM UTC-4, Bill Hart wrote: > > The only workaround I'm currently aware of is to remove the offending > addmul_1.asm file. It is to do with our use of jump tables. > > >>> -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Sage 8.0 Build Error on MacOS, [mpir-3.0.0.p0] Error building MPIR.
That's right. For now that is the only workaround. We know what the problem is now, but don't have a working patch to fix it. It's the JMPENT macro in mpn/x86_64/x86_64-defs.m4 that doesn't work on 64 bit OSX. Details of the issue can be found here, I believe [1]. Bill. [1] https://gmplib.org/list-archives/gmp-bugs/2012-December/002836.html On Tuesday, 22 August 2017 19:37:50 UTC+2, Alex J Best wrote: > > As the problem is skylake I assume mpn/x86_64/skylake/avx/addmul_1.asm is > the one to patch out. > > On Monday, August 21, 2017 at 11:51:28 AM UTC-4, Dima Pasechnik wrote: >> >> >> >> On Monday, August 21, 2017 at 4:15:29 PM UTC+1, Michael Frey wrote: >>> >>> What is the best way to do this? The file is extracted from the >>> mpir-3.0.0.tar.bz2 every time make is run. >>> >> >> the standard way would be to add the patch removing this file (which one >> exactly, there are few files named so?) >> build/pkgs/mpir/patches/ >> >> >> >>> On Wednesday, August 2, 2017 at 5:41:01 PM UTC-4, Bill Hart wrote: The only workaround I'm currently aware of is to remove the offending addmul_1.asm file. It is to do with our use of jump tables. >> -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Sage 8.0 Build Error on MacOS, [mpir-3.0.0.p0] Error building MPIR.
As the problem is skylake I assume mpn/x86_64/skylake/avx/addmul_1.asm is the one to patch out. On Monday, August 21, 2017 at 11:51:28 AM UTC-4, Dima Pasechnik wrote: > > > > On Monday, August 21, 2017 at 4:15:29 PM UTC+1, Michael Frey wrote: >> >> What is the best way to do this? The file is extracted from the >> mpir-3.0.0.tar.bz2 every time make is run. >> > > the standard way would be to add the patch removing this file (which one > exactly, there are few files named so?) > build/pkgs/mpir/patches/ > > > >> On Wednesday, August 2, 2017 at 5:41:01 PM UTC-4, Bill Hart wrote: >>> >>> The only workaround I'm currently aware of is to remove the offending >>> addmul_1.asm file. It is to do with our use of jump tables. >>> >>> > -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Sage 8.0 Build Error on MacOS, [mpir-3.0.0.p0] Error building MPIR.
On Monday, August 21, 2017 at 4:15:29 PM UTC+1, Michael Frey wrote: > > What is the best way to do this? The file is extracted from the > mpir-3.0.0.tar.bz2 every time make is run. > the standard way would be to add the patch removing this file (which one exactly, there are few files named so?) build/pkgs/mpir/patches/ > On Wednesday, August 2, 2017 at 5:41:01 PM UTC-4, Bill Hart wrote: >> >> The only workaround I'm currently aware of is to remove the offending >> addmul_1.asm file. It is to do with our use of jump tables. >> >> -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Sage 8.0 Build Error on MacOS, [mpir-3.0.0.p0] Error building MPIR.
What is the best way to do this? The file is extracted from the mpir-3.0.0.tar.bz2 every time make is run. On Wednesday, August 2, 2017 at 5:41:01 PM UTC-4, Bill Hart wrote: > > The only workaround I'm currently aware of is to remove the offending > addmul_1.asm file. It is to do with our use of jump tables. > > >>> -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Sage 8.0 Build Error on MacOS, [mpir-3.0.0.p0] Error building MPIR.
The only workaround I'm currently aware of is to remove the offending addmul_1.asm file. It is to do with our use of jump tables. On Monday, 31 July 2017 19:13:57 UTC+2, Michael Frey wrote: > > Hi François, > > Thank you for your help. > > I tried as you suggested from a clean source. Unfortunately the result is > the same. I have attached the log and script files just to make sure I > made the correct changes.. > > Mike > > On Sunday, July 30, 2017 at 10:05:43 PM UTC-4, François Bissey wrote: >> >> Michael in view of my experiments I want you to try something different. >> Forget about the CFLAGS and the environment variable. >> Instead, can you edit the file build/pkgs/mpir/spkg-install and remove >> the following section >> # In some cases (see SAGE_ROOT/spkg/bin/sage-env), on Darwin, >> # CC might be set to clang, but MPIR doesn't seem to build >> # with clang. >> CLANG=`command -v clang` >> GCC=`command -v gcc` >> if [ -n "$CC" ] && [ "$CC" = "$CLANG" ] && [ -n "$GCC" ] ; then >> export CC="$GCC" >> fi >> >> and try again. >> >> François >> >> > On 31/07/2017, at 13:11, Michael Freywrote: >> > >> > I have attached the log for muir, the command I used was >> "AS_INTEGRATED_ASSEMBLER=1 make -j1" and using the export CFLAGS="-Wa,-q >> $CFLAGS" >> > >> > On Saturday, July 29, 2017 at 8:05:54 PM UTC-4, François Bissey wrote: >> > Can we have a bit more of that log? I would like to see the full >> > command. >> > >> > François >> >> -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Sage 8.0 Build Error on MacOS, [mpir-3.0.0.p0] Error building MPIR.
Michael in view of my experiments I want you to try something different. Forget about the CFLAGS and the environment variable. Instead, can you edit the file build/pkgs/mpir/spkg-install and remove the following section # In some cases (see SAGE_ROOT/spkg/bin/sage-env), on Darwin, # CC might be set to clang, but MPIR doesn't seem to build # with clang. CLANG=`command -v clang` GCC=`command -v gcc` if [ -n "$CC" ] && [ "$CC" = "$CLANG" ] && [ -n "$GCC" ] ; then export CC="$GCC" fi and try again. François > On 31/07/2017, at 13:11, Michael Freywrote: > > I have attached the log for muir, the command I used was > "AS_INTEGRATED_ASSEMBLER=1 make -j1" and using the export CFLAGS="-Wa,-q > $CFLAGS" > > On Saturday, July 29, 2017 at 8:05:54 PM UTC-4, François Bissey wrote: > Can we have a bit more of that log? I would like to see the full > command. > > François > > > -- > 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 post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Sage 8.0 Build Error on MacOS, [mpir-3.0.0.p0] Error building MPIR.
Nevermind I generated it myself and it is more surprising than I expected: configure:5214: /usr/bin/gcc -m64 -O2 -march=corei7-avx -mtune=corei7-avx -g -Wa,-q conftest.c >&5 clang: error: unsupported argument '-q' to option 'Wa,’ which means that we are probably talking about options for gcc when at this stage clang is used. So those strategies fall over. > On 31/07/2017, at 13:18, François Bisseywrote: > > Ok, by curiosity I would like to also see the config.log file generated > for mpir-3.0.0.p0.CFLAGS.log, the one in > /Users/michael/sage-8.0/local/var/tmp/sage/build/mpir-3.0.0.p0/src/config.log > that is. > > François > >> On 31/07/2017, at 13:11, Michael Frey wrote: >> >> I have attached the log for muir, the command I used was >> "AS_INTEGRATED_ASSEMBLER=1 make -j1" and using the export CFLAGS="-Wa,-q >> $CFLAGS" >> >> On Saturday, July 29, 2017 at 8:05:54 PM UTC-4, François Bissey wrote: >> Can we have a bit more of that log? I would like to see the full >> command. >> >> François >> >> >> -- >> 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 post to this group, send email to sage-devel@googlegroups.com. >> Visit this group at https://groups.google.com/group/sage-devel. >> For more options, visit https://groups.google.com/d/optout. >> > -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Sage 8.0 Build Error on MacOS, [mpir-3.0.0.p0] Error building MPIR.
Ok, by curiosity I would like to also see the config.log file generated for mpir-3.0.0.p0.CFLAGS.log, the one in /Users/michael/sage-8.0/local/var/tmp/sage/build/mpir-3.0.0.p0/src/config.log that is. François > On 31/07/2017, at 13:11, Michael Freywrote: > > I have attached the log for muir, the command I used was > "AS_INTEGRATED_ASSEMBLER=1 make -j1" and using the export CFLAGS="-Wa,-q > $CFLAGS" > > On Saturday, July 29, 2017 at 8:05:54 PM UTC-4, François Bissey wrote: > Can we have a bit more of that log? I would like to see the full > command. > > François > > > -- > 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 post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Sage 8.0 Build Error on MacOS, [mpir-3.0.0.p0] Error building MPIR.
Can we have a bit more of that log? I would like to see the full command. François > On 30/07/2017, at 12:04, Michael Freywrote: > > I tried AS_INTEGRATED_ASSEMBLER=1 make without success, I also tried adding > it to my environment and also from the debugging shell. > > I also tried: export CFLAGS="-Wa,-q $CFLAGS" without success. > > The make ends with: > > vscanf.o scanf/.libs/vsscanf.o -L/Users/michael/sage-8.0/local/lib -m64 > -O2 -march=skylake -mtune=skylake -Wl,-rpath > -Wl,/Users/michael/sage-8.0/local/lib -install_name > /Users/michael/sage-8.0/local/lib/libmpir.23.dylib -compatibility_version 24 > -current_version 24.3 -Wl,-single_module > > ld: in section __DATA,__const reloc 0: X86_64_RELOC_SUBTRACTOR must have > r_extern=1 file 'mpn/.libs/addmul_1.o' for architecture x86_64 > > ld: in section __DATA,__const reloc 0: X86_64_RELOC_SUBTRACTOR must have > r_extern=1 file 'mpn/.libs/addmul_1.o' for architecture x86_64 > > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > > make[2]: *** [libgmp.la] Error 1 > > make[2]: *** Waiting for unfinished jobs > > make[2]: *** [libmpir.la] Error 1 > > make[1]: *** [all-recursive] Error 1 > > make: *** [all] Error 2 > > > > > -- > 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 post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Sage 8.0 Build Error on MacOS, [mpir-3.0.0.p0] Error building MPIR.
I tried AS_INTEGRATED_ASSEMBLER=1 make without success, I also tried adding it to my environment and also from the debugging shell. I also tried: export CFLAGS="-Wa,-q $CFLAGS" without success. The make ends with: vscanf.o scanf/.libs/vsscanf.o -L/Users/michael/sage-8.0/local/lib -m64 -O2 -march=skylake -mtune=skylake -Wl,-rpath -Wl,/Users/michael/sage-8.0/local/lib -install_name /Users/michael/sage-8.0/local/lib/libmpir.23.dylib -compatibility_version 24 -current_version 24.3 -Wl,-single_module ld: in section __DATA,__const reloc 0: X86_64_RELOC_SUBTRACTOR must have r_extern=1 file 'mpn/.libs/addmul_1.o' for architecture x86_64 ld: in section __DATA,__const reloc 0: X86_64_RELOC_SUBTRACTOR must have r_extern=1 file 'mpn/.libs/addmul_1.o' for architecture x86_64 clang: *error: *linker command failed with exit code 1 (use -v to see invocation) clang: *error: *linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [libgmp.la] Error 1 make[2]: *** Waiting for unfinished jobs make[2]: *** [libmpir.la] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Sage 8.0 Build Error on MacOS, [mpir-3.0.0.p0] Error building MPIR.
I made https://trac.sagemath.org/ticket/23549 -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Sage 8.0 Build Error on MacOS, [mpir-3.0.0.p0] Error building MPIR.
Can you try building sage with AS_INTEGRATED_ASSEMBLER=1 make On Saturday, July 29, 2017 at 4:53:40 PM UTC+2, Michael Frey wrote: > > I found this thread on the MPIR issues list: > https://github.com/wbhart/mpir/issues/217 > > It appears that the MacOS assembler is old. Is there to configure the > sage build as they suggest? > > -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Sage 8.0 Build Error on MacOS, [mpir-3.0.0.p0] Error building MPIR.
I found this thread on the MPIR issues list: https://github.com/wbhart/mpir/issues/217 It appears that the MacOS assembler is old. Is there to configure the sage build as they suggest? -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.