I have hugo 46 extended installed on fedora 29 and debian 8. When I run hugo server on fedora everything is fine. When I run it in Debian, css file is just empty
Yes it is! Initially I tried the regular one but it showed an error message. I have switched to Hugo extended 0.46 and 0.49 with the same result in both (empty style file)
I have also ran hugo server in debug mode. No errors observed
How did you install Hugo in Debian? There appears to be some issues with the latest release, but I wouldn’t know any Debian-specific issues. What’s the output of hugo version?
Looks like the problem is in gcc package. If I install it on version gcc-5 from the unstable repository, all css files are empty (even the one without processing)
Thanks maiki! So to be more specific, it affects also the regular version. If gcc-5 is installed in Debian 8, both regular and extended versions are not able to generate(inject) css files.
I am unsure how it works, but my understanding is the non-extended version doesn’t operate on the CSS that way. Hopefully someone in the know will come along.
Thank you for your report. So, if I understand correctly what you are saying, you are experiencing this problem on Debian 8 jessie (originally released in April 2015), currently known as “oldstable”, superseded by Debian 9 “stretch” the current “stable” (though Debian 8 is supported until 2020); while on a more modern Linux version like Fedora 29 (not yet released, currently in beta), and probably in Debian 9 too, it is working fine.
Of course, the easiest way out would be to upgrade to Debian 9 (stable) (released June 2017) or even to Debian testing (“buster”).
Oh, wait, let me read more carefully… You wrote:
So, do you mean that if you have only gcc-4.9, i.e. the default version of GCC in Debian 8 (jessie), and no “gcc-5”, Hugo (extended or not) builds correctly and runs fine, with a correctly (non-empty) generated .CSS file?