vapor / fluent-postgres-driver

🐘 PostgreSQL driver for Fluent.
MIT License
146 stars 53 forks source link

Missing '#include <stdlib.h>'; 'abort' must be declared before it is used #177

Closed mauliknshah closed 3 years ago

mauliknshah commented 3 years ago

/Users/Maulik/Library/Developer/Xcode/DerivedData/TestFluentPostgres-gjwkxowtrhpkuzdpxewtalgpeaqq/SourcePackages/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/include/CNIOBoringSSL_span.h:139:7: Missing '#include '; 'abort' must be declared before it is used

To Reproduce

Steps to reproduce the behavior:

  1. Create a new Project.
  2. Add Fluent-Postgres-Drivers dependency using https://github.com/vapor/fluent-postgres-driver.git URL.
  3. Compile.

Expected behavior

Only one error as stated in the first line.

Environment

Fluent-Postgres-Driver Version: 2.1.0 - (Exact or Next Major) Swift-Nio-SSL version: 2.10.0 (Not added independently) XCode Version: 11.7 or higher(Same error with XCode 12.3 Beta) macOS Version: 11.0.1 (Big Sur)

Additional context

I know it's an NIO error, but I haven't added any NIO dependencies independently.

0xTim commented 3 years ago

Do you have Macports installed? That tends to mess with include paths. And have you tried deleting your derived data and trying again?

mauliknshah commented 3 years ago

Also, I tried to create a new project from scratch with just Nio-ssl and Nio dependencies, which produced the same error. I have raised the issue with the Nio team, which you can find it here: Bug: Missing '#include '; 'abort' must be declared before it is used #259.

0xTim commented 3 years ago

Ok, I'll close this issue as it looks deeper than anything we can help with here and unrelated to Vapor