This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: libffi on OpenBSD 4.3
- From: "Sebastian Reitenbach" <sebastia at l00-bugdead-prods dot de>
- To: aph at redhat dot com
- Cc: libffi-discuss at sourceware dot org
- Date: Tue, 27 May 2008 15:29:36 +0200
- Subject: Re: libffi on OpenBSD 4.3
- Reply-to: "Sebastian Reitenbach" <sebastia at l00-bugdead-prods dot de>
Andrew Haley <aph@redhat.com> wrote:
> Sebastian Reitenbach wrote:
> > 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?
>
> We really need to see what the failures were. This should be in the log.
>
OK, found the logfile, here is an excerpt of the errors:
Executing on host:
gcc /usr/local/src/libffi-3.0.5/testsuite/libffi.call/return_uc.c -O0 -W -Wall
-I/usr/local/src/libffi-3.0.5/testsuite/../include
-I/usr/local/src/libffi-3.0.5/testsuite/../include
-I/usr/local/src/libffi-3.0.5/testsuite/../include/..
-L/usr/local/src/libffi-3.0.5/testsuite/../.libs -lffi -lm -o ./return_uc.exe
(timeout = 300)
/usr/local/src/libffi-3.0.5/testsuite/libffi.call/return_uc.c: In function
`main':^M
/usr/local/src/libffi-3.0.5/testsuite/libffi.call/return_uc.c:35: warning:
comparison between signed and unsigned^M
output is:
/usr/local/src/libffi-3.0.5/testsuite/libffi.call/return_uc.c: In function
`main':^M
/usr/local/src/libffi-3.0.5/testsuite/libffi.call/return_uc.c:35: warning:
comparison between signed and unsigned^M
FAIL: libffi.call/return_uc.c (test for excess errors)
Excess errors:
/usr/local/src/libffi-3.0.5/testsuite/libffi.call/return_uc.c: In function
`main':
/usr/local/src/libffi-3.0.5/testsuite/libffi.call/return_uc.c:35: warning:
comparison between signed and unsigned
PASS: libffi.call/return_uc.c execution test
...
Running /usr/local/src/libffi-3.0.5/testsuite/libffi.special/special.exp ...
set_ld_library_path_env_vars:
ld_library_path=.::/usr/local/src/libffi-3.0.5/testsuite/../.libs
Executing on host:
gcc /usr/local/src/libffi-3.0.5/testsuite/libffi.special/unwindtest.cc
-shared-libgcc -lstdc++ -O0 -W -Wall
-I/usr/local/src/libffi-3.0.5/testsuite/../include
-I/usr/local/src/libffi-3.0.5/testsuite/../include
-I/usr/local/src/libffi-3.0.5/testsuite/../include/..
-L/usr/local/src/libffi-3.0.5/testsuite/../.libs -lffi -lm -o
./unwindtest.exe
(timeout = 300)
/usr/local/src/libffi-3.0.5/testsuite/libffi.special/unwindtest.cc:11:
error: syntax^M
error before `__attribute__'^M
compiler exited with status 1
output is:
/usr/local/src/libffi-3.0.5/testsuite/libffi.special/unwindtest.cc:11:
error: syntax^M
error before `__attribute__'^M
/usr/local/src/libffi-3.0.5/testsuite/libffi.special/unwindtest.cc:11:
error: syntax
error before `__attribute__'
WARNING: libffi.special/unwindtest.cc compilation failed to produce
executable
Executing on host:
gcc /usr/local/src/libffi-3.0.5/testsuite/libffi.special/unwindtest_ffi_call.cc
-shared-libgcc -lstdc++ -O0 -W -Wall
-I/usr/local/src/libffi-3.0.5/testsuite/../include
-I/usr/local/src/libffi-3.0.5/testsuite/../include
-I/usr/local/src/libffi-3.0.5/testsuite/../include/..
-L/usr/local/src/libffi-3.0.5/testsuite/../.libs -lffi -lm -o
./unwindtest_ffi_call.exe
(timeout = 300)
/usr/local/src/libffi-3.0.5/testsuite/libffi.special/unwindtest_ffi_call.cc:10:
error: syntax^M
error before `__attribute__'^M
compiler exited with status 1
output is:
/usr/local/src/libffi-3.0.5/testsuite/libffi.special/unwindtest_ffi_call.cc:10:
error: syntax^M
error before `__attribute__'^M
FAIL: libffi.special/unwindtest_ffi_call.cc (test for excess errors)
Excess errors:
/usr/local/src/libffi-3.0.5/testsuite/libffi.special/unwindtest_ffi_call.cc:10:
error: syntax
error before `__attribute__'
WARNING: libffi.special/unwindtest_ffi_call.cc compilation failed to produce
executable
Executing on host:
gcc /usr/local/src/libffi-3.0.5/testsuite/libffi.special/unwindtest.cc
-shared-libgcc -lstdc++ -O2 -I/usr/local/src/libffi-3.0.5/testsuite/../include
-I/usr/local/src/libffi-3.0.5/testsuite/../include
-I/usr/local/src/libffi-3.0.5/testsuite/../include/..
-L/usr/local/src/libffi-3.0.5/testsuite/../.libs -lffi -lm -o
./unwindtest.exe
(timeout = 300)
/usr/local/src/libffi-3.0.5/testsuite/libffi.special/unwindtest.cc:11:
error: syntax^M
error before `__attribute__'^M
compiler exited with status 1
output is:
/usr/local/src/libffi-3.0.5/testsuite/libffi.special/unwindtest.cc:11:
error: syntax^M
error before `__attribute__'^M
FAIL: libffi.special/unwindtest.cc (test for excess errors)
Excess errors:
/usr/local/src/libffi-3.0.5/testsuite/libffi.special/unwindtest.cc:11:
error: syntax
error before `__attribute__'
WARNING: libffi.special/unwindtest.cc compilation failed to produce
executable
Executing on host:
gcc /usr/local/src/libffi-3.0.5/testsuite/libffi.special/unwindtest_ffi_call.cc
-shared-libgcc -lstdc++ -O2 -I/usr/local/src/libffi-3.0.5/testsuite/../include
-I/usr/local/src/libffi-3.0.5/testsuite/../include
-I/usr/local/src/libffi-3.0.5/testsuite/../include/..
-L/usr/local/src/libffi-3.0.5/testsuite/../.libs -lffi -lm -o
./unwindtest_ffi_call.exe
(timeout = 300)
/usr/local/src/libffi-3.0.5/testsuite/libffi.special/unwindtest_ffi_call.cc:10:
error: syntax^M
error before `__attribute__'^M
compiler exited with status 1
Sebastian