|
Namazu for hns による簡易全文検索 詳しくは 詳細指定/ヘルプを参照して下さい |
||||||||||||||||||||||||||||||||||||||||||||
2009年11月08日(日) 旧暦 [n年日記] [更新:"2009/12/17 00:18:56"]#1 [NetBSD][pkgsrc] Error: You need to have libxerces-c installed.
FERMAT SystemC Parser:
genova@makoto 07:59:45/091108(..local-src/sxml2)% ./autogen.sh ... checking for main in -lxerces-c... no Error: You need to have libxerces-c installed.上のように言われた時に、次のようにするのは有効 genova@makoto 08:01:59/091108(..local-src/sxml2)% \ env LIBS=-L/usr/pkg/lib ./autogen.sh @ xercesc/parsers/SAXParser.hpp: No such file or directory:
--- sxml2/src/Makefile.am.orig 2005-04-01 02:33:20.000000000 +0900 +++ sxml2/src/Makefile.am 2009-11-08 08:18:12.000000000 +0900 @@ -5,7 +5,8 @@ ## Please disable it in the Anjuta project configuration INCLUDES =\ - -I../include + -I../include \ + -I/usr/pkg/include AM_CXXFLAGS =\ -Wall\ @ Shared object "libxerces-c.so.28" not found:genova@makoto 08:21:02/091108(..sxml2/src)% ./systemcxml Shared object "libxerces-c.so.28" not foundと言われた時に、次のようにするのは有効 genova@makoto 08:21:24/091108(..sxml2/src)% env LD_LIBRARY_PATH=/usr/pkg/lib ./systemcxml @ The primary document entity could not be opened:
次のようになるのを回避する方法は不明
genova@makoto 08:21:24/091108(..sxml2/src)% env LD_LIBRARY_PATH=/usr/pkg/lib ./systemcxml SystemXML - v1.0 2005-04-11 Reading raw SystemC XML file "fir_flat_cpp.xml" Raw Parsing 1st pass: Fatal Error: An exception occurred! Type:RuntimeException, Message: The primary document entity could not be opened. Id=/export/local-src/sxml2/src/fir_flat_cpp.xml sc_output.xml at line: 0 Modules found. Raw parsing second pass: Fatal Error: An exception occurred! Type:RuntimeException, Message: The primary document entity could not be opened. Id=/export/local-src/sxml2/src/fir_flat_cpp.xml sc_output.xml at line: 0 Processed file written Reading architectural information Fatal Error: Invalid document structure at line: 1 All information read zsh: segmentation fault (core dumped) env LD_LIBRARY_PATH=/usr/pkg/lib ./systemcxml genova@makoto 08:21:30/091108(..sxml2/src)%上で言っている譜はあります (we have the file listed above) genova@makoto 08:41:18/091108(/export/local-src)% ls -l sxml2/src/fir_flat_cpp.xml -rw-r--r-- 1 makoto wheel 148478 Mar 2 2005 sxml2/src/fir_flat_cpp.xml genova@makoto 08:41:46/091108(/export/local-src)%次のようにしたら動きました (Now it works with following command) genova@makoto 08:45:12/091108(..local-src/sxml2)% \ ? env LD_LIBRARY_PATH=/usr/pkg/lib \ ? src/systemcxml --dtd src/systemc.dtd src/fir_flat_cpp.xmlhelp is available genova@makoto 08:45:12/091108(..local-src/sxml2)% \ ? env LD_LIBRARY_PATH=/usr/pkg/lib \ ? src/systemcxml --help @ INSTALL を見て:240 env LDFLAGS=-L/usr/pkg/lib ./configure 241 env LDFLAGS=-L/usr/pkg/lib gmake 242 sudo env LDFLAGS=-L/usr/pkg/lib gmake install genova@makoto 09:46:03/091108(..local-src/sxml2)% find /usr/local -cmin -10 -type f /usr/local/bin/systemcxml /usr/local/include/systemcxml/doxygenparser.h /usr/local/include/systemcxml/inoutport.h /usr/local/include/systemcxml/inport.h /usr/local/include/systemcxml/liststructure.h /usr/local/include/systemcxml/module.h /usr/local/include/systemcxml/outport.h /usr/local/include/systemcxml/port.h /usr/local/include/systemcxml/process.h /usr/local/include/systemcxml/sc_process.h /usr/local/include/systemcxml/scparser.h /usr/local/include/systemcxml/sensitivity.h /usr/local/include/systemcxml/toplevel.h /usr/local/include/systemcxml/xsystemc.h /usr/local/include/systemcxml/ref_signal.h /usr/local/include/systemcxml/Reflection_Service.h /usr/local/include/systemcxml/moduleinstance.h /usr/local/include/systemcxml/connection.h /usr/local/include/systemcxml/objectregistry.h /usr/local/include/systemcxml/graphout.h /usr/local/include/systemcxml/signalout.h /usr/local/doc/systemcxml/README /usr/local/doc/systemcxml/COPYING /usr/local/doc/systemcxml/AUTHORS /usr/local/doc/systemcxml/ChangeLog /usr/local/doc/systemcxml/INSTALL /usr/local/doc/systemcxml/NEWS /usr/local/doc/systemcxml/TODO genova@makoto 09:46:04/091108(..local-src/sxml2)% his genova@makoto 09:46:47/091108(..local-src/sxml2)% which systemcxml /usr/local/bin/systemcxml genova@makoto 09:47:35/091108(..local-src/sxml2)% systemcxml src/fir_flat_cpp.xml Shared object "libxerces-c.so.28" not foundWith following command, 293 sudo env LIBS='-L/usr/pkg/lib' LD_RUN_PATH=/usr/pkg/lib gmake clean 294 sudo env LIBS='-L/usr/pkg/lib' LD_RUN_PATH=/usr/pkg/lib gmake 295 sudo env LIBS='-L/usr/pkg/lib' LD_RUN_PATH=/usr/pkg/lib gmake installNow it executes fine: systemcxml --dtd src/systemc.dtd src/fir_flat_cpp.xml ( つっこみ )
#2 [EDA] SpecC Reference Compiler (scrc)
Ubuntu 8.10 の上での作業:
570 ln -s /home/makoto/distfiles/scrc-2.1-1.src.rpm . 571 cd ../SRPMS/ 573 rpm -ihv scrc-2.1-1.src.rpm 579 cd .. 584 vi SPECS/scrc.spec ( add # in front of Copyright, and add the line License: UCB ) 591 rpmbuild --bb SPECS/scrc.spec g++ -DX86 -DLINUX -O2 -DNDEBUG \ -DHAVE_LLONG -s -c -Wall -I/usr/src/rpm/BUILD/scrc-2.1/inc \ Alignment.cc Alignment.cc:262: error: extra qualification ‘BufferStruct::’ on member ‘BufferStruct’ Alignment.cc:269: error: extra qualification ‘BufferStruct2::’ on member ‘BufferStruct2’ make[2]: *** [Alignment.o] エラー 1 make[2]: ディレクトリ `/usr/src/rpm/BUILD/scrc-2.1/src/IntRep' から出ます make[1]: *** [all] エラー 2 make[1]: ディレクトリ `/usr/src/rpm/BUILD/scrc-2.1/src' から出ます make: *** [all] エラー 2 エラー: /var/tmp/rpm-tmp.87604 の不正な終了ステータス (%build) RPM ビルドエラー: /var/tmp/rpm-tmp.87604 の不正な終了ステータス (%build) root@ubuntu:/usr/src/rpm#The patches for above problem: ubuntu@root 11:05:44/091108(..src/rpm)% zcat SOURCES/scrc-2.1-extra-qual.patch.gz --- BUILD/scrc-2.1/src/IntRep/Alignment.cc.orig 2006-09-29 01:20:45.000000000 +0900 +++ scrc-2.1/src/IntRep/Alignment.cc 2009-11-08 10:50:37.000000000 +0900 @@ -259,14 +259,14 @@ { char x1; _specc::buffered<char> x2; -BufferStruct::BufferStruct() : x2(event(&clk)) { } +BufferStruct() : x2(event(&clk)) { } }; struct BufferStruct2 { _specc::buffered<char> x2; char x1; -BufferStruct2::BufferStruct2() : x2(event(&clk)) { } +BufferStruct2() : x2(event(&clk)) { } }; int x; @ error: conflicting declaration unsigned int PRS_lineno:In file included from PRS_Scanner.l:92: PRS_Scanner.h:128: error: conflicting declaration unsigned int PRS_lineno <stdout>:362: error: PRS_lineno has a previous declaration as int PRS_lineno PRS_Scanner.l:198: error: conflicting declaration unsigned int PRS_lineno <stdout>:362: error: PRS_lineno has a previous declaration as int PRS_lineno PRS_Scanner.l: In function int PRS_lex(): PRS_Scanner.l:292: error: yy_current_buffer was not declared in this scope make[2]: *** [PRS_Scanner.o] 1 make[2]: `/usr/src/rpm/BUILD/scrc-2.1/src/Parser' make[1]: *** [all] 2 make[1]: `/usr/src/rpm/BUILD/scrc-2.1/src'The problem is at following line, but this is generated file: ./BUILD/scrc-2.1/src/Parser/PRS_Scanner.cc:362:int PRS_lineno = 1; ( つっこみ )
#3 [comp] (Ubuntu) ssh の設定を探してしまった
いくら探してもないと思ったら、
別途入れる必要がある
ということだった。情報有難し。
( つっこみ )
|
最近の日記 2024年05月06日 ・py-setuptools (python 3.11.9) ・make release took 1 hours and 10 min ・qemu invocation for 10.99.10 2024年05月05日 ・Windows 10 version ・serial connection ・bc bench 2024年05月04日 ・Trial on 10.99.10 ・another version (later trial) to succeed 2024年04月29日 ・dkim 2024年03月10日 ・停電 (瞬電) | ||