Skip to content

Conversation

@mtb0x1
Copy link
Contributor

@mtb0x1 mtb0x1 commented May 31, 2024

I faced the following error when building with MSVC : \binaryen\src\parser\wat-parser.cpp(1,1): error C1128: number of sections exceeded object file format limit.

According to documentation this is related to the default allowable sections in obj files. (https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1128?view=msvc-170)

On the another side of things, adding this flag might leads to slower compile time and also probbaly hides high usage of templates in source code.

I added the flag only for parser.

I faced the following error when building with MSVC :
`\binaryen\src\parser\wat-parser.cpp(1,1): error C1128: number
of sections exceeded object file format limit`.

According to documentation this is related to the default allowable
sections in obj files. (https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1128?view=msvc-170)

On the another side of things, adding this flag might leads to slower
compile time and also probbaly hides high usage of templates in source
code.

I added the flag only for parser.
@kripken
Copy link
Member

kripken commented May 31, 2024

Another option here might be to split up wat-parser.cpp which would also be good for compile times. @tlively do you have an idea of the timeline for that? If it's not close then I'd be ok to land this PR as a workaround for now.

@tlively
Copy link
Member

tlively commented Jun 1, 2024

I can prioritize splitting up wat-parser.cpp on the 10th, when I'm back from the CG meeting.

@mtb0x1
Copy link
Contributor Author

mtb0x1 commented Jun 12, 2024

PR #6653 solves the root cause without adding a specific flag.
Closing this one.

@mtb0x1 mtb0x1 closed this Jun 12, 2024
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

Successfully merging this pull request may close these issues.

3 participants