[Mesa-dev] [Bug 54951] New: ld: duplicate symbol _mem_ctx on Mac OS X

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Sep 14 23:44:21 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=54951

             Bug #: 54951
           Summary: ld: duplicate symbol _mem_ctx on Mac OS X
    Classification: Unclassified
           Product: Mesa
           Version: git
          Platform: x86-64 (AMD64)
        OS/Version: Mac OS X (All)
            Status: NEW
          Severity: critical
          Priority: medium
         Component: Other
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: vlee at freedesktop.org
                CC: anuj.phogat at gmail.com


The SCons build using GCC on Mac OS X is failing now. The SCons build with
clang on Mac OS X completes though.

$ scons
[...]
  Linking build/darwin-x86_64-debug/mesa/drivers/osmesa/libosmesa.dylib ...
ld: duplicate symbol _mem_ctx in
build/darwin-x86_64-debug/mesa/libmesa.a(driverfuncs.os) and
build/darwin-x86_64-debug/mesa/drivers/osmesa/osmesa.os for architecture x86_64
collect2: ld returned 1 exit status

$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658)
(LLVM build 2336.9.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

299acac849eb8506de9760c94c6e8e8b1046d909 is the first bad commit
commit 299acac849eb8506de9760c94c6e8e8b1046d909
Author: Anuj Phogat <anuj.phogat at gmail.com>
Date:   Fri Aug 31 13:51:39 2012 -0700

    _mesa_meta_GenerateMipmap: Support all texture targets by generating
shaders at runtime

    glsl path of _mesa_meta_GenerateMipmap() function would require different
fragment
    shaders depending on the texture target. This patch adds the code to
generate
    appropriate fragment shader programs at run time.
    Fixes https://bugs.freedesktop.org/show_bug.cgi?id=54296

    V2: Removed the code for integer textures as ARB is planning to
        disallow automatic mipmap generation for integer textures.
        Now using ralloc_asprintf in setup_glsl_generate_mipmap().

    NOTE: This is a candidate for stable branches.

    Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
    Reviewed-by: Brian Paul <brianp at vmware.com>

:040000 040000 040e6b344d415c31dc9558b21b5878d600621bf5
0eac98ab198e9e2a6b423a6a911781f46c186519 M    src
bisect run success

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list