Bug 89259

Summary: Undefined symbols for architecture x86_64: "_aligned_alloc"
Product: piglit Reporter: Vinson Lee <vlee>
Component: infrastructureAssignee: Piglit Mailing List <piglit>
Status: RESOLVED FIXED QA Contact: Piglit Mailing List <piglit>
Severity: blocker    
Priority: medium CC: brianp, jfonseca
Version: unspecifiedKeywords: regression
Hardware: x86-64 (AMD64)   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:

Description Vinson Lee 2015-02-21 06:53:25 UTC
piglit: c07c8fdeef1c8781ed5eb957f5e48773af279836 (master)

Build error on Mac OS X.

$ make
[  0%] Built target piglit_dispatch_gen
Linking C shared library ../../../../lib/libpiglitutil.dylib
Undefined symbols for architecture x86_64:
  "_aligned_alloc", referenced from:
      _piglit_alloc_aligned in piglit-util.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 1 Vinson Lee 2015-02-21 06:58:57 UTC
commit b3bf480298c3c754063bc86438645d6319277ee8
Author: Brian Paul <brianp@vmware.com>
Date:   Fri Feb 20 15:45:14 2015 -0700

    util: add piglit_get_page_size(), piglit_align_alloc/free()
    
    Reviewed-by: José Fonseca <jfonseca@vmware.com>
Comment 2 Jose Fonseca 2015-02-21 12:52:04 UTC
Fixed with 12450a46046a42a3a8d627612e9f0f31ee9c3001.

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.