Opened 15 years ago

Closed 15 years ago

#21086 closed defect (fixed)

i386-mingw32-binutils @2.19.1 fails to build

Reported by: aaron@… Owned by: landonf (Landon Fuller)
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc: royliu@…
Port: i386-mingw32-binutils

Description (last modified by mf2k (Frank Schima))

I'm using OS X 10.6 (snow leopard) with Xcode 3.2.

I believe the problem is similar to the ticket for regular binutils listed here: ticket:20197

Here is my build output:

[apatterson@higgins libnfc-1.2.1]$ sudo port install i386-mingw32-binutils
Password:
--->  Computing dependencies for i386-mingw32-binutils
--->  Building i386-mingw32-binutils
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/build" && /usr/bin/make -j2 all " returned error 2
Command output: Making all in doc
make[4]: Nothing to be done for `all'.
Making all in po
Making all in doc
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
Making all in po
make[4]: Nothing to be done for `all'.
/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils -I. -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils -I../bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils/../bfd -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils/../include -DLOCALEDIR="\"/opt/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation  -I/opt/local/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O2 -I/opt/local/include -arch x86_64 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils/strings.c
make[4]: Nothing to be done for `all-am'.
/usr/bin/make  all-recursive
Making all in po
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
Making info in po
make[3]: Nothing to be done for `info'.
cc1: warnings being treated as errors
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils/strings.c: In function 'strings_file':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-binutils/work/binutils-2.19.1/binutils/strings.c:407: warning: 'stat64' is deprecated (declared at /usr/include/sys/stat.h:465)
make[3]: Nothing to be done for `info-am'.
make[4]: *** [strings.o] Error 1
/usr/bin/make  all-recursive
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-binutils] Error 2
make[1]: *** Waiting for unfinished jobs....
Making all in po
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
make: *** [all] Error 2

Error: Status 1 encountered during processing.
[apatterson@higgins libnfc-1.2.1]$

Attachments (1)

out.log (347.9 KB) - added by aaron@… 15 years ago.
Build log

Download all attachments as: .zip

Change History (12)

comment:1 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to landonf@…

comment:2 Changed 15 years ago by tobypeterson

As usual, please attach a debug build log.

comment:3 Changed 15 years ago by tobypeterson

Description: modified (diff)

comment:4 Changed 15 years ago by aaron@…

Sorry, is that different than the one I put in the description? If so, where do I find it?

comment:5 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:6 Changed 15 years ago by mf2k (Frank Schima)

Run the following:

sudo port clean i386-mingw32-binutils
sudo port -d install i386-mingw32-binutils

Changed 15 years ago by aaron@…

Attachment: out.log added

Build log

comment:7 Changed 15 years ago by aaron@…

I've attached the build log. Sorry, I read the Ticket Guidelines, and it wasn't clear I should do that. I will know better next time. Sorry again.

comment:8 Changed 15 years ago by royliu@…

Adding the line "--disable-werror" to configure.args in the Portfile should fix it, since the deprecation warning is causing the build to fail.

comment:9 in reply to:  8 Changed 15 years ago by ian@…

Replying to royliu@…:

Adding the line "--disable-werror" to configure.args in the Portfile should fix it, since the deprecation warning is causing the build to fail.

That does indeed fix the problem. Easy patch.

comment:10 Changed 15 years ago by royliu@…

Cc: royliu@… added

Cc Me!

comment:11 Changed 15 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.