无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
12
返回列表 发新帖
楼主: zhaohj
打印 上一主题 下一主题

GRUB4DOS更新建议、bug反馈专帖

    [复制链接]
31#
发表于 2012-2-27 13:17:43 | 显示全部楼层
原帖由 zhaohj 于 2012-2-27 13:03 发表
哇,感谢Roy,解决了GCC 4.6编译grub4dos问题,不知编译外部命令能否解决?


要是能解决用MSYS编译外部命令的话,就十分完美了……
回复

使用道具 举报

32#
发表于 2012-2-27 13:52:19 | 显示全部楼层

回复 #2430 chenall 的帖子

嗯,最后的版本非常不错。
回复

使用道具 举报

33#
发表于 2012-2-27 14:58:29 | 显示全部楼层

回复 #2432 chenall 的帖子

我这编译报错。。。。

gcc 显示 4.6.1版本
  1. dev@g4d:~$ cd grub4dos_src
  2. dev@g4d:~/grub4dos_src$ ./build
  3. make: *** No rule to make target `clean'.  Stop.
  4. checking for a BSD-compatible install... /usr/bin/install -c
  5. checking whether build environment is sane... yes
  6. checking for gawk... no
  7. checking for mawk... no
  8. checking for nawk... no
  9. checking for awk... awk
  10. checking whether make sets $(MAKE)... yes
  11. checking build system type... i686-pc-linux-gnu
  12. checking host system type... i686-pc-linux-gnu
  13. checking whether to enable maintainer-specific portions of Makefiles... no
  14. checking for gcc... gcc
  15. checking for gcc... (cached) gcc
  16. checking whether the C compiler works... no
  17. configure: error: in `/home/dev/grub4dos_src/grub4dos-temp':
  18. configure: error: C compiler cannot create executables
  19. See `config.log' for more details
复制代码


换回 gcc4.5.tcz 编译正常,呵呵,现在知道如何更改gcc的版本了。

[ 本帖最后由 Plantsoot 于 2012-2-27 15:04 编辑 ]
回复

使用道具 举报

34#
发表于 2012-2-27 16:03:56 | 显示全部楼层

回复 #2434 chenall 的帖子

checking for gcc... (cached) gcc
checking whether the C compiler works... no
configure: error: in `/home/dev/grub4dos_src/grub4dos-temp':
configure: error: C compiler cannot create executables
See `config.log' for more details
dev@g4d:~/grub4dos_src$ tce-load -wi gcc
gcc is already installed!

奇怪了。说已经安装了,是不是要先卸载4.5?
回复

使用道具 举报

35#
发表于 2012-2-28 15:15:42 | 显示全部楼层

回复 #2436 chenall 的帖子

Colinux_TinyCoreLinux_grub4dos_dev.7z
MD5: FA11D60B45FEF4282DD9E0B640F39CF0

使用正常了,速度很快。
编译出来的grldr大小是266,531字节。
回复

使用道具 举报

36#
发表于 2012-3-28 22:17:20 | 显示全部楼层

回复 #2509 roytam1 的帖子

可以修复一下外部命令无法正常运行的问题吗?

具体是这样的。

今天编译一个外部命令,4.5.3、4.6.1、4.6.2 编译出来的都无法运行,提示程序格式不正确。
换回4.3.3编译,运行正常。

但并不是所有的外部命令有这样的情况,是部分外部命令。
回复

使用道具 举报

37#
发表于 2012-3-29 12:38:57 | 显示全部楼层

回复 #2513 不点 的帖子

谢谢不点、chenall、zhaohj、……

把asm部分的代码移到 main前面,问题解决。

发现一个奇怪的问题,有问题的代码用 4.3.3编译出来竟然可以运行。

有问题的代码编译出来的文件尾对比:

4.6.x:
12F100004752554234444F530803330105180503BAA7BABC0000000000000000

4.3.3:
12F1000047525542000000000000000034444F530803330105180503BAA7BABC

asm移到main前面后用4.6.1编译,可以正常使用:
12F1000000000000000000004752554234444F530903330105180503BAA7BABC

[ 本帖最后由 Plantsoot 于 2012-3-29 12:42 编辑 ]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-5-24 07:17

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表