This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: LTO and libelf (and FreeBSD)
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: kaiw at freebsd dot org, richard dot guenther at gmail dot com, gerald at pfeifer dot com, gcc at gcc dot gnu dot org, jkoshy at freebsd dot org
- Date: Sat, 22 May 2010 13:29:34 -0700
- Subject: Re: LTO and libelf (and FreeBSD)
Guys,
I only read the gcc@ archive, so sorry about breaking the thread.
Testing with gfortran finds
FreeBSD's libelf with no patches.
=== gfortran Summary ===
# of expected passes 34177
# of unexpected failures 40
# of expected failures 33
# of unresolved testcases 37
# of unsupported tests 266
gfortran version 4.6.0 20100522 (experimental) (GCC)
FreeBSD's libelf with Kia's patch
=== gfortran Summary ===
# of expected passes 34204
# of unexpected failures 19
# of expected failures 33
# of unresolved testcases 16
# of unsupported tests 266
gfortran version 4.6.0 20100522 (experimental) (GCC)
No patches. libelf from http://www.mr511.de/software/libelf-0.8.12.tar.gz
=== gfortran Summary ===
# of expected passes 34226
# of unexpected failures 3
# of expected failures 33
# of unsupported tests 266
gfortran version 4.6.0 20100522 (experimental) (GCC)
Richi's lto-elf.c patch with libelf from URL://libelf-0.8.12.tar.gz
=== gfortran Summary ===
# of expected passes 34226
# of unexpected failures 3
# of expected failures 33
# of unsupported tests 266
gfortran version 4.6.0 20100522 (experimental) (GCC)
FreeBSD's libelf with Kia and Richi's patches.
=== gfortran Summary ===
# of expected passes 34204
# of unexpected failures 19
# of expected failures 33
# of unresolved testcases 16
# of unsupported tests 266
/usr/home/kargl/gcc/obj4x/gcc/testsuite/gfortran/../../gfortran version 4.6.0 20100522 (experimental) (GCC)
Three of the failures are common to all tests. There are
FAIL: gfortran.dg/array_constructor_11.f90 -O3 -g (internal compiler error)
FAIL: gfortran.dg/array_constructor_11.f90 -O3 -g (test for excess errors)
FAIL: gfortran.dg/ltrans-7.f90 -O scan-tree-dump-times ltrans "transformed
The 16 remaining failures with FreeBSD's libelf and Kia patch are of
the following form.
Executing on host: /usr/home/kargl/gcc/obj4x/gcc/testsuite/gfortran/../../gfortran -B/usr/home/kargl/gcc/obj4x/gcc/te
stsuite/gfortran/../../ f_lto_20091015-1_0.o f_lto_20091015-1_1.o f_lto_20091015-1_2.o -O0 -fwhopr -w -B/usr/home/kargl/gcc/obj4x/i386-unknown-freebsd9.0/./libgfortran/.libs -L/usr/home/kargl/gcc/obj4x/i386-unknown-freebsd9.0/./libgfortran/.libs -L/usr/home/kargl/gcc/obj4x/i386-unknown-freebsd9.0/./libgfortran/.libs -L/usr/home/kargl/gcc/obj4x/i386-unknown-freebsd9.0/./libiberty -o gfortran-dg-lto-20091015-1-01 (timeout = 300)
lto1: fatal error: elf_update() failed: Layout constraint violation
compilation terminated.
lto-wrapper: /usr/home/kargl/gcc/obj4x/gcc/testsuite/gfortran/../../gfortran returned 1 exit status
collect2: lto-wrapper returned 1 exit status
compiler exited with status 1
output is:
lto1: fatal error: elf_update() failed: Layout constraint violation
compilation terminated.
lto-wrapper: /usr/home/kargl/gcc/obj4x/gcc/testsuite/gfortran/../../gfortran returned 1 exit status
collect2: lto-wrapper returned 1 exit status
FAIL: gfortran.dg/lto/20091015-1 f_lto_20091015-1_0.o-f_lto_20091015-1_2.o link
--
Steve