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

Build failure on llvm-4.0 with -Werror,-Wundefined-func-template #191

Open
fraggerfox opened this issue Apr 19, 2017 · 2 comments
Open

Build failure on llvm-4.0 with -Werror,-Wundefined-func-template #191

fraggerfox opened this issue Apr 19, 2017 · 2 comments

Comments

@fraggerfox
Copy link

Hello @dannyedel

Recently we managed to write a FreeBSD port for dspdfviewer and it was building and installing fine until the llvm-4.0 upgrade in the base system in FreeBSD 12.0-CURRENT.

The change in llvm-4.0 has caused build to fail specifically due to this

wrkdirs/usr/ports/graphics/dspdfviewer/work/dspdfviewer-1.15.1/runtimeconfiguration.cpp:201:14: error: instantiation of function 'boost::program_options::parse_config_file<char>' required here, but no definition is available [-Werror,-Wundefined-func-template]

The easiest workaround will be adding -Wno-error=undefined-func-template to cmake/compiler_clang.cmake for that one file. But this is not really a proper fix but just a workaround.

A proper fix would be for the proper definition of the above mentioned function.

Detailed log of the build failures

FreeBSD 12-CURRENT (i386)
FreeBSD 12-CURRENT (amd64)

Thanks to @ppaeps for helping me figure out the error and the suggestions for the fix.

-- Santhosh

@dannyedel
Copy link
Owner

Thank you for the report, I'll look into it (and add a CI build with a more recent clang) when I find the time.

@fraggerfox
Copy link
Author

Thank you for the reply @dannyedel

We also had a build failure on another part of the code again in FreeBSD 12.0-CURRENT.

Once again a change in llvm-4.0 has cause the build to fail specifically due to this

./hyperlinkarea.cpp:35:18: error: zero as null pointer constant [-Werror,-Wzero-as-null-pointer-constant]

We fixed this by adding -Wno-error=zero-as-null-pointer-constant to the FreeBSD port's Makefile

Detailed log of the build failures

FreeBSD 12-CURRENT (i386)
FreeBSD 12-CURRENT (amd64)

Added the details here, so that you can fix them along with the above one.

-- Santhosh

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