This is the mail archive of the cygwin mailing list for the Cygwin 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]

Re: gmp and libiconv as mingw variant libraries under cygwin?

Thanks so far.

Right now, I do this:

$ CC='gcc -mno-cygwin' CXX='g++ -mno-cygwin'
../binutils-060628/configure --build=i686-pc-cygwin
--host=i686-pc-mingw32 --prefix=/opt/mingw

But I get stuck like this:

gcc -mno-cygwin -c -DHAVE_CONFIG_H -g -O2 -I.
-I../../binutils-060628/libiberty/../include  -W -Wall -pedantic
-Wwrite-strings -Wstrict-prototypes
../../binutils-060628/libiberty/strncmp.c -o strncmp.o
rm -f ./libiberty.a pic/./libiberty.a
i686-pc-mingw32-ar rc ./libiberty.a \
 ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./alloca.o ./argv.o
./choose-temp.o ./concat.o ./cp-demint.o ./dyn-string.o ./fdmatch.o
./fibheap.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o
./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o
./lbasename.o ./lrealpath.o ./make-relative-prefix.o
./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o
./physmem.o ./pex-common.o ./pex-one.o ./pex-win32.o ./safe-ctype.o
./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o
./ternary.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o
./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o  ./asprintf.o
./basename.o ./bcmp.o ./bcopy.o ./bzero.o ./ffs.o ./index.o ./insque.o
./mempcpy.o ./mkstemps.o ./random.o ./rindex.o ./setenv.o
./sigsetmask.o ./stpcpy.o ./stpncpy.o ./strndup.o ./strverscmp.o
./vasprintf.o ./waitpid.o ./vfork.o ./strncmp.o
/bin/sh: i686-pc-mingw32-ar: command not found
make[2]: *** [libiberty.a] Error 127
make[2]: Leaving directory
make[1]: *** [all-libiberty] Error 2
make[1]: Leaving directory `/usr/local/src/trunk/objdir-binutils.mingw'
make: *** [all] Error 2

I suppose it's safe for me to temporarily use ar (which is cygwin's
/usr/bin/ar) but if you're of an other other opinion, pls let me know.

however, after that problem, I get to a more tricky one:

/bin/sh ./libtool --mode=link gcc -mno-cygwin -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2   -o
-rpath /opt/mingw/lib -release 060628  archive.lo archures.lo bfd.lo
bfdio.lo bfdwin.lo cache.lo coffgen.lo corefile.lo format.lo init.lo
libbfd.lo opncls.lo reloc.lo section.lo syms.lo targets.lo hash.lo
linker.lo srec.lo binary.lo tekhex.lo ihex.lo stabs.lo stab-syms.lo
merge.lo dwarf2.lo simple.lo archive64.lo `cat ofiles`
cygpath: can't convert empty path
mkdir .libs
libtool: link: warning: undefined symbols not allowed in i686-pc-mingw32 shared
lib /OUT:.libs/libbfd.lib  archive.o archures.o bfd.o bfdio.o bfdwin.o
cache.o coffgen.o corefile.o format.o init.o libbfd.o opncls.o reloc.o
section.o syms.o targets.o hash.o linker.o srec.o binary.o tekhex.o
ihex.o stabs.o stab-syms.o merge.o dwarf2.o simple.o archive64.o
pe-i386.o peigen.o cofflink.o pei-i386.o elf32-i386.o elf-vxworks.o
elf32.o elf.o elflink.o elf-strtab.o elf-eh-frame.o dwarf
1.o elf32-gen.o cpu-i386.o
./libtool: line 4830: lib: command not found
make[4]: *** [] Error 127
make[4]: Leaving directory `/usr/local/src/trunk/objdir-binutils.mingw/bfd'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/trunk/objdir-binutils.mingw/bfd'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/trunk/objdir-binutils.mingw/bfd'
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory `/usr/local/src/trunk/objdir-binutils.mingw'
make: *** [all] Error 2

I understand this is binutils pakage's libtool that needs tweaking to
use 'gcc -mno-cygwin' somehow instead of 'lib' to create the
libbfd.lib ... any ideas on what to do about that issue?



Unsubscribe info:
Problem reports:

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