Continuing in my efforts to get a cygwin-free compiler for windows.

I managed to build gmp and mpfr for i586-mingw32msvc from linux.

I modified the build-mingw32ce script to add the proper --with-gmp and
--with-mpfr parameters to gcc's configure when host!=build.

Now the failure is at cc1-dummy.exe:

squa...@host:~/cegcc/cross/gcc-bootstrap/gcc$ i586-mingw32msvc-gcc  -g -O2
-D__USE_MINGW_ACCESS -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual
-Wold-style-definition -Wc++-compat -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common
-DHAVE_CONFIG_H -Wl,--stack,8388608 -o cc1-dummy.exe c-lang.o stub-objc.o
attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o
c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-ppoutput.o
c-cppbuiltin.o c-objc-common.o c-dump.o c-pch.o c-parser.o arm-c.o
/home/squalyl/cegcc/src/gcc-4.4.0/gcc/config/i386/msformat-c.o c-gimplify.o
tree-mudflap.o c-pretty-print.o c-omp.o dummy-checksum.o           main.o
tree-browser.o libbackend.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a ../libcpp/libcpp.a   ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a
-L/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/lib
-L/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/lib -lmpfr -lgmp

/home/squalyl/cegcc/src/gcc-4.4.0/gcc/config/i386/msformat-c.o:(.rodata+0x38):
undefined reference to `integer_types'
/home/squalyl/cegcc/src/gcc-4.4.0/gcc/config/i386/msformat-c.o:(.rodata+0x3c):
undefined reference to `integer_types'
/home/squalyl/cegcc/src/gcc-4.4.0/gcc/config/i386/msformat-c.o:(.rodata+0xf4):
undefined reference to `integer_types'
/home/squalyl/cegcc/src/gcc-4.4.0/gcc/config/i386/msformat-c.o:(.rodata+0x10c):
undefined reference to `integer_types'
/home/squalyl/cegcc/src/gcc-4.4.0/gcc/config/i386/msformat-c.o:(.rodata+0x118):
undefined reference to `integer_types'
/home/squalyl/cegcc/src/gcc-4.4.0/gcc/config/i386/msformat-c.o:(.rodata+0x124):
more undefined references to `integer_types' follow
/home/squalyl/cegcc/src/gcc-4.4.0/gcc/config/i386/msformat-c.o:(.rodata+0x130):
undefined reference to `c_global_trees'
/home/squalyl/cegcc/src/gcc-4.4.0/gcc/config/i386/msformat-c.o:(.rodata+0x19c):
undefined reference to `integer_types'
/home/squalyl/cegcc/src/gcc-4.4.0/gcc/config/i386/msformat-c.o:(.rodata+0x1b4):
undefined reference to `integer_types'
/home/squalyl/cegcc/src/gcc-4.4.0/gcc/config/i386/msformat-c.o:(.rodata+0x1c0):
undefined reference to `integer_types'
/home/squalyl/cegcc/src/gcc-4.4.0/gcc/config/i386/msformat-c.o:(.rodata+0x1cc):
undefined reference to `integer_types'

etc...

objdump -t tells:
/home/squalyl/cegcc/src/gcc-4.4.0/gcc/config/i386/msformat-c.o:     file
format elf32-i386

SYMBOL TABLE:
...
00001280 l     O .rodata        00000020 ms_scanf_flag_pairs
...
00000000         *UND*  00000000 integer_types
000000c0 g     O .rodata        00000020 mingw_format_attribute_overrides
00000000         *UND*  00000000 c_global_trees
00000000         *UND*  00000000 global_trees

but
squa...@host:~/cegcc/cross/gcc-bootstrap/gcc$ i586-mingw32msvc-objdump -t
c-lang.o

c-lang.o:     file format pe-i386

Basically, here, we try to link mingw code with linux code.
There is a cross compile problem, because of this config/i386/msformat-c.o
file that gets compiled for linux instead of being compiled for mingw.
But mingw prepends some _ to symbol names , and linux doesn't, so the
integer_types symbol in msformat-c.o should be _integer_symbol.

The configure/make/etc build process is quite frustrating when you're not an
automake guru.
and the gcc bootstrap process is an additional pain.

Do someone know where, and how, could I start to have an influence on this
badly cross-built file?

Sebastien
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to