Menu

#1344 binutils build failed due to "fail on warning"

INSTALLER
closed
nobody
None
Bug
out-of-date
No_User_Response
False
2013-02-06
2009-08-26
No

I did a quick search, didn't find see this bug posted yet. Sorry if it's a duplicate.

I downloaded MinGW 3.4.5, ran x86-mingw32-build.sh-0.0-20061107-1 on Ubuntu 8.10.

$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)

$ ld -v
GNU ld (GNU Binutils for Ubuntu) 2.19.1

And the offending error, after I used the interactive configuration script:

cc1: warnings being treated as errors
../../binutils/bucomm.c: In function ‘make_tempname’:
../../binutils/bucomm.c:426: error: ignoring return value of ‘mktemp’, declared with attribute warn_unused_result

Discussion

  • Keith Marshall

    Keith Marshall - 2009-08-27

    I don't understand what you mean by "downloaded MinGW 3.4.5"; please indicate precisely which collection of files you downloaded. (BTW, why not just let the build script download what it needs?)

    The current version of the build scripts is x86-mingw32-build-1.0-sh.tar.bz2; this obsoletes the version you've indicated that you used, so you are strongly advised to upgrade.

    Why is cc1 treating warnings as errors? Did you add -Werror to the CFLAGS configured for building? I you didn't, how has this become set? If you did, then don't; you will not be able to successfully build either binutils or GCC with that option set, because both raise a significant number of warnings during building. (FWIW, -Werror is really only useful if you are a maintainer of the package you are building, and it is your intention to resolve, and eliminate, the issues responsible for the warnings).

     
  • Earnie Boyd

    Earnie Boyd - 2013-02-06
    • labels: MinGW Installer -->
    • status: open --> closed
    • milestone: --> INSTALLER
    • type: --> Bug
    • resolution: --> out-of-date
    • category: --> No_User_Response
    • patch_attached: --> False
     
MongoDB Logo MongoDB