mingw-binutils: Segmentation fault & newer version

Mojca Miklavec mojca.miklavec.lists at gmail.com
Mon Jan 24 03:43:05 PST 2011


Dear list,

I'm experiencing a nasty problem with cross-compiler. I'm using 64-bit
Mac OS X 10.6.6 with macports and

> i386-mingw32-g++ --version
i386-mingw32-g++ (GCC) 3.4.5 (mingw-vista special r2)
> i386-mingw32-ld --version
GNU ld (GNU Binutils) 2.19.1

(but I'm experiencing similar problems on another linux machine).

I have reported the problem to
    http://lists.gnu.org/archive/html/bug-binutils/2011-01/msg00120.html
and it seems that either the problem is not present in a more recent
version of "ld" (however it is also possible that there are some
architecture-specific issues).

I have also submitted a bug report to mingw.

But I would be very very very grateful if somebody from this mailing
list could either:
- explain me how exactly to compile binutils
- or how to create a new port that would fetch binutils 2.21 instead
of 2.19.1 and what command to execute to replace the old version with
the latest one
- or (even better): send me a more recent ld binary for x86_64

I have tried to download the source from
    https://sourceforge.net/projects/mingw/files/MinGW/BaseSystem/GNU-Binutils/binutils-2.21/
and to compile it with
    ./configure --prefix='/opt/local'
--infodir='/opt/local/share/info' --target=i386-mingw32
--program-prefix=i386-mingw32- --mandir='/opt/local/share/man'
--disable-werror
but "make" ended with an error


gcc -DHAVE_CONFIG_H -I.  -I. -I. -I../bfd -I./../bfd -I./../include
-DLOCALEDIR="\"/opt/local/share/locale\""
-Dbin_dummy_emulation=bin_vanilla_emulation -I/opt/local/include -W
-Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT
size.o -MD -MP -MF .deps/size.Tpo -c -o size.o size.c
In file included from size.c:33:
sysdep.h:30:20: error: bfdver.h: No such file or directory
size.c:34:17: error: bfd.h: No such file or directory


I'm not sure what flags exactly I would need in order to be able to
compile binutils for macports.

Any help would be highly appreciated.

Thank you very much,
    Mojca


More information about the macports-users mailing list