下面的Make.common文件有问题吗?

编译安装或者制作Deb包
回复
field
帖子: 156
注册时间: 2005-05-31 19:32
送出感谢: 0
接收感谢: 0

下面的Make.common文件有问题吗?

#1

帖子 field » 2006-06-17 14:17

一个软件./configure后生成的Make.common文件部分内容如下:
===============
# the following lines will be replaced by the output
# of ./configure
hosttype = i686-pc-linux-gnu
hostos = linux-gnu

CXX = g++
CC = gcc
LDFLAGS =
DLFLAGS =
LIBS =
FLIBS = -L/usr/lib/gcc/i486-linux-gnu/3.4.6 -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../.. -L/lib/../lib -L/usr/lib/../lib -lfrtbegin -lg2c -lm -lgcc_s
GXX-VERSION = gcc4.0
CXXSHAREDFLAG = -shared
CSHAREDFLAG = -shared
RPATHFLAG = -Wl,-rpath,
====================
问题1:
系统内核做了优化, 变成了 i686-pc-linux-gnu, 这个与gcc库的信息: i486-linux-gnu矛盾吗?
另外在编译之前设置环境变量, 有个PETSC_ARCH被设成了 linux, 而hostos为linux-gnu, 这两个矛盾吗?

下面是编译出现的错误: 不知道是什么原因, 系统内核没有优化前(为i386), 采用gcc 3.4.5成功编译.

shengli@shengli:~/usr/libmesh-0.5.0$ make
Compiling C++ (in debug mode) src/base/dof_map.C...
Compiling C++ (in debug mode) src/base/dof_map_constraints.C...
Compiling C++ (in debug mode) src/base/dof_object.C...
Compiling C++ (in debug mode) src/base/libmesh.C...
Compiling C++ (in debug mode) src/base/node.C...
Compiling C++ (in debug mode) src/base/reference_counted_object.C...
Compiling C++ (in debug mode) src/base/reference_counter.C...
Compiling C++ (in debug mode) src/fe/fe_base.C...
Compiling C++ (in debug mode) src/fe/fe_bernstein.C...
Compiling C++ (in debug mode) src/fe/fe_bernstein_shape_1D.C...
Compiling C++ (in debug mode) src/fe/fe_bernstein_shape_2D.C...
Compiling C++ (in debug mode) src/fe/fe_bernstein_shape_3D.C...
Compiling C++ (in debug mode) src/fe/fe_boundary.C...
Compiling C++ (in debug mode) src/fe/fe.C...
Compiling C++ (in debug mode) src/fe/fe_clough.C...
Compiling C++ (in debug mode) src/fe/fe_clough_shape_1D.C...
Compiling C++ (in debug mode) src/fe/fe_clough_shape_2D.C...
Compiling C++ (in debug mode) src/fe/fe_clough_shape_3D.C...
Compiling C++ (in debug mode) src/fe/fe_compute_data.C...
/home/shengli/usr/libmesh-0.5.0/include/utils/parameters.h: In member function ‘const T& Parameters::get(const std::string&) const’:
/home/shengli/usr/libmesh-0.5.0/include/utils/parameters.h:345: error: no match for ‘operator<<’ in ‘((((((std::cerr << "ERROR: no ") << #‘typeid_expr’ not supported by dump_expr#<expression error>.std::type_info::name()) << " parameter named ") << name) << ":") << std::endl) << * this’
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/ostream.tcc:67: note: candidates are: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>& (*)(std::basic_ostream<_CharT, _Traits>&)) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/ostream.tcc:78: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ios<_CharT, _Traits>& (*)(std::basic_ios<_CharT, _Traits>&)) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/ostream.tcc:90: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/ostream.tcc:125: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/ostream.tcc:159: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/ostream.tcc:102: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/ostream:176: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/ostream:187: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/ostream:191: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/ostream:202: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/ostream.tcc:183: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/ostream.tcc:218: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/ostream.tcc:242: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/ostream:217: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/ostream.tcc:265: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/ostream.tcc:288: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/ostream.tcc:311: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_streambuf<_CharT, _Traits>*) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/ostream:502: note: std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const unsigned char*) [with _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/ostream:497: note: std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const signed char*) [with _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/ostream.tcc:616: note: std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*) [with _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/ostream.tcc:571: note: std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const char*) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/ostream:463: note: std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, unsigned char) [with _Traits = std::char_traits<char>]/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/ostream:458: note: std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, signed char) [with _Traits = std::char_traits<char>]
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/bits/ostream.tcc:509: note: std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char) [with _Traits = std::char_traits<char>]/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/ostream:447: note: std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, char) [with _CharT = char, _Traits = std::char_traits<char>]
make: *** [src/fe/fe_compute_data.i686-pc-linux-gnu.dbg.o] Error 1
guzhuzi
帖子: 1
注册时间: 2007-01-28 14:08
送出感谢: 0
接收感谢: 0

是编译libmesh吧,呵呵

#2

帖子 guzhuzi » 2007-07-26 18:08

是编译libmesh吧,呵呵
am_king
帖子: 1
注册时间: 2009-02-23 10:34
送出感谢: 0
接收感谢: 0

Re: 下面的Make.common文件有问题吗?

#3

帖子 am_king » 2009-05-20 9:20

换gcc版本3系列
回复

回到 “编译或打包”