[問題] 無法編譯 FileZilla 3
以下的情況在 FileZilla 3.0.2.1/3.0.3/3.0.4 都是相同的
直接說結果,在 make 的時候出現以下錯誤:
g++ -DHAVE_CONFIG_H -I. -I../../src/include -I./../include
-I/usr/local/include -I/usr/include
-I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/local/include/wx-2.8
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXGTK__ -g
-O2 -Wall -g -fexceptions -MT libengine_a-asynchostresolver.o -MD -MP -MF
.deps/libengine_a-asynchostresolver.Tpo -c -o libengine_a-asynchostresolver.o
`test -f 'asynchostresolver.cpp' || echo './'`asynchostresolver.cpp
asynchostresolver.cpp:1: fatal error: had to relocate PCH
compilation terminated.
發生狀況是編譯的時候記憶體被吃光光,系統延遲一會兒之後
被吃掉的記憶體再一次釋放回來,然後緊接著就是出現這個錯誤了。
fatal error: had to relocate PCH
看起來像是編譯器的內部錯誤,這該如何是好? (預定計劃是放棄 XD)
我的系統:
Ubuntu 6.06.1 LTS AMD64
$ uname -a
Linux h45-home 2.6.15-29-amd64-generic #1 SMP PREEMPT Mon Sep 24 17:19:55 UTC
2007 x86_64 GNU/Linux
$ g++ --version
g++ (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
FileZilla Source Code:
http://jaist.dl.sourceforge.net/sourceforge/filezilla/FileZilla_3.0.4_src.tar.bz2
http://sourceforge.net/projects/filezilla/
下面是更詳細的過程,不需要的話可以直接 END:
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared
libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for wx-config... /usr/local/bin/wx-config
checking for wxWidgets version >= 2.8.6... yes (version 2.8.7)
checking for wxWidgets static library... no
checking system type for sftp stub... unix
checking for utmpx.h... yes
checking for sys/select.h... yes
checking for library containing socket... none required
checking for library containing getaddrinfo... none required
checking for library containing in6addr_loopback... none required
checking for getaddrinfo... yes
checking for ptsname... yes
checking for setresuid... yes
checking for strsignal... yes
checking for updwtmpx... yes
checking for gettimeofday... yes
checking for ftime... yes
checking for in6addr_loopback... yes
checking for in6addr_any... yes
checking whether to use windres... no
checking idna.h usability... yes
checking idna.h presence... yes
checking for idna.h... yes
checking for stringprep_check_version in -lidn... yes
checking whether to use BinReloc... yes
checking whether to use precompiled headers... yes
checking for cppunit-config... no
checking for Cppunit - version >= 1.10.2... no
checking for libgnutls-config... /usr/bin/libgnutls-config
checking for libgnutls - version >= 2.0.4... yes
checking for xgettext... /usr/bin/xgettext
checking for msgfmt... /usr/bin/msgfmt
checking for msgmerge... /usr/bin/msgmerge
checking whether msgmerge version >= 0.11.0... yes, 0.14.5
checking available FZ3 message catalogs... ar bg ca_ES cs da_DK de es et_EE
eu fi fr_CA fr_FR gl gr he_IL hu id_ID it_IT ja_JP ka km ko_KR ku lt lv mk
nb_NO ne nl pl_PL pt_BR pt_PT ro_RO ru sk sl sv_SE tr zh_CN zh_TW
checking for wxrc... /usr/local/bin/wxrc
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/engine/Makefile
config.status: creating src/tinyxml/Makefile
config.status: creating src/interface/Makefile
config.status: creating src/interface/resources/Makefile
config.status: creating src/include/Makefile
config.status: creating locales/Makefile
config.status: creating src/interface/resources/16x16/Makefile
config.status: creating src/interface/resources/32x32/Makefile
config.status: creating data/Makefile
config.status: creating src/interface/resources/cyril/Makefile
config.status: creating src/interface/resources/cyril/16x16/Makefile
config.status: creating src/interface/resources/blukis/Makefile
config.status: creating src/putty/Makefile
config.status: creating src/putty/unix/Makefile
config.status: creating src/putty/windows/Makefile
config.status: creating tests/Makefile
config.status: creating src/interface/resources/version.rc
config.status: creating src/interface/resources/MacInfo.plist
config.status: creating src/fzshellext/Makefile
config.status: creating src/fzshellext/version.rc
config.status: creating src/include/config.h
config.status: executing depfiles commands
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.248.127.91
→
01/04 19:17, , 1F
01/04 19:17, 1F
→
01/05 15:11, , 2F
01/05 15:11, 2F
LinuxDev 近期熱門文章
PTT數位生活區 即時熱門文章
27
74