This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libffi on OpenBSD 4.3


Hi,

I want to use libffi on OpenBSD 4.3 sparc64, to get the gnustep gui stuff 
running. but when running the testsuite, then there are 9 unexpected errors, 
and 15 unsupported tests. exactly the same turns out on i386.
This was done using the sytem compiler:
gcc -v
Reading specs from /usr/lib/gcc-lib/sparc64-unknown-openbsd4.3/3.3.5/specs
Configured with:
Thread model: single
gcc version 3.3.5 (propolice)
on both systems.

I found this thread from February:
http://sourceware.org/ml/libffi-discuss/2008/msg00055.html
Therefore I thought, maybe a gcc issue.
So on the sparc64, I installed gcc 4.2. and compiled libffi again, using 
this compiler.

egcc -v
Using built-in specs.
Target: sparc64-unknown-openbsd4.3
Configured 
with: /usr/ports/lang/gcc/4.2/w-gcc-4.2.20070307/gcc-4.2-20070307/configure
--with-gmp=/usr/local --verbose --program-transform-name=s,^,e, --disable-nls
--disable-checking --with-system-zlib --disable-libmudflap --disable-libgomp
--disable-tls --with-as=/usr/bin/as --with-ld=/usr/bin/ld --with-gnu-ld
--with-gnu-as --enable-languages=c,c++,fortran,objc --enable-cpp --with-gnu-as
--with-gnu-ld --enable-shared --prefix=/usr/local --sysconfdir=/etc
--mandir=/usr/local/man --infodir=/usr/local/info
Thread model: single
gcc version 4.2.0 20070307 (prerelease)

However, I had to move gcc, gpp, g++ in /usr/bin out of the way and link the 
gcc 4.2 binaries there instead because make check did always took the gcc 
3.3.5, also when I specified the environment variables, when issuing make 
check.

howevery, when running make check with gcc 4.2 I get only 8 unexpected 
errors.

I wonder whether the tests break, or I do miss some feature?

See the output of both below:

=======================================================================
gcc-3.3:
Making check in include
Making check in testsuite
make  check-DEJAGNU
Making a new site.exp file...
srcdir=`CDPATH="${ZSH_VERSION+.}:" && cd . && pwd`; export srcdir;  
EXPECT=`if [ -f ../../expectecho expect ; fi`; export EXPECT;  runtest=`if 
[ -f ../../dejagnu/runtest ] ; then  echo ../../dsh -c "$runtest --version" 
> /dev/null 2>&1; then  exit_status=0; l='libffi'; for tool in $l; don :; 
else exit_status=1; fi;  done;  else echo "WARNING: could not find 
\`runtest'" 1>&2; :; fi;
WARNING: Couldn't find the global config file.
WARNING: Couldn't find tool init file
Test Run By rfm on Sun May 25 16:25:19 2008
Native configuration is sparc64-unknown-openbsd4.3

                === libffi tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/local/share/dejagnu/baseboards/unix.exp as board description file 
for target.
Using /usr/local/share/dejagnu/config/unix.exp as generic interface file for 
target.
Using /usr/local/src/libffi-3.0.5/testsuite/config/default.exp as 
tool-and-target-specific inter
Running /usr/local/src/libffi-3.0.5/testsuite/libffi.call/call.exp ...
FAIL: libffi.call/return_uc.c (test for excess errors)
Running /usr/local/src/libffi-3.0.5/testsuite/libffi.special/special.exp ...
FAIL: libffi.special/unwindtest.cc (test for excess errors)
WARNING: libffi.special/unwindtest.cc compilation failed to produce 
executable
FAIL: libffi.special/unwindtest_ffi_call.cc (test for excess errors)
WARNING: libffi.special/unwindtest_ffi_call.cc compilation failed to produce 
executable
FAIL: libffi.special/unwindtest.cc (test for excess errors)
WARNING: libffi.special/unwindtest.cc compilation failed to produce 
executable
FAIL: libffi.special/unwindtest_ffi_call.cc (test for excess errors)
WARNING: libffi.special/unwindtest_ffi_call.cc compilation failed to produce 
executable
FAIL: libffi.special/unwindtest.cc (test for excess errors)
WARNING: libffi.special/unwindtest.cc compilation failed to produce 
executable
FAIL: libffi.special/unwindtest_ffi_call.cc (test for excess errors)
WARNING: libffi.special/unwindtest_ffi_call.cc compilation failed to produce 
executable
FAIL: libffi.special/unwindtest.cc (test for excess errors)
WARNING: libffi.special/unwindtest.cc compilation failed to produce 
executable
FAIL: libffi.special/unwindtest_ffi_call.cc (test for excess errors)
WARNING: libffi.special/unwindtest_ffi_call.cc compilation failed to produce 
executable

                === libffi Summary ===

# of expected passes            1364
# of unexpected failures        9
# of unsupported tests          15
*** Error code 1

Stop in /usr/local/src/libffi-3.0.5/testsuite (line 294 of Makefile).
*** Error code 1

Stop in /usr/local/src/libffi-3.0.5/testsuite (line 348 of Makefile).
*** Error code 1

Stop in /usr/local/src/libffi-3.0.5 (line 1160 of Makefile).
#
# gcc -v
Reading specs from /usr/lib/gcc-lib/sparc64-unknown-openbsd4.3/3.3.5/specs
Configured with:
Thread model: single
gcc version 3.3.5 (propolice)
========================================================================

========================================================================
gcc-4.2:
Making check in include
Making check in testsuite
make  check-DEJAGNU
Making a new site.exp file...
srcdir=`CDPATH="${ZSH_VERSION+.}:" && cd . && pwd`; export srcdir;  
EXPECT=`if [ -f ../../expect/expect ] ; then  echo ../../expect/expect ;  
else echo expect ; fi`; export EXPECT;  runtest=`if 
[ -f ../../dejagnu/runtest ] ; then  echo ../../dejagnu/runtest ;  else echo 
runtest; fi`;  if /bin/sh -c "$runtest --version" > /dev/null 2>&1; then  
exit_status=0; l='libffi'; for tool in $l; do  if $runtest  --tool 
$tool --srcdir $srcdir ;  then :; else exit_status=1; fi;  done;  else 
echo "WARNING: could not find \`runtest'" 1>&2; :; fi;  exit $exit_status
Test Run By rfm on Sun May 25 15:35:21 2008
Native configuration is sparc64-unknown-openbsd4.3

                === libffi tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/local/share/dejagnu/baseboards/unix.exp as board description file 
for target.
Using /usr/local/share/dejagnu/config/unix.exp as generic interface file for 
target.
Using /usr/local/src/libffi-3.0.5/testsuite/config/default.exp as 
tool-and-target-specific interface file.
Running /usr/local/src/libffi-3.0.5/testsuite/libffi.call/call.exp ...
Running /usr/local/src/libffi-3.0.5/testsuite/libffi.special/special.exp ...
FAIL: libffi.special/unwindtest.cc execution test
FAIL: libffi.special/unwindtest_ffi_call.cc execution test
FAIL: libffi.special/unwindtest.cc execution test
FAIL: libffi.special/unwindtest_ffi_call.cc execution test
FAIL: libffi.special/unwindtest.cc execution test
FAIL: libffi.special/unwindtest_ffi_call.cc execution test
FAIL: libffi.special/unwindtest.cc execution test
FAIL: libffi.special/unwindtest_ffi_call.cc execution test

                === libffi Summary ===

# of expected passes            1373
# of unexpected failures        8
# of unsupported tests          15
*** Error code 1

Stop in /usr/local/src/libffi-3.0.5/testsuite (line 294 of Makefile).
*** Error code 1

Stop in /usr/local/src/libffi-3.0.5/testsuite (line 348 of Makefile).
*** Error code 1

Stop in /usr/local/src/libffi-3.0.5 (line 1160 of Makefile).
==========================================================================

Sebastian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]