On Mon, Mar 11, 2019 at 9:42 AM E. Madison Bray <erik.m.b...@gmail.com> wrote:
>
> On Mon, Mar 11, 2019 at 8:51 AM Dima Pasechnik <dimp...@gmail.com> wrote:
> >
> > Switch to bash (chsh is the command to do it), or just install bash,
> > and, before starting ./configure and make,
> > start bash in terminal explicitly.
>
> The spkg-install script (e.g. under
> local/var/tmp/sage/build/patch-2.7.5/spkg-install) should start with a
> shebang line like
>
> #!/usr/bin/env bash
>
> So that should already use the correct shell unless your `bash` is
> actually something that is not bash-compatible.
> In other words
> though, the user's shell at the time of running the install should't
> matter unless their system is redirecting "bash" to some other shell.

No. On FreeBSD I have to change my default shell to bash, otherwise I
get funny errors
like the one reported here.


>
> It's also strange that it's trying to install patch.  This is 8.6 so
> it should detect your system's patch program unless it's not installed
> or is not GNU patch, though on SUSE I'd think it would be...
>
>
> > On Mon, Mar 11, 2019 at 3:11 AM Ai Bo <boaisp...@gmail.com> wrote:
> > >
> > > I used source code, not binary. Yes, from the tarball.
> > > I tried with "gcc version 7.2.0 (GCC)" and got same error message.
> > > I am actually using csh, not bash.
> > > OS info:
> > > uname -m = x86_64
> > > uname -r = 3.0.101-108.13.1.14249.0.PTF-default
> > > uname -s = Linux
> > >
> > >
> > > I did run configure before running make.
> > > There are some errors in the config.log file though the final line shows 
> > > it passed.
> > > #define HAVE_MEMORY_H 1
> > > #define HAVE_STRINGS_H 1
> > > #define HAVE_INTTYPES_H 1
> > > #define HAVE_STDINT_H 1
> > > #define HAVE_UNISTD_H 1
> > > #define HAVE_LIBM 1
> > > #define HAVE_CXX11 1
> > > #define HAVE_ZMQ /**/
> > >
> > > configure: exit 0
> > >
> > > Some errors in the config.log file:
> > >
> > > Thread model: posix
> > > gcc version 7.2.0 (GCC)
> > > configure:4218: $? = 0
> > > configure:4207: gcc -V >&5
> > > gcc: error: unrecognized command line option '-V'
> > > gcc: fatal error: no input files
> > > compilation terminated.
> > > configure:4218: $? = 1
> > > configure:4207: gcc -qversion >&5
> > > gcc: error: unrecognized command line option '-qversion'; did you mean 
> > > '--version'?
> > > gcc: fatal error: no input files
> > > compilation terminated.
> > >
> > >
> > >
> > > On Sunday, March 10, 2019 at 4:06:43 AM UTC-7, Dima Pasechnik wrote:
> > >>
> > >> It could also be that instead of using the source distribution to
> > >> build sage, you instead try to use a binary tarball.
> > >> You need to get the source tarball here:
> > >> http://www.sagemath.org/download-source.html (or use git and clone
> > >> from
> > >> https://github.com/sagemath/sage
> > >>
> > >> On Sun, Mar 10, 2019 at 9:27 AM Ai Bo <boai...@gmail.com> wrote:
> > >> >
> > >> > Error message:
> > >> > ** I masked the paths.
> > >> >
> > >> > [patch-2.7.5] Target: x86_64-suse-linux
> > >> > [patch-2.7.5] Configured with: ./configure --prefix=/xxxs/gcc/4.7.2 
> > >> > --libdir=/xxx/gcc/4.7.2/lib64 --libexecdir=/xxx/gcc/4.7.2/libexec 
> > >> > --bindir=/xxx/gcc/4.7.2/bin --with-ppl=/xxx/gcc/4.7.2 
> > >> > --enable-cloog-backend=ppl --with-cloog=/xxx/gcc/4.7.2 
> > >> > --with-libelf=/xxx/gcc/4.7.2 --with-mpfr=/xxx/gcc/4.7.2 
> > >> > --with-gmp=/xxx/gcc/4.7.2 --with-mpc=/xxx/gcc/4.7.2 --enable-lto 
> > >> > --enable-languages=c,c++,objc,fortran,java --build=x86_64-suse-linux 
> > >> > --host=x86_64-suse-linux --target=x86_64-suse-linux
> > >> > [patch-2.7.5] Thread model: posix
> > >> > [patch-2.7.5] gcc version 4.7.2 (GCC)
> > >> > [patch-2.7.5] ****************************************************
> > >> > [patch-2.7.5] No record that 'patch' was ever installed; skipping 
> > >> > uninstall
> > >> > [patch-2.7.5] /yyy/Sage/sage-8.6/src/bin/sage-dist-helpers: line 210: 
> > >> > syntax error near unexpected token `"$1"'
> > >> > [patch-2.7.5] /yyy/Sage/sage-8.6/src/bin/sage-dist-helpers: line 210: 
> > >> > `        src+=("$1")'
> > >> > [patch-2.7.5] Error: failed to source sage-dist-helpers
> > >> > [patch-2.7.5] Is /yyy/Sage/sage-8.6 the correct SAGE_ROOT?
> > >> > [patch-2.7.5]
> > >> > [patch-2.7.5] real      0m0.008s
> > >> > [patch-2.7.5] user      0m0.000s
> > >> > [patch-2.7.5] sys       0m0.004s
> > >> > [patch-2.7.5] 
> > >> > ************************************************************************
> > >> > [patch-2.7.5] Error installing package patch-2.7.5
> > >> > [patch-2.7.5] 
> > >> > ************************************************************************
> > >> >
> > >> >
> > >> > Here is part of the config.log file:
> > >> >
> > >> > configure:4207: gcc -V >&5
> > >> > gcc: error: unrecognized command line option '-V'
> > >> > gcc: fatal error: no input files
> > >> > compilation terminated.
> > >> > configure:4218: $? = 1
> > >> > configure:4207: gcc -qversion >&5
> > >> >
> > >> > configure:4983: gcc -E  conftest.c
> > >> > conftest.c:11:10: fatal error: ac_nonexistent.h: No such file or 
> > >> > directory
> > >> >  #include <ac_nonexistent.h>
> > >> >           ^~~~~~~~~~~~~~~~~~
> > >> > compilation terminated.
> > >> >
> > >> > I switched to GCC 7.2, got same error.
> > >> >
> > >> > Please 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 post to this group, send email to sage-...@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.
> >
> > --
> > 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.

-- 
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.

Reply via email to