Running /usr/home/kargl/gcc/gcc4x/libgomp/testsuite/libgomp.fortran/fortran.exp ... FAIL: libgomp.fortran/condinc2.f -O (test for excess errors) WARNING: libgomp.fortran/condinc2.f -O compilation failed to produce executable FAIL: libgomp.fortran/condinc4.f90 -O (test for excess errors) WARNING: libgomp.fortran/condinc4.f90 -O compilation failed to produce executable FAIL: libgomp.fortran/omp_cond2.f -O (test for excess errors) WARNING: libgomp.fortran/omp_cond2.f -O compilation failed to produce executable FAIL: libgomp.fortran/omp_cond4.F90 -O (test for excess errors) WARNING: libgomp.fortran/omp_cond4.F90 -O compilation failed to produce executable
=== libgomp Summary === # of expected passes 1637 # of unexpected failures 4 # of unsupported tests 2 % more testsuite/libgomp.log The failures are all of the following form (where PREFIX=${HOME}/gcc). Executing on host: ${PREFIX}/obj/gcc/xgcc -B${PREFIX}/obj/gcc/ ${PREFIX}/gcc4x/libgomp/testsuite/libgomp.fortran/condinc2.f -B${PREFIX}/obj/i386-unknown-freebsd8.0/./libgomp/ -I${PREFIX}/obj/i386-unknown-freebsd8.0/./libgomp -I${PREFIX}/gcc4x/libgomp/testsuite/.. -march=i486 -fmessage-length=0 -fopenmp -O -fno-openmp -B${PREFIX}/obj/i386-unknown-freebsd8.0/./libgomp/../libgfortran/.libs -L${PREFIX}/obj/i386-unknown-freebsd8.0/./libgomp/.libs -lgomp -L${PREFIX}/obj/i386-unknown-freebsd8.0/./libgomp/../libgfortran/.libs -lgfortranbegin -lgfortran -lm -o ./condinc2.exe (timeout = 300) ${PREFIX}/obj/i386-unknown-freebsd8.0/./libgomp/.libs/libgomp.so: undefined reference to `pthread_create' collect2: ld returned 1 exit status compiler exited with status 1 output is: ${PREFIX}/obj/i386-unknown-freebsd8.0/./libgomp/.libs/libgomp.so: undefined reference to `pthread_create' collect2: ld returned 1 exit status FAIL: libgomp.fortran/condinc2.f -O (test for excess errors) Excess errors: ${PREFIX}/obj/i386-unknown-freebsd8.0/./libgomp/.libs/libgomp.so: undefined reference to `pthread_create' These tests are bogus. On FreeBSD, -fopenmp will add the -pthread option to the command line; whereas, -fno-openmp prevents the inclusion of -pthread. Thus, "-fopenmp -O -fno-openmp" does not properly add the required library, i.e., -lpthread. -- Summary: libgomp testsuite failures due to lack of linkind with libpthread Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgomp AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kargl at gcc dot gnu dot org GCC target triplet: i386-unknown-freebsd8.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39399