This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

One type of failure running ld testsuite on cygwin: ld-new: unrecognized option '-B/usr/local/src/gcc-binutils/trunk/objdir-binutils/ld/tmpdir/ld


Windows XP/Pro SP1 cygwin P4 system with these packages:

binutils  2.13.90 20030308
bison	  1.875-1
cygwin    1.3.22-1
dejagnu   1.4.2.x           (cygwin ver. 20021217-2)
gawk	  3.1.2-3
gcc       3.2 20020927 (prerelease)
w32api	  2.3-1

LAST_UPDATED: Tue Jun 17 18:14:59 GMT 2003

Configure:  pentium4-cygwin --prefix=/usr/local/gcc-binutils --enable-shared
--enable-threads=posix

When running the ld test suite under cygwin, I have gotten several FAILs
lately such as this:

Running
/usr/local/src/gcc-binutils/trunk/src/ld/testsuite/ld-checks/checks.exp ...
/usr/local/src/gcc-binutils/trunk/objdir-binutils/ld/../gas/as-new   -o
tmpdir/asm.o
/usr/local/src/gcc-binutils/trunk/src/ld/testsuite/ld-checks/asm.s
/usr/local/src/gcc-binutils/trunk/objdir-binutils/ld/ld-new
-B/usr/local/src/gcc-binutils/trunk/objdir-binutils/ld/tmpdir/ld/
-L/usr/local/gcc-binutils/pentium4-cygwin/lib -L/usr/local/gcc-binutils/lib
-L/usr/lib -L/usr/lib/w32api  -o tmpdir/asm.x --check-sections tmpdir/asm.o
/usr/local/src/gcc-binutils/trunk/objdir-binutils/ld/ld-new: unrecognized
option '-B/usr/local/src/gcc-binutils/trunk/objdir-binutils/ld/tmpdir/ld/'
/usr/local/src/gcc-binutils/trunk/objdir-binutils/ld/ld-new: use the --help
option for usage information
FAIL: check sections 1

The configure, run during build looks like this:

Configuring in ld
loading cache .././config.cache
checking for Cygwin environment... (cached) yes
checking for mingw32 environment... (cached) no
checking host system type... i786-pc-cygwin
checking target system type... i786-pc-cygwin
checking build system type... i786-pc-cygwin
checking for strerror in -lcposix... (cached) no
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... (cached)
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld.exe
checking if the linker
(/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld.exe)
is GNU ld... (cached) yes
checking for
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld.exe
option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) nm
checking whether ln -s works... (cached) yes
checking how to recognise dependant libraries... (cached) file_magic file
format pei*-i386(.*architecture: i386)?
checking for object suffix... (cached) o
checking for executable suffix... (cached) .exe
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
updating cache .././config.cache
loading cache .././config.cache within ltconfig
checking for objdir... .libs
checking for gcc option to produce PIC...  -DDLL_EXPORT -DPIC
checking if gcc PIC flag  -DDLL_EXPORT -DPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
finding the maximum length of command line arguments... (cached) 12289
checking if gcc supports -c -o file.o... (cached) yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking whether the linker
(/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld.exe)
supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Win32 ld.exe
checking command to parse nm output... ok
checking if libtool supports shared libraries... yes
checking if package supports dlls... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
creating libtool
updating cache .././config.cache
loading cache .././config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... (cached) gcc -E
checking for ranlib... (cached) ranlib
checking for ANSI C header files... (cached) yes
checking for working const... (cached) yes
checking for inline... (cached) inline
checking for off_t... (cached) yes
checking for size_t... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) no
checking for argz.h... (cached) no
checking for limits.h... (cached) yes
checking for locale.h... (cached) yes
checking for nl_types.h... (cached) no
checking for malloc.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for values.h... (cached) no
checking for sys/param.h... (cached) yes
checking for getcwd... (cached) yes
checking for munmap... (cached) yes
checking for putenv... (cached) yes
checking for setenv... (cached) yes
checking for setlocale... (cached) yes
checking for strchr... (cached) yes
checking for strcasecmp... (cached) yes
checking for __argz_count... (cached) no
checking for __argz_stringify... (cached) no
checking for __argz_next... (cached) no
checking for LC_MESSAGES... (cached) yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for libintl.h... (cached) yes
checking for gettext in libc... (cached) no
checking for bindtextdomain in -lintl... (cached) yes
checking for gettext in libintl... (cached) no
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for catalogs to be installed...  fr sv tr es da
checking for executable suffix... (cached) .exe
checking for bison... (cached) bison -y
checking for flex... (cached) flex
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sbrk... (cached) yes
checking for realpath... (cached) yes
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking whether strstr must be declared... (cached) no
checking whether free must be declared... (cached) no
checking whether sbrk must be declared... (cached) no
checking whether getenv must be declared... (cached) no
checking whether environ must be declared... (cached) no
checking whether ANSI C string concatenation works... yes
updating cache .././config.cache
creating ./config.status
creating Makefile
creating po/Makefile.in
creating config.h

Any ideas of what is causing the FAIL? Is it due to the -B directive (a gcc
directive, right?)?

Is there anything else I could provide to help nailing this one?

Cheers,

/ChJ



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