Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 423971 - cross-i686-pc-mingw32/gcc-4.6.3: .../build/./gcc/as: line 87: exec: -o: invalid option
Summary: cross-i686-pc-mingw32/gcc-4.6.3: .../build/./gcc/as: line 87: exec: -o: inval...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-28 12:25 UTC by Rast
Modified: 2013-11-30 19:45 UTC (History)
1 user (show)

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


Attachments
cross-i686-pc-mingw32-info.log (cross-i686-pc-mingw32-info.log,16.87 KB, text/plain)
2012-06-28 12:26 UTC, Rast
Details
/cross-i686-pc-mingw32-gcc-stage1.log.xz (cross-i686-pc-mingw32-gcc-stage1.log.xz,11.65 KB, application/x-xz)
2012-06-28 12:26 UTC, Rast
Details
gcc-config.logs.tar.xz (gcc-config.logs.tar.xz,38.09 KB, text/plain)
2012-06-28 12:27 UTC, Rast
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rast 2012-06-28 12:25:10 UTC
After run this "crossdev  -t i686-pc-mingw32" 
i got this message:

--------------------------------------------------------------------------------
 * crossdev version:      20120305
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   x86
 * Target System:         i686-pc-mingw32
 * Stage:                 4 (C/C++ compiler)
 * ABIs:                  default

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * headers:               w32api-[latest]
 * libc:                  mingw-runtime-[latest]

 * CROSSDEV_OVERLAY:      /var/lib/layman/sunrise
 * PORT_LOGDIR:           /var/log/portage
 * PORTAGE_CONFIGROOT:    
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  
 * leaving sys-devel/binutils in /var/lib/layman/sunrise
 * leaving sys-devel/gcc in /var/lib/layman/sunrise
 * leaving dev-util/w32api in /var/lib/layman/sunrise
 * leaving dev-util/mingw-runtime in /var/lib/layman/sunrise
 * leaving sys-devel/gdb in /var/lib/layman/sunrise
 * leaving dev-util/insight in /var/lib/layman/sunrise
 * leaving metadata/layout.conf alone in /var/lib/layman/sunrise
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  
 * Log: /var/log/portage/cross-i686-pc-mingw32-binutils.log
 * Emerging cross-binutils ...                                            [ ok ]
 * Log: /var/log/portage/cross-i686-pc-mingw32-w32api-quick.log
 * Emerging cross-w32api-quick ...                                        [ ok ]
 * Log: /var/log/portage/cross-i686-pc-mingw32-mingw-runtime-headers.log
 * Emerging cross-mingw-runtime-headers ...                               [ ok ]
 * Log: /var/log/portage/cross-i686-pc-mingw32-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...

 * gcc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-i686-pc-mingw32-info.log
 * /var/log/portage/cross-i686-pc-mingw32-gcc-stage1.log.xz
 * /var/tmp/portage/cross-i686-pc-mingw32/gcc*/temp/gcc-config.logs.tar.xz
Comment 1 Rast 2012-06-28 12:26:05 UTC
Created attachment 316541 [details]
cross-i686-pc-mingw32-info.log
Comment 2 Rast 2012-06-28 12:26:47 UTC
Created attachment 316543 [details]
/cross-i686-pc-mingw32-gcc-stage1.log.xz
Comment 3 Rast 2012-06-28 12:27:42 UTC
Created attachment 316545 [details]
gcc-config.logs.tar.xz
Comment 4 Rafał Mużyło 2012-06-28 14:42:11 UTC
The error seems to be:
configure:3055: /mnt/oldos/var/tmp/portage/cross-i686-pc-mingw32/gcc-4.6.3/work/build/./gcc/xgcc -B/mnt/oldos/var/tmp/portage/cross-i686-pc-mingw32/gcc-4.6.3/work/build/./gcc/ -L/mnt/oldos/var/tmp/portage/cross-i686-pc-mingw32/gcc-4.6.3/work/build/i686-pc-mingw32/winsup/mingw -L/mnt/oldos/var/tmp/portage/cross-i686-pc-mingw32/gcc-4.6.3/work/build/i686-pc-mingw32/winsup/w32api/lib -isystem /mnt/oldos/var/tmp/portage/cross-i686-pc-mingw32/gcc-4.6.3/work/gcc-4.6.3/winsup/mingw/include -isystem /mnt/oldos/var/tmp/portage/cross-i686-pc-mingw32/gcc-4.6.3/work/gcc-4.6.3/winsup/w32api/include -B/usr/i686-pc-mingw32/bin/ -B/usr/i686-pc-mingw32/lib/ -isystem /usr/i686-pc-mingw32/include -isystem /usr/i686-pc-mingw32/sys-include    -o conftest -g -O2 -pipe   conftest.c  >&5
/mnt/oldos/var/tmp/portage/cross-i686-pc-mingw32/gcc-4.6.3/work/build/./gcc/as: line 87: exec: -o: invalid option

...not that it seems to tell much.
Comment 5 SpanKY gentoo-dev 2012-08-11 18:52:56 UTC
i just ran `crossdev i686-pc-mingw32` and it worked fine for me

cross-i686-pc-mingw32/binutils-2.22.90
cross-i686-pc-mingw32/gcc-4.6.3
cross-i686-pc-mingw32/mingw-runtime-3.18
cross-i686-pc-mingw32/w32api-3.17.2

going by the "/mnt/oldos" you have in the output, are you doing weird things in your system involving symlinks ?
Comment 6 James Le Cuirot gentoo-dev 2013-11-13 10:44:39 UTC
I hit this and found that no binutils was set for the target. Fix it using binutils-config and try again. You posted over a year ago though so you've probably worked around it by now. Time to close this?