Skip to content

Build fails on OS X from __attribute__ section usage #21

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Try to build on OS X
2. Build fails

What is the expected output? What do you see instead?
Build error:
error: argument to 'section' attribute is not valid for
      this target: mach-o section specifier requires a segment and section separated by a comma

which I trace back to
  # define RLOG_SECTION __attribute__ (( section("RLOG_DATA") ))

What version of the product are you using? On what operating system?
OS X 10.7, clang 3.0. GCC 4.7 also gave a build error, but in the assembler 
phase.


Please provide any additional information below.
Changing this to:
  # define RLOG_SECTION __attribute__ (( section(".rlogseg,RLOG_DATA") ))

Gets it to build


Original issue reported on code.google.com by whatmann...@gmail.com on 28 May 2012 at 12:19

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions