2012-02-02 90 views
0

我試圖在64位Ubuntu 10.10中安裝gcc 4.6.2和ppl和cloog。我在製作時遇到以下錯誤。在GCC 4.6.2安裝中的cloog和ppl錯誤(graphite-ppl.c)

make[3]: Entering directory `/home/praveen/gcc-4.6.2/host-x86_64-unknown-linux-gnu/gcc' 
/home/praveen/gcc-4.6.2/host-x86_64-unknown-linux-gnu/prev-gcc/xgcc -B/home/praveen/gcc-4.6.2/host-x86_64-unknown-linux-gnu/prev-gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include  -g -O2 -gtoggle -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -o cc1 c-lang.o c-family/stub-objc.o attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o i386-c.o \ 
     cc1-checksum.o main.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lcloog -lppl_c -lppl -lpwl -lgmpxx -lmpc -lmpfr -lgmp -rdynamic -ldl -L../zlib -lz 
libbackend.a(graphite-ppl.o): In function `ppl_powerset_is_empty': 
graphite-ppl.c:(.text+0xd5d): undefined reference to `ppl_new_PIP_Problem_from_constraints' 
graphite-ppl.c:(.text+0xd66): undefined reference to `ppl_PIP_Problem_is_satisfiable' 
graphite-ppl.c:(.text+0xd71): undefined reference to `ppl_delete_PIP_Problem' 
collect2: ld returned 1 exit status 
make[3]: *** [cc1] Error 1 
make[3]: Leaving directory `/home/praveen/gcc-4.6.2/host-x86_64-unknown-linux-gnu/gcc' 
make[2]: *** [all-stage2-gcc] Error 2 
make[2]: Leaving directory `/home/praveen/gcc-4.6.2' 
make[1]: *** [stage2-bubble] Error 2 
make[1]: Leaving directory `/home/praveen/gcc-4.6.2' 
make: *** [all] Error 2 

有人可以幫我解決這個問題嗎?

回答

0

我之前在我的gentoo安裝中遇到過同樣的問題。該workarround是建立gcc沒有石墨選項,然後用新版本的gcc重建ppl和cloog-ppl庫。只有在這個海灣合作委員會成功建成石墨。

0

我相信問題在於,在鏈接過程中,報告的ppl庫libppl_c.so.4不存在 - 即使庫已經安裝到標準的/ usr/local/lib目錄成功。嘗試重新配置國旗--with-ppl-lib。我還包括標誌--with-ppl-include和相應的cloog標誌(只是爲了預先防止任何可能的與cloog相關的問題),因爲我不想不得不重新編譯以發現我需要的標誌,所以我謹慎地玩,包括所有這些;也許你也需要它們,但可能不需要。雖然你應該能夠使用國旗--with-ppl,那是行不通的。

# I installed ppl and cloog to the standard subdirectories of /usr/local 
# but you can amend the flag inputs as necessary 
tar xjf gcc-x.tar.bz2 
mkdir build && cd build 
../gcc-x/configure --with-ppl-lib=/usr/local/lib \ 
        --with-ppl-include=/usr/local/include \ 
        --with-cloog-lib=/usr/local/lib \ 
        --with-cloog-include=/usr/local/include 

同樣,這個問題也許在於--with-ppl-lib標誌的不存在被設置了一些內部configure變量錯誤,而不是沒有作爲一種通用的連接問題與庫。