Skip to content

Oasis (swc, vis, xz) not compiling under cproc (use of volatiles & flexible array members) #62

Description

@xphung

Hi, I'd like to help where I can with getting oasis to compile with cproc, as it preserves the traditions of "original" unix which otherwise have been lost in modern linux (excessive use of dynamic linking, excessive focus on optimising machine code to the zillionth degree, excessive use of c++, excessive use of binary distribution as source code for complex packages are no easily longer comprehensible).

I get the following cproc compiler errors for xz, vis & swc, which I understand are meant to compile with cproc:

pkg/swc/src/cursor/convert_font.c:109:15: struct member contains flexible array member
pkg/xz/src/src/xz/message.c:97:31: volatile store not yet supported
pkg/vis/src/vis.c:832:24: volatile store not yet supported

(There might be more errors but I stopped there).

My cproc version is 995d5b48b1, swc is 32905f16ca, xz is 5.2.5

Also, I don't fully understand the oasis build system yet (not sure where $cc is being set), so at the moment I am activating cproc by replacing the rules.ninja cc rule (line 7 in rules.ninja) to directly execute cproc. Is there a better way to configure the oasis build system to use cproc instead of gcc and do I need to make any changes to CFLAGS (at present set to -Os -pipe)?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions