unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* Guile 1.4.1 w/ guile-oops 1.0.2
@ 2002-09-06  8:21 Michael Carmack
  2002-09-06 17:08 ` Thien-Thi Nguyen
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Carmack @ 2002-09-06  8:21 UTC (permalink / raw)



Guile-oops/1.0.2 doesn't seem to build against guile/1.4.1, apparently
because the order of the CPP arguments has changed for bin/guile-snarf. 
(Guile-oops/1.0.2 did build successfully against guile/1.4 for me.)

In 1.4.1, 'guile-snarf --help' reports:

    Usage: guile-snarf [-d | -D] [-o OUTFILE] INFILE [CPP-OPTIONS ...]

So, apparently the CPP options must follow the file in guile/1.4.1. But
when building guile-oops/1.0.2, the first thing that gets called is:

guile-snarf -DHAVE_SCM_SIMPLE_FORMAT=1 -DHAVE_SCM_SHARED_ARRAY_ROOT=1 -DSCM_MUTEX_INIT_TWO_ARGS=1  -I. -I.    -g -O2 -I/pkg/guile/1.4.1/.i686-pc-linux-gnu/include -Wall -Wpointer-arith -Wmissing-prototypes goops.c > goops.x \
|| { rm goops.x; false; }
make[1]: *** [goops.x] Error 1

So, having the file (goops.c) follow all the cpp options immediately breaks 
guile-oops/1.0.2 build.

Guile/1.4 must not have cared where the cpp options were specified,
because guile-oops/1.0.2 builds fine when compiling against guile/1.4.

Is guile-oops/1.0.2 not intended to be used with guile/1.4.1?

m.




_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Guile 1.4.1 w/ guile-oops 1.0.2
  2002-09-06  8:21 Guile 1.4.1 w/ guile-oops 1.0.2 Michael Carmack
@ 2002-09-06 17:08 ` Thien-Thi Nguyen
  0 siblings, 0 replies; 2+ messages in thread
From: Thien-Thi Nguyen @ 2002-09-06 17:08 UTC (permalink / raw)
  Cc: bug-guile

   From: Michael Carmack <karmak@karmak.org>
   Date: Fri, 6 Sep 2002 08:21:18 +0000

   Is guile-oops/1.0.2 not intended to be used with guile/1.4.1?

more like guile-snarf invocation changing should be considered a bug,
especially in light of 1.4.x goal of compatibility (mea culpa)!  i've
since reverted the behavior for 1.4.2, but that's not available yet.
1.4.1.84, a snapshot precursor, is available under:

  http://www.glug.org/tmp/2002-09/

if you are building guile-1.4.1 from source, you can replace
guile-snarf.in (note the .in extension) w/ the file appended below.

thi


___________________________________________
#!/bin/sh
# Extract the initialization actions from source files.
#
#  Copyright (C) 1996, 97, 98, 99, 2000, 2001, 2002 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this software; see the file COPYING.  If not, write to
# the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA

# Commentary:

# Usage: guile-snarf --help
# Usage: guile-snarf --version
#
# Usage: guile-snarf [-o OUTFILE] [CPP-ARGS ...]
#
# Process CPP-ARGS using the C pre-processor and some other programs.
# Write output to a file named OUTFILE or to the standard output when no
# OUTFILE has been specified or when OUTFILE is "-".  CPP-ARGS should
# include an input filename.
#
# If there are errors during processing, delete OUTFILE and exit with
# non-zero status.
#
# During snarfing, the pre-processor macro SCM_MAGIC_SNARFER is
# defined.
#
# If env var CPP is set, use its value instead of the C pre-processor
# determined at Guile configure-time: "@CPP@".

# Code:

## support

do_the_snarf ()                         # writes stdout
{
${cpp} -DSCM_MAGIC_SNARFER "$@" > ${temp} && cpp_ok_p=true
sed -e '/^ *SCM__I/!d' -e 's/^ *SCM__I//' -e 's/ *SCM__D.*$//' ${temp}
}

## main

# process command line
if [ x"$1" = x--help ] ; then
    @AWK@ '/^#.Commentary:/,/^#.Code:/' $0 | grep -v Code: \
        | sed -e 1,2d -e 's/^. *//g'
    exit 0
fi
if [ x"$1" = x--version ] ; then
    echo "guile-snarf @VERSION@"
    exit 0
fi
if [ x"$1" = x-o ]
    then outfile=$2 ; shift ; shift
    else outfile="-"
fi

# set vars and handler -- handle CPP override
cpp_ok_p=false
temp="/tmp/snarf.$$"
if [ x"$CPP" = x ] ; then cpp="@CPP@" ; else cpp="$CPP" ; fi

trap "rm -f $temp" 0 1 2 15

if [ ! "$outfile" = "-" ]; then
    do_the_snarf "$@" > $outfile
else
    do_the_snarf "$@"
fi

# zonk outfile if errors occurred
if $cpp_ok_p ; then
    exit 0
else
    [ ! "$outfile" = "-" ] && rm -f $outfile
    exit 1
fi

# guile-snarf ends here


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-06 17:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-06  8:21 Guile 1.4.1 w/ guile-oops 1.0.2 Michael Carmack
2002-09-06 17:08 ` Thien-Thi Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).