Summary: | drm build dies: error: #error libdrm-intel requires atomic operations && 'drm_intel_bo_gem' has no member named 'relocs' | ||||||
---|---|---|---|---|---|---|---|
Product: | DRI | Reporter: | David Ronis <David.Ronis> | ||||
Component: | libdrm | Assignee: | Default DRI bug account <dri-devel> | ||||
Status: | RESOLVED NOTABUG | QA Contact: | |||||
Severity: | major | ||||||
Priority: | medium | ||||||
Version: | unspecified | ||||||
Hardware: | x86 (IA32) | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
i915 platform: | i915 features: | ||||||
Attachments: |
|
Description
David Ronis
2009-10-07 11:43:32 UTC
This still happens, and worse, mesa now requires the latest libdrm to configure. Anybody seeing this? Created attachment 30307 [details]
configuration log for configure --prefix=/usr
According to Ulrich Drepper [*], you need to pass an -march flag. configure:22139: checking for native atomic primitives configure:22171: /usr/bin/gcc -o conftest -O0 -g conftest.c >&5 /tmp/ccwCSjSb.o: In function `atomic_add': /home/ronis/Project/notar/X/drm/conftest.c:31: undefined reference to `__sync_fetch_and_add_4' /tmp/ccwCSjSb.o: In function `atomic_cmpxchg': /home/ronis/Project/notar/X/drm/conftest.c:32: undefined reference to `__sync_val_compare_and_swap_4' collect2: ld returned 1 exit status [*] http://sourceware.org/ml/libc-alpha/2007-02/msg00009.html Try compiling with -march=something_over_than_i386. Interesting, I configured/compiled with march=native and this time it works. Strange bug. Not really a bug.. gcc just doesn't enable atomic operations for CPUs that don't have them. I guess we just need to do something differently in configure. Closing as NOTABUG. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.