LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1243|回复: 9

gcc-4.3.1不能通过MesaLib的编译

[复制链接]
发表于 2008-7-17 23:05:58 | 显示全部楼层 |阅读模式
查找了互联网,不得要领。
发表于 2008-7-17 23:24:12 | 显示全部楼层
gcc-4.3.1+Mesa-7.0.2在我这里很正常,查查相关的依赖是否正常安装。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-18 08:59:17 | 显示全部楼层
Post by 聚焦深空;1875813
gcc-4.3.1+Mesa-7.0.2在我这里很正常,查查相关的依赖是否正常安装。


有打任何的补丁或者特殊的设置吗?我试过了从 MesaLib-6.5.2开始到 7.0.3 的几种版本,出现的问题都一样;而且用 gcc-4.2.2 编译是可以通过的,说明是 gcc 的问题。我现在正在重新 LFS 系统,到 xorg 这里就卡住了。
回复 支持 反对

使用道具 举报

发表于 2008-7-18 09:11:54 | 显示全部楼层
我现在使用的系统就是完全用 gcc-4.3.1 编译的,
系统里只有gcc-4.3.1一个编译器,
Mesa-7.0.2+xorg-7.3+xorg-server-1.4.90 这部分没有使用任何补丁或特殊设置。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-18 18:18:54 | 显示全部楼层
xorg-7.3的编译脚本是什么?最新的 BLFS SVN 是 7.2? 直接用的 xorg 下载目录下的包版本吗?

另外,编译 gcc-4.3.1时,是原包还是打过什么补丁?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-18 22:07:02 | 显示全部楼层
看下面,好象已经修补成功了,但是补丁在哪里?

http://bugs.freedesktop.org/show_bug.cgi?id=13362
Bugzilla – Bug 13362
       

Error with i915tex in file dri_bufmgr.c
       

Last modified: 2007-12-03 16:59:35 PST

    * Home
    * | New
    * | Search
    * |
    * | Reports
    * | Requests
    * | New Account
    * | Log In

First Last Prev Next    No search results available
Details
Summary:         Error with i915tex in file dri_bufmgr.c
Bug#:         13362
Alias:        
Product:         Mesa
Component:         Drivers/DRI/i915
Status:         RESOLVED
Resolution:         FIXED
       
Hardware:         x86 (IA32)
OS:         Linux (All)
Version:         unspecified
Priority:         medium
Severity:         normal
URL:        
Whiteboard:        
Keywords:        
Depends on:                
Blocks:                
          Show dependency tree - Show dependency graph
       
People
Reporter:         Mangamaniac <mangamaniac@gmx.at>
Assigned To:         Default DRI bug account <dri-devel@lists.sourceforge.net>
QA Contact:        

Attachments
Add an attachment (proposed patch, testcase, etc.)


Note

You need to log in before you can comment on or make changes to this bug.
       
Related actions

    * View Bug Activity
    * Format For Printing
    * XML
    * Clone This Bug


Description:           Opened: 2007-11-22 17:40 PST

I try to compile the latest Mesa on my Fujitsu Simens notebook with a GMA 950
and Gentoo and get following compile error:

make[6]: Leaving directory
`/var/tmp/portage/media-libs/mesa-7.0.2/work/Mesa-7.0.2/src/mesa/drivers/dri/i915tex'
make[6]: Entering directory
`/var/tmp/portage/media-libs/mesa-7.0.2/work/Mesa-7.0.2/src/mesa/drivers/dri/i915tex'
i686-pc-linux-gnu-gcc -c -I. -I../../../../../src/mesa/drivers/dri/common
-Iserver -I../../../../../include -I../../../../../include/GL/internal
-I../../../../../src/mesa -I../../../../../src/mesa/main
-I../../../../../src/mesa/glapi -I../../../../../src/mesa/math
-I../../../../../src/mesa/transform -I../../../../../src/mesa/shader
-I../../../../../src/mesa/swrast -I../../../../../src/mesa/swrast_setup
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri `pkg-config
--cflags libdrm`  -O2 -march=i686 -pipe -fno-strict-aliasing -fPIC -m32
-D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
-D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS
-DHAVE_POSIX_MEMALIGN -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
-I../intel  ../common/dri_bufmgr.c -o ../common/dri_bufmgr.o
In file included from ../common/dri_bufmgr.c:37:
../common/dri_bufmgr.h:83: Fehler: expected declaration specifiers or »...«
before »drmBOList«
../common/dri_bufmgr.h:84: Fehler: expected »)« before »*« token
../common/dri_bufmgr.h:85: Fehler: expected »)« before »*« token
../common/dri_bufmgr.h:87: Fehler: expected declaration specifiers or »...«
before »drmBOList«
../common/dri_bufmgr.c: In Funktion »driFenceBuffers«:
../common/dri_bufmgr.c:102: Warnung: Übergabe des Arguments 3 von
»drmFenceBuffers«  erzeugt Ganzzahl von Zeiger ohne Typkonvertierung
../common/dri_bufmgr.c:102: Fehler: Zu wenige Argumente für Funktion
»drmFenceBuffers«
../common/dri_bufmgr.c: Auf höchster Ebene:
../common/dri_bufmgr.c:437: Fehler: expected declaration specifiers or »...«
before »drmBOList«
../common/dri_bufmgr.c: In Funktion »driBOCreateList«:
../common/dri_bufmgr.c:440: Fehler: »list« nicht deklariert (erste Benutzung
in dieser Funktion)
../common/dri_bufmgr.c:440: Fehler: (Jeder nicht deklarierte Bezeichner wird
nur einmal aufgeführt
../common/dri_bufmgr.c:440: Fehler: für jede Funktion in der er auftritt.)
../common/dri_bufmgr.c: Auf höchster Ebene:
../common/dri_bufmgr.c:445: Fehler: expected »)« before »*« token
../common/dri_bufmgr.c:453: Fehler: expected »)« before »*« token
../common/dri_bufmgr.c:487: Fehler: expected declaration specifiers or »...«
before »drmBOList«
../common/dri_bufmgr.c: In Funktion »driBOValidateList«:
../common/dri_bufmgr.c:490: Fehler: »list« nicht deklariert (erste Benutzung
in dieser Funktion)
make[6]: *** [../common/dri_bufmgr.o] Fehler 1
make[6]: Leaving directory
`/var/tmp/portage/media-libs/mesa-7.0.2/work/Mesa-7.0.2/src/mesa/drivers/dri/i915tex'
make[5]: *** [subdirs] Fehler 1
make[5]: Leaving directory
`/var/tmp/portage/media-libs/mesa-7.0.2/work/Mesa-7.0.2/src/mesa/drivers/dri'
make[4]: *** [linux-solo] Fehler 2
make[4]: Leaving directory
`/var/tmp/portage/media-libs/mesa-7.0.2/work/Mesa-7.0.2/src/mesa'
make[3]: *** [default] Fehler 2
make[3]: Leaving directory
`/var/tmp/portage/media-libs/mesa-7.0.2/work/Mesa-7.0.2/src/mesa'
make[2]: *** [subdirs] Fehler 1
make[2]: Leaving directory
`/var/tmp/portage/media-libs/mesa-7.0.2/work/Mesa-7.0.2/src'
make[1]: *** [default] Fehler 1
make[1]: Leaving directory
`/var/tmp/portage/media-libs/mesa-7.0.2/work/Mesa-7.0.2'
make: *** [linux-dri-x86] Fehler 2
?[31;01m*?[0m
?[31;01m*?[0m ERROR: media-libs/mesa-7.0.2 failed.
?[31;01m*?[0m Call stack:
?[31;01m*?[0m           ebuild.sh, line 1701:  Called dyn_compile
?[31;01m*?[0m           ebuild.sh, line 1039:  Called qa_call 'src_compile'
?[31;01m*?[0m           ebuild.sh, line   44:  Called src_compile
?[31;01m*?[0m   mesa-7.0.2.ebuild, line  213:  Called die
?[31;01m*?[0m The specific snippet of code:
?[31;01m*?[0m          emake -j1 ${CONFIG} || die "Build failed"
?[31;01m*?[0m  The die message:
?[31;01m*?[0m   Build failed

------- Comment #1 From Sérgio M. B. 2007-11-22 17:56:57 PST -------

this maybe is because libdrm is not 2.3.0 ,
anyway you could delete i915tex dir safely

------- Comment #2 From Mangamaniac 2007-11-24 05:11:25 PST -------

(In reply to comment #1)
> this maybe is because libdrm is not 2.3.0 ,
> anyway you could delete i915tex dir safely
>

hmm I allready use libdrm 2.3.0 but still no success.
When I remove the i810 flag I'm able to compile mesa without problems, but then
i get no 3D acceleration for my card :-/

------- Comment #3 From Michael Fu 2007-12-03 16:59:35 PST -------

should be fixed in git tip. please verify...

First Last Prev Next    No search results available

    *
      Actions:
          o Home
          o | New
          o | Search
          o |
          o | Reports
          o | Requests
          o | New Account
          o | Log In
回复 支持 反对

使用道具 举报

发表于 2008-7-18 22:08:41 | 显示全部楼层
[原创]从源码构建本地编译GNU/Linux系统(gcc-4.3.1) 这是我建立基本系统的方法。

对gcc有修补(posix+pure64),不影响gcc具体行为。

gcc-4.3系列对源代码语法检查要比之前版本严格的多,遇到不能编译的软件包,升级到最新版本基本都可以解决。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-19 08:52:37 | 显示全部楼层
找到一个临时处理方法,用 libdrm-2.3.0 (不能用更高版本)可以回避不能编译通过的问题,但仍有编译问题;最新的 xserver 1.4.99.905 要求 MesaLib 7.1 以上,看来 xorg 模块的依赖关系并不是那么简单的。

完成后,twm不正常,其它看不出有什么问题。
回复 支持 反对

使用道具 举报

发表于 2008-7-19 09:33:17 | 显示全部楼层
Post by linux001;1876238
找到一个临时处理方法,用 libdrm-2.3.0 (不能用更高版本)可以回避不能编译通过的问题,但仍有编译问题;最新的 xserver 1.4.99.905 要求 MesaLib 7.1 以上,看来 xorg 模块的依赖关系并不是那么简单的。

完成后,twm不正常,其它看不出有什么问题。

请不要错误理解我说的最新版本,最新版本是指最新的稳定版,xxx-α、xxx-β、xxx-rc、xxx-git的不算。用后面这些不稳定版本,要知道自己在做什么才行,否则是自虐。
我使用xorg-server-1.4.90,只是为了修正键盘led的bug。
xorg-7.3我是看作一个整体的,当然你可以象我一样针对某一部分有选择的升级,但要解决好依赖关系。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-19 16:52:33 | 显示全部楼层
看来我正式刷系统时,还是需要直接下载 xorg 下载目录下 7.3 的everything 下的包进行安装了,否则不好确定是否稳定的配合版本包;觉得 xorg 还是应当发布一下正式版本的依赖包版本(也许它有只是我没找到?)。

现在只是测试刷新系统的可行性。主要测试   glibc2.7+gcc4.3.1+xorg7.3+gnome2.24版本配合。
回复 支持 反对

使用道具 举报

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

本版积分规则

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