I noticed a bug in fsa-0.9.4: when an XML file is read in which an arc
has no weight specified then the weight will be uninitialized and may
be a random value.
The behavior occurred on an Intel(R) Xeon(TM) CPU 3.06GHz system,
after compiling with gcc-3.4.4. For example, the arc weight in the
src/Tools/Fsa/examples/closure-1.fsa machine is -1.792753, or
-1.829887, different on every run, instead of 0.
To fix the bug, insert the line
arc_->weight_ = fsa_->semiring()->one();
in src/Fsa/StorageXml.cc, after line 97, so that you have
arc_->output_ = Epsilon;
arc_->weight_ = fsa_->semiring()->one();
--Markus
Hello,
I have been unable to compile the library. I've tried with GCC 3.4.4 and
GCC 4.0.2. I get this error message:
BinaryStream.cc:105: warning: specialization of 'template<class T> bool
Core::BinaryOutputStream::write(const T*, std::streamsize)' in different namespace
BinaryStream.hh:136: warning: from definition of 'template<class T> bool
Core::BinaryOutputStream::write(const T*, std::streamsize)'
BinaryStream.cc: In member function 'bool
Core::BinaryOutputStream::write(const T*, std::streamsize) [with T = bool]':
BinaryStream.cc:105: internal compiler error: in comptypes, at cp/typeck.c:942
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
If I comment out those errors, I still get this:
Parameter.cc:174: warning: extra ';'
Parameter.cc:179: error: expected unqualified-id before ';' token
Parameter.cc:180: error: expected unqualified-id before ';' token
Parameter.cc:181: error: expected unqualified-id before ';' token
Parameter.cc:182: error: expected unqualified-id before ';' token
Parameter.cc:183: error: expected unqualified-id before ';' token
Parameter.cc:184: error: expected unqualified-id before ';' token
Parameter.cc:185: error: expected unqualified-id before ';' token
Parameter.cc:187: error: expected unqualified-id before ';' token
Parameter.cc:188: error: expected unqualified-id before ';' token
Parameter.cc:189: error: expected unqualified-id before ';' token
>From my understanding of the internal compiler error in the first error,
is that it has so to do with the type checker failing when it tries to
compare two types. It seems that both these errors have to do with
template specilization.
Any suggestions on what I can do to compile the code? Should I downgrade
GCC to 3.2 (which is what you quote in the README)?
-krish
--
Krishna M. Roskin
Center for Biomolecular Science and Engineering, UC Santa Cruz
mailto:krish@soe.ucsc.edu
http://www.soe.ucsc.edu/~krish/
Hi!
I'm proud to announce version 0.9.3 of the RWTH FSA toolkit. It's a
maintainance release this time that fixes 2 small compilation problems:
* changed local handler in Core/Assertions from private
to public, caused problems during compilation for
Georg Stemmer <stemmer(a)itc.it> on gcc version 3.2.2
20030222 (Red Hat Linux 3.2.2-5))
* fixed a small 64-bit linux compilation bug in
Fsa/Semiring.cc
I also apologize that the announcement of version 0.9.2 over a month ago
did not go to both mailing lists. All users that experienced compilation
problems due to Common C++ are strongly encouraged to try either version
0.9.2 or 0.9.3 as we removed the dependency on Common C++ from the package.
As usual, the package can be obtained from the software page at I6,
RWTH Aachen:
http://www-i6.informatik.rwth-aachen.de/web/Software/index.html
Cheers,
Stephan Kanthak
Dear,
First of all, I would like to say congratulation for
the new version of our FSA toolkit.
I have tried to compile the new version in my computer
but it seems not successful. As a very beginner of
Linux, I could not fix it myseft. Please help me to
solve the problem. Thanks in advance.
Bellow is the message appeared on the screen.
-------------------------------------------------------
********************************************************************************
Project: The RWTH FSA Toolkit
********************************************************************************
Build host: glenscotia
Build date: Mon Jul 25 16:19:59 CEST 2005
Build directory: /users/owen/Softs/fsa-0.9.2
Processor: intel
Operating system: linux
Version: - standard
Profiling: none
Compiler: gcc / g++
Preprocessor flags: -DSTANDARD -DBUILD=""
-DPROC_intel -DOS_linux -DARCH_linux_intel
-D__BASE_DIR__="/users/owen/Softs/fsa-0.9.2"
-D_GNU_SOURCE -DTIMESTAMP -I. -I./src
-I/usr/include/libxml2
C compiler flags: -pipe -funsigned-char
-fno-exceptions -pedantic -Wall -Wno-long-long
-march=i686 -ffast-math -O2 -std=c99
C++ compiler flags: -pipe -funsigned-char
-fno-exceptions -pedantic -Wall -Wno-long-long
-march=i686 -ffast-math -O2 -fpermissive
-std=c++98
Linker: g++
Linker flags: -L/usr/lib -lxml2 -lz
-lpthread -lm -lz -lm -rdynamic
Installation directories:
Base:
Binaries:
Includes:
Libraries:
********************************************************************************
make -C src build
which: no ccache in (I skipped some lines ....)
make[1]: Entering directory
`/users/owen/Softs/fsa-0.9.2/src'
make -C Core libSprintCore.linux-intel-standard.a
which: no ccache in (I skipped some lines ....)
make[2]: Entering directory
`/owen/Softs/fsa-0.9.2/src/Core'
compiling BinaryStream.cc
BinaryStream.cc:20:2: warning: #warning is a GCC
extension
BinaryStream.cc:20:2: warning: #warning "CodeSmell:
wrapper and file stream roles should be separated:
BinaryWriter/Reader vs. BinaryStream"
BinaryStream.cc:105: warning: specialization of
`template<class T> bool
Core::BinaryOutputStream::write(const T*,
std::streamsize)' in different namespace
BinaryStream.hh:136: warning: from definition of
`template<class T> bool
Core::BinaryOutputStream::write(const T*,
std::streamsize)'
BinaryStream.cc: In member function `bool
Core::BinaryOutputStream::write(const T*,
std::streamsize) [with T = bool]':
BinaryStream.cc:106: internal compiler error: in
comptypes, at cp/typeck.c:932
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for
instructions.
Preprocessed source stored into /tmp/ccNsG2mX.out
file, please attach this to your bugreport.
make[2]: ***
[.build/linux-intel-standard/BinaryStream.o] Error 1
make[2]: Leaving directory
`/users/owen/Softs/fsa-0.9.2/src/Core'
make[1]: *** [Core] Error 2
make[1]: Leaving directory
`/users/owen/Softs/fsa-0.9.2/src'
make: *** [build] Error 2
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
Dear all,
I compiled the FSA successully with Fedora Core 4.0,
with some modifications from the source codes.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
------------------------------------------------------------
Stephan wrote
your problems are due to Common C++. It may be that
you didn't have it
installed. If your problem has time for 1 week then
please wait until
I've released the new version 0.9.2 which does not
need Common C++
anymore.
------------------------------------------------------------
Stephan,
Could you tell me when the new version of our FST
software is available ?
I am waiting for it for more than 2 weeks .
Best regards,
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
HI,
I tried to compile fsa on my computer, which use
fedora kernel and use g++ (GCC) 3.4.3 20050227 but
unsuccessful. Could you please help me ?
Below is the error appeared when I tried to compile:
-------------------------------------------------------
Rules.make:99: warning: overriding commands for target
`install'
Makefile:43: warning: ignoring old commands for target
`install'
make: ccgnu2-config: Command not found
make: ccgnu2-config: Command not found
********************************************************************************
Project: The RWTH FSA Toolkit
********************************************************************************
Build host: local
Build date: Wed Jun 29 16:37:47 CEST 2005
Build directory: /users/owentn/fsa-0.9.1
Processor: intel
Operating system: linux
Version: - standard
Profiling: none
Compiler: gcc / g++
Preprocessor flags: -DSTANDARD -DBUILD=""
-DPROC_intel -DOS_linux -DARCH_linux_intel
-D__BASE_DIR__="/users/owentn/fsa-0.9.1" -D_GNU_SOURCE
-DTIMESTAMP -I. -I./src -I/usr/include/libxml2 -I
C compiler flags: -pipe -funsigned-char
-fno-exceptions -pedantic -Wall -Wno-long-long
-march=i686 -ffast-ma th -O2 -std=c99
C++ compiler flags: -pipe -funsigned-char
-fno-exceptions -pedantic -Wall -Wno-long-long
-march=i686 -ffast-ma th -O2 -fpermissive
-std=c++98
Linker: g++
Linker flags: -L/usr/lib -lxml2 -lz
-lpthread -lm -lz -lm -rdynamic
Installation directories:
Base:
Binaries:
Includes:
Libraries:
********************************************************************************
make -C src build
which: no ccache in
make[1]: Entering directory
`/users/owentn/fsa-0.9.1/src'
../Rules.make:99: warning: overriding commands for
target `install'
Makefile:30: warning: ignoring old commands for target
`install'
make -C Core libSprintCore.linux-intel-standard.a
which: no ccache in
make[2]: ccgnu2-config: Command not found
make[2]: Entering directory
`/users/owentn/fsa-0.9.1/src/Core'
compiling Application.cc
In file included from ../../src/Core/TextStream.hh:24,
from XmlStream.hh:26,
from Configuration.hh:21,
from Configurable.hh:20,
from Component.hh:21,
from Application.hh:22,
from Application.cc:21:
../../src/Core/Types.hh:79: error: an explicit
specialization must be preceded by 'template <>'
In file included from Channel.hh:21,
from Component.hh:22,
from Application.hh:22,
from Application.cc:21:
../../src/Core/Hash.hh:19:30: ext/stl_hash_fun.h: No
such file or directory
In file included from Channel.hh:23,
from Component.hh:22,
from Application.hh:22,
from Application.cc:21:
../../src/Core/Thread.hh:18:25: cc++/thread.h: No such
file or directory
In file included from Channel.hh:23,
from Component.hh:22,
from Application.hh:22,
from Application.cc:21:
../../src/Core/Thread.hh:23: error: `ost' has not been
declared
../../src/Core/Thread.hh:24: error: invalid use of
undefined type `class Core::Mutex'
../../src/Core/Thread.hh:22: error: forward
declaration of `class Core::Mutex'
../../src/Core/Thread.hh: In constructor
`Core::Mutex::Mutex()':
../../src/Core/Thread.hh:26: error: `ost' has not been
declared
../../src/Core/Thread.hh:26: error: type `class
Core::Mutex' is not a direct base of `Core::Mutex'
../../src/Core/Thread.hh: In member function `void
Core::Mutex::lock()':
../../src/Core/Thread.hh:27: error: `enterMutex'
undeclared (first use this function)
../../src/Core/Thread.hh:27: error: (Each undeclared
identifier is reported only once for each function it
appears i n.)
../../src/Core/Thread.hh: In member function `void
Core::Mutex::release()':
../../src/Core/Thread.hh:28: error: `leaveMutex'
undeclared (first use this function)
../../src/Core/Thread.hh: At global scope:
../../src/Core/Thread.hh:31: error: `ost' has not been
declared
../../src/Core/Thread.hh:31: error: invalid use of
undefined type `class Core::MutexLock'
../../src/Core/Thread.hh:31: error: forward
declaration of `class Core::MutexLock'
../../src/Core/Thread.hh:33: error: `ost' has not been
declared
../../src/Core/Thread.hh: In constructor
`Core::MutexLock::MutexLock(Core::Mutex&)':
../../src/Core/Thread.hh:33: error: `ost' has not been
declared
../../src/Core/Thread.hh:33: error: type `class
Core::MutexLock' is not a direct base of
`Core::MutexLock'
../../src/Core/Thread.hh: At global scope:
../../src/Core/Thread.hh:36: error: `ost' has not been
declared
../../src/Core/Thread.hh:36: error: invalid use of
undefined type `class Core::Conditional'
../../src/Core/Thread.hh:36: error: forward
declaration of `class Core::Conditional'
../../src/Core/Thread.hh:48: error: `ost' has not been
declared
../../src/Core/Thread.hh:48: error: invalid use of
undefined type `class Core::Thread'
../../src/Core/Thread.hh:48: error: forward
declaration of `class Core::Thread'
Application.cc:220:2: warning: #warning is a GCC
extension
Application.cc:220:2: warning: #warning "This is a
workaround for possible bug in LIBC 2.3.2. We are
waiting for an answer on our bug report."
make[2]: ***
[.build/linux-intel-standard/Application.o] Error 1
make[2]: Leaving directory
`/users/owentn/fsa-0.9.1/src/Core'
make[1]: *** [Core] Error 2
make[1]: Leaving directory
`/users/owentn/fsa-0.9.1/src'
make: *** [build] Error 2
____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com
Fsa seemed to have no way of constructing the cross product of two
acceptors, so I wrote a function that would do it. I think I must
have handled the alphabets wrong, because when I concatenate such a
transducer with others, I get arcs with 2147483647 for the label.
Here's what I did:
crossProduct is a function that maps the output labels of the first
transducer and the input labels of the second transducer to epsilon,
and then composes them.
To map input labels and output labels to epsilon, I have two different
classes extending ModifyAutomaton:
EpsilonInputAutomaton replaces all of the arc input labels with
Epsilon, and returns an empty Alphabet from getInputAlphabet.
EpsilonOutputAutomaton does likewise with the outputs.
Is there something obviously wrong with this that should lead to
InvalidLabelId (which I think 2147483647 corresponds to) when I
concatenate a transducer produced using my crossProduct function?
Thanks,
Roy