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

Supress tons of warning regarding "compatibility" on NetBSD #3840

Open
catap opened this issue Mar 11, 2024 · 0 comments
Open

Supress tons of warning regarding "compatibility" on NetBSD #3840

catap opened this issue Mar 11, 2024 · 0 comments

Comments

@catap
Copy link
Contributor

catap commented Mar 11, 2024

When build Scala-Native on NetBSD, you may see tons of warnings like:

[error] /usr/bin/ld: /home/catap/scala-native/unit-tests/native/.3/target/scala-3.4.0/native-test/generated/cbe34aa6.ll.o: in function `M48org.scalanative.testsuite.posixlib.sys.TimesTestD13timesSucceedsuEO':
[error] /home/catap/scala-native/unit-tests/native/src/test/scala/org/scalanative/testsuite/posixlib/sys/TimesTest.scala:48: warning: warning: reference to compatibility times(); include <sys/times.h> for correct reference
[error] /usr/bin/ld: /home/catap/scala-native/unit-tests/native/.3/target/scala-3.4.0/native-test/generated/6cb3a268.ll.o: in function `M43org.scalanative.testsuite.posixlib.GlobTestD29globExpectNotFound$$anonfun$1L29scala.scalanative.unsafe.ZoneiEPT43org.scalanative.testsuite.posixlib.GlobTest':
[error] /home/catap/scala-native/unit-tests/native/src/test/scala/org/scalanative/testsuite/posixlib/GlobTest.scala:83: warning: warning: reference to compatibility glob(); include <glob.h> for correct reference
[error] /usr/bin/ld: /home/catap/scala-native/unit-tests/native/src/test/scala/org/scalanative/testsuite/posixlib/GlobTest.scala:93: warning: warning: refer

An example of header which triggers it: https://github.com/NetBSD/src/blob/dd848dec1a6e0b1e98e1d18ce6d271225ebc2057/lib/libc/compat/gen/compat_times.c#L25

It was discovered as part of #3835

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

1 participant