Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 530468 - cross-x86_64-w64-mingw64/gcc-4.8.3 - options.c:1046:3: error: ‘HAVE_GAS_ALIGNED_COMM’ was not declared in this scope
Summary: cross-x86_64-w64-mingw64/gcc-4.8.3 - options.c:1046:3: error: ‘HAVE_GAS_ALIGN...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-24 21:05 UTC by barade.barade
Modified: 2015-02-15 19:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
cross-x86_64-w64-mingw64-gcc-stage1.log (cross-x86_64-w64-mingw64-gcc-stage1.log,625.95 KB, text/plain)
2014-11-24 21:05 UTC, barade.barade
Details

Note You need to log in before you can comment on or make changes to this bug.
Description barade.barade 2014-11-24 21:05:00 UTC
Created attachment 390224 [details]
cross-x86_64-w64-mingw64-gcc-stage1.log

After running crossdev --target x86_64-w64-mingw64 it fails at step:
Emerging cross-gcc-stage1 ...

The error in the log file is:

options.c:1046:3: error: ‘HAVE_GAS_ALIGNED_COMM’ was not declared in this scope
   HAVE_GAS_ALIGNED_COMM, /* use_pe_aligned_common */
   ^
Comment 1 Lars 2015-02-02 15:00:14 UTC
I have the same issue with x86_64-w64-mingw64.

I also tried to run

crossdev -t i686-w64-mingw64

But this files because:

*** BFD does not support target i686-w64-mingw64.
*** Look in bfd/config.bfd for supported targets.

In bfd/config.bdf I found these lines:

  x86_64-*-mingw* | x86_64-*-pe | x86_64-*-pep | x86_64-*-cygwin)

  i[3-7]86-*-mingw32* | i[3-7]86-*-cygwin* | i[3-7]86-*-winnt | i[3-7]86-*-pe)

As I understood from reading...

crossdev -t help | grep mingw
   - mingw32  http://www.mingw.org/
   - mingw64  http://mingw-w64.sourceforge.net/

i686-w64-mingw64 should give me a MinGW-w64 (the fork of MinGW) based toolchain for 32bit targets.
x86_64-w64-mingw64 should give me a MinGW-w64 based toolchain for 64bit targets.

Whereas

i686-w64-mingw32
x86_64-w64-mingw32

should give me the equivalents based on the original MinGW.

Did I get this right? Or is the help text wrong? Or do I miss something else?
Comment 2 SpanKY gentoo-dev 2015-02-15 19:25:36 UTC
(In reply to Lars from comment #1)

the section in the help you've quoted is for special pseudo targets.  that is, you run them verbatim:
  crossdev mingw64
and crossdev will rewrite that to the full tuple.

in this case, pretty sure you want to use x86_64-w64-mingw32.