Thanks for taking a look at it. Yes, the spkg-install is modified: ``` --- old/build/pkgs/giac/spkg-install 2017-07-21 14:10:00.000000000 -0500 +++ new/build/pkgs/giac/spkg-install 2017-10-15 15:55:55.321237645 -0500 @@ -4,6 +4,8 @@ ## Giac ########################################### +find . -type f -exec sed -e 's@/bin/cp@cp@g' -i '{}' ';' +sed -e 's@yylex (&yylval)@yylex (\&yyval, scanner)@gp' 'input_parser.cc' if [ "$SAGE_LOCAL" = "" ]; then echo "SAGE_LOCAL undefined ... exiting"; ```
The first line is nixos specific (cp is not in /bin). The second was my attempt to fix it, but I got the path of `input_parcer.cc` wrong (which is why sed couldn't find the file). I'm currently running a build with the path corrected. Timo Am Donnerstag, 19. Oktober 2017 15:11:23 UTC-5 schrieb François Bissey: > > 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 <eisf...@gmail.com <javascript:>> > 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+...@googlegroups.com <javascript:>. > To post to this group, send email to sage-...@googlegroups.com > <javascript:>. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit 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.