Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833284 - cross-x86_64-w64-mingw32/mingw64-runtime cannot emerge with libraries use flag
Summary: cross-x86_64-w64-mingw32/mingw64-runtime cannot emerge with libraries use flag
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Cross compilation support
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-13 18:45 UTC by Adel KARA SLIMANE
Modified: 2022-03-09 15:51 UTC (History)
1 user (show)

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


Attachments
x86_64 build log (mingw64-runtime-x86_64.log,17.59 KB, text/x-log)
2022-02-13 18:45 UTC, Adel KARA SLIMANE
Details
x86_64 emerge pqv (emerge-pqv-mingw64-runtime-x86_64,108 bytes, text/plain)
2022-02-13 18:45 UTC, Adel KARA SLIMANE
Details
x86_64 emerge info (emerge-info-mingw64-runtime-x86_64,7.71 KB, text/plain)
2022-02-13 18:45 UTC, Adel KARA SLIMANE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adel KARA SLIMANE 2022-02-13 18:45:17 UTC
Created attachment 765012 [details]
x86_64 build log

Re-emerging cross-x86_64-w64-mingw32/mingw64-runtime with the "librarires" useflag fails at the configure step with

```
checking for x86_64-w64-mingw32-gcc... x86_64-w64-mingw32-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/cross-x86_64-w64-mingw32/mingw64-runtime-9.0.0/work/mingw-w64-v9.0.0/mingw-w64-libraries/libmangle':
configure: error: C compiler cannot create executables
See `config.log' for more details
```

same happens the i686 version

Any ideas ?

Thanks!
Comment 1 Adel KARA SLIMANE 2022-02-13 18:45:30 UTC
Created attachment 765013 [details]
x86_64 emerge pqv
Comment 2 Adel KARA SLIMANE 2022-02-13 18:45:47 UTC
Created attachment 765014 [details]
x86_64 emerge info
Comment 3 Adel KARA SLIMANE 2022-02-13 18:47:24 UTC
This bug report is probably the reason behind bug https://bugs.gentoo.org/833207
Comment 4 James Le Cuirot gentoo-dev 2022-02-13 21:21:30 UTC
IIRC you have to build it without libraries first, and then enable after that.
Comment 5 Adel KARA SLIMANE 2022-02-13 21:48:03 UTC
I do have it installed without libraries, but then it fails to emerge, as you can see in the emerge -pqv attachment. I don't know why it's like this
Comment 6 Adel KARA SLIMANE 2022-02-13 21:49:18 UTC
Initially I use this script to initially build the cross toolchain, maybe I am doing something wrong in that:

```
#!/bin/bash

echo "######################################"
echo "Generating x86_64-w64-mingw32"
echo "######################################"

crossdev --target cross-x86_64-w64-mingw32
crossdev --lenv 'USE="libraries"' \
--genv 'EXTRA_ECONF="--enable-threads=posix"' \
--init-target --target cross-x86_64-w64-mingw32
env USE="libraries" emerge --oneshot cross-x86_64-w64-mingw32/mingw64-runtime
env USE="libraries" emerge --oneshot cross-x86_64-w64-mingw32/gcc

# i686

echo "######################################"
echo "Generating i686-w64-mingw32"
echo "######################################"

crossdev --target cross-i686-w64-mingw32
crossdev --lenv 'USE="libraries"' \
--genv 'EXTRA_ECONF="--enable-threads=posix --disable-sjlj-exceptions --with-dwarf2"' \
--init-target --target cross-i686-w64-mingw32
env USE="libraries" emerge --oneshot cross-i686-w64-mingw32/mingw64-runtime
env USE="libraries" emerge --oneshot cross-i686-w64-mingw32/gcc

```
Comment 7 Adel KARA SLIMANE 2022-03-07 18:06:37 UTC
Okay something changed and I need to enable more flags than "libraries", mingw64-runtime needs "libraries idl tools", this code snippet works

```
#!/bin/bash

echo "######################################"
echo "Generating x86_64-w64-mingw32"
echo "######################################"

crossdev --target cross-x86_64-w64-mingw32
crossdev --lenv 'USE="libraries"' \
--genv 'EXTRA_ECONF="--enable-threads=posix"' \
--init-target --target cross-x86_64-w64-mingw32
env USE="libraries idl tools" emerge --oneshot cross-x86_64-w64-mingw32/mingw64-runtime
env USE="libraries" emerge --oneshot cross-x86_64-w64-mingw32/gcc

# i686

echo "######################################"
echo "Generating i686-w64-mingw32"
echo "######################################"

crossdev --target cross-i686-w64-mingw32
crossdev --lenv 'USE="libraries"' \
--genv 'EXTRA_ECONF="--enable-threads=posix --disable-sjlj-exceptions --with-dwarf2"' \
--init-target --target cross-i686-w64-mingw32
env USE="libraries idl tools" emerge --oneshot cross-i686-w64-mingw32/mingw64-runtime
env USE="libraries" emerge --oneshot cross-i686-w64-mingw32/gcc
```