$gcc --version
$gcc (GCC) 4.4.0 20081213 (experimental)

$echo $CFLAGS
$-pipe -O3 -march=core2 -mfpmath=sse -ftree-vectorize
-ftree-parallelize-loops=2 -pthread -fopenmp

I compiled and installed gmp,mpfr with this cflags, after that, I try to
compile gcc 
trunk and got :

gcc  -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition
-Wc++-compat -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H  -o
cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o
c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o
c-semantics.o c-ppoutput.o c-cppbuiltin.o c-objc-common.o c-dump.o c-pch.o
c-parser.o i386-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o
dummy-checksum.o \
          main.o tree-browser.o libbackend.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a ../libcpp/libcpp.a   ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a -L/gcc-4.4/gmp/lib -L/gcc-4.4/mpfr/lib -lmpfr
-lgmp  
/gcc-4.4/mpfr/lib/libmpfr.so: undefined reference to `GOMP_parallel_end'
/gcc-4.4/mpfr/lib/libmpfr.so: undefined reference to `omp_get_num_threads'
/gcc-4.4/mpfr/lib/libmpfr.so: undefined reference to `GOMP_parallel_start'
/gcc-4.4/mpfr/lib/libmpfr.so: undefined reference to `omp_get_thread_num'

what's wrong ?


-- 
           Summary: use -fopenmp compile gcc 4.4
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: linuxl4 at sohu dot com
 GCC build triplet: X86_64-unknown-linux-gnu
  GCC host triplet: X86_64-unknown-linux-gnu
GCC target triplet: X86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38514

Reply via email to