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

-g no longer works on OpenBSD #80

Closed
didickman opened this issue Dec 13, 2015 · 3 comments
Closed

-g no longer works on OpenBSD #80

didickman opened this issue Dec 13, 2015 · 3 comments

Comments

@didickman
Copy link
Contributor

When trying to compile with -g I now get an error like the below which I think is new. (OpenBSD uses binutils 2.17 as this is the last GPLv2 version.)

$ cd /usr/src/bin/cat
$ ccomp -g cat.c
/tmp/compcert3db100.s: Assembler messages:
/tmp/compcert3db100.s:4: Error: unknown pseudo-op: `.cfi_sections'
Error during assembling.
@bschommer
Copy link
Member

The problem is the old binutils. The .cfi_sections directive is needed for specifying the location of the debug information for call frames. The directives is available with binutils 2.21 and upwards.

@bschommer
Copy link
Member

It would also help if you could give us the .s file generated by your gcc with -g.

@didickman
Copy link
Contributor Author

latest version works for me. thanks.

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

No branches or pull requests

2 participants