It looks to me like your spkg-install for giac has custom modifications. From the log **************************************************** Host system: Linux pad 4.9.56 #1-NixOS SMP Thu Oct 12 19:24:22 UTC 2017 x86_64 GNU/Linux **************************************************** C compiler: gcc C compiler version: Using built-in specs. COLLECT_GCC=/nix/store/vd4drvlsc73wcjfyjhgmsc0qidzl93ma-gfortran-6.4.0/bin/gcc COLLECT_LTO_WRAPPER=/nix/store/vd4drvlsc73wcjfyjhgmsc0qidzl93ma-gfortran-6.4.0/libexec/gcc/x86_64-unknown-linux-gnu/6.4.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: Thread model: posix gcc version 6.4.0 (GCC) **************************************************** sed: can't read input_parser.cc: No such file or directory Configuring giac... configure: WARNING: you should use --build, --host, --target
The line that makes me curious is "sed: can't read input_parser.cc: No such file or directory” and you are failing on that file. I cannot find a sed line in spkg-install on github for sage-8.0 (or the current beta) so this is very curious. François > On 20/10/2017, at 06:29, Timo Kaufmann <eisfre...@gmail.com> wrote: > > I'm trying to package sage 8.0 for nixos and I'm encountering a problem I > can't solve: giac fails to build with the error > > ``` > input_parser.cc: In function 'int giac::giac_yyparse(void*)': > input_parser.cc:4486:30: error: too few arguments to function 'int > giac_yylex(giac::gen*, void*)' > yychar = yylex (&yylval); > ^ > In file included from input_parser.yy:46:0: > input_lexer.h:50:12: note: declared here > extern int giac_yylex(YYSTYPE * yylval_param ,void * yyscanner); > ^~~~~~~~~~ > ``` > > The relevant part of the source file: > ``` > /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ > if (yychar == YYEMPTY) > { > YYDPRINTF ((stderr, "Reading a token: ")); > yychar = yylex (&yylval); > } > ``` > > The full log and the relevant source file are attached. Does anybody know > what could cause the problem and how I can fix it? > > -- > 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 > <mailto:sage-devel+unsubscr...@googlegroups.com>. > To post to this group, send email to sage-devel@googlegroups.com > <mailto:sage-devel@googlegroups.com>. > Visit this group at https://groups.google.com/group/sage-devel > <https://groups.google.com/group/sage-devel>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > <input_parser.cc><giac-1.2.3.47.p0.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+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.