Replies: 24 comments 62 replies
-
You need to pass |
Beta Was this translation helpful? Give feedback.
-
非常感谢,按照您的方法可以成功编译了。发现用到att参数的还不少呢。lcms2 gmp libcaca libjxl libsdl2 libsoxr libwebp mbedtls rubberband, 还有ffmpeg。这些都需要加 话说,如果啥时候能把GCC with the MCF合并到msys2的官方包里就好啦,这样的话以后更新就方便多了。 |
Beta Was this translation helpful? Give feedback.
-
我总感觉个别顽固的外国佬程序员有排外的情绪在里面,不过有更好更优的解决方案早晚会得到大众认可的。 |
Beta Was this translation helpful? Give feedback.
-
再问下编译这个gcc with mcf工具链能在linux下进行吗。如果能在linux下编译效率会更高吧。 |
Beta Was this translation helpful? Give feedback.
-
下面是尝试对shinchiro工具链的编译。过程中虽然没有报错,但最后有部分文件缺失(和shinchiro编译的结果对比)。没有 /lib/libcc1.la和/lib/libcc1.so.0.0.0这2个文件,没有/x86_64-w64-mingw32/include/c++这个目录。我在他仓库问了,暂时还没得到结果。 编译脚本如下:
|
Beta Was this translation helpful? Give feedback.
-
如果你需要的是 linux -> mingw32 的交叉编译器的话应该用这个
|
Beta Was this translation helpful? Give feedback.
-
嘛,这是编译环境:
这个gcc-multilib提供了交叉编译器 |
Beta Was this translation helpful? Give feedback.
-
可但是这个编译环境确实没问题呀,我用它编译出的toolchain没有任何问题。 |
Beta Was this translation helpful? Give feedback.
-
按照shinchiro的建议,问题解决啦~ 下面贴正确的脚本记录一下:
|
Beta Was this translation helpful? Give feedback.
-
下面准备尝试在linux下交叉编译gcc with mcfgthread。 |
Beta Was this translation helpful? Give feedback.
-
初步尝试成功了哈!!可以交叉编译出在msys2环境下运行的gcc with mcfgthread工具链了。不过还有几个疑问向您请教。 1.我想链接到ucrt,编译脚本里应该做哪些设置呢?因为我编译mpv一直用的是您的ucrt版本。 2.如果直接用vanilla mingw-w64-crt编译gcc,而不且hacked版本的crt会有什么影响呢。从用户层面上讲,对编译出来的软件有什么影响。比如我用这个工具链编译出来的mpv会有什么影响。因为我在你mcfgthread的仓库看了一下,您讲的是更底层的东西,做为非程序员的我确实不太懂,原谅我是技术小白~ 3.帮我看一下下面的脚本有什么问题,我没打任何补丁,不知道会不会缺失什么功能,有什么要必打的补丁吗? 这是编译出来的包:https://github.com/eko5624/toolchain-test/releases/download/toolchain/gcc-with-mcf-13.1.0.7z target-gcc脚本:
|
Beta Was this translation helpful? Give feedback.
-
在 headers 和 crt 的 configure 参数里加上 --with-default-msvcrt=ucrt 加了之后出现编译错误,configure: error: Pthreads are required to build libatomic。 |
Beta Was this translation helpful? Give feedback.
-
用我编译出来的这个toolchain在编译时遇到了下面2个问题。 1.需要用到cmake的项目会出现:
需要设置下面的变量:
但用你的toolchain时就无需加入这些变量的设置就可以,这是为啥呢? 2.编译libcaca时遇到下面的问题:
|
Beta Was this translation helpful? Give feedback.
-
@nyfair Any ideas? |
Beta Was this translation helpful? Give feedback.
-
arch两年前有人成功干过这事,建议去那边问问
https://aur.archlinux.org/packages/mingw-w64-mcfgthread-git
eko5624 ***@***.***> 于 2023年5月9日周二 16:44写道:
… @nyfair <https://github.com/nyfair> Any ideas?
—
Reply to this email directly, view it on GitHub
<#82 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKH7MZHKGQEEPIKLFMA6U3XFH7YJANCNFSM6AAAAAAXE6OGHI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@lhmouse @nyfair 终于成功编译Windows版gcc with mcf线程啦。。。最重要的一点就是第一步交叉编译器也必须是带mcf线程的,然后用第一步带mcf线程的交叉编译器去编译Windows版的gcc with mcf才能成功。我把编译脚本分享出来。
|
Beta Was this translation helpful? Give feedback.
-
makepkg也要装啊
eko5624 ***@***.***> 于 2023年7月19日周三 17:04写道:
… 不行呀,安装了pacman和devscripts还提示makepkg: command not found
—
Reply to this email directly, view it on GitHub
<#82 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKH7M32INN3NIIKICTHFIDXQ6PIZANCNFSM6AAAAAAXE6OGHI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
综合考虑,还是用archlinux的docker比较好。原因有二:
|
Beta Was this translation helpful? Give feedback.
-
@nyfair 话说fakeroot怎么用呢。这个workflow脚本怎么改呢。
|
Beta Was this translation helpful? Give feedback.
-
FYI, https://wiki.archlinux.org/title/MinGW_package_guidelines
LIU Hao ***@***.***> 于 2023年7月28日周五 10:56写道:
… For cross-compiling I believe you will need a dedicated 'makepkg.conf'.
—
Reply to this email directly, view it on GitHub
<#82 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKH7M7ZCHZZHSLBEN6LNULXSMS4JANCNFSM6AAAAAAXE6OGHI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
简单把/etc/makepkg.conf里的
|
Beta Was this translation helpful? Give feedback.
-
@nyfair @lhmouse Done! |
Beta Was this translation helpful? Give feedback.
-
我以前试过用wine做pgo优化,发现根本是负优化
LIU Hao ***@***.***> 于 2023年8月8日周二 23:00写道:
… 交叉编译固然是快,问题是没法测。当然可以用 wine 不过那种不算交叉编译。
—
Reply to this email directly, view it on GitHub
<#82 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKH7M6ZMQXIEONYBOWIEULXUJIBTANCNFSM6AAAAAAXE6OGHI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
话说llvm-clang支持MCF线程现在有进展吗? |
Beta Was this translation helpful? Give feedback.
-
我编译MPV用的GCC一直是从你这个网站下载的:https://gcc-mcf.lhmouse.com/
经过测试20230323到20230419这几个包编译MPV相关组件时总有几个编译不成功,不知道是哪里的问题,特来请教。
20230307这版是可以成功编译的版本。
下面是用mingw-w64-gcc-mcf_20230419_13.0.1_x64-ucrt这个版本编译时的log,请帮我看下是哪里的问题。
https://github.com/eko5624/mpv-win64/actions/runs/4749246192/jobs/8436314731
Beta Was this translation helpful? Give feedback.
All reactions