Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on OS X from __attribute__ section usage #21

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 1 comment
Open

Build fails on OS X from __attribute__ section usage #21

GoogleCodeExporter opened this issue Mar 13, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 28 May 2012 at 12:19

@GoogleCodeExporter
Copy link
Author

The SVN trunk should detect this automatically (revision r21).  Looks like that 
change never made it into a release.

Macports also has a fix applied.

Original comment by valient on 29 May 2012 at 10:23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant