-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Can't build stuff (using gyp) on FreeBSD 11.1 (or clang 4.0) #14076
Comments
See #12784 for context. If there is a way to make it work with both freebsd 10 and 11, file a pull request and I'll review it. You can probably branch on |
Looks like there's no llvm_version variable though and I don't know any good way to generate it (short of doing shell script monstrosity). |
The configure script sets it if it detects that CC is clang. You should see it in config.gypi. |
Doesn't seem to be used when building node-sass though. Also the value is 0 in |
PR-URL: #14077 Fixes: #14076 Refs: https://svnweb.freebsd.org/ports/head/www/node/Makefile?revision=444555&view=markup Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Refael Ackermann <refack@gmail.com>
PR-URL: #14077 Fixes: #14076 Refs: https://svnweb.freebsd.org/ports/head/www/node/Makefile?revision=444555&view=markup Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Refael Ackermann <refack@gmail.com>
Assuming these node-sass build issues are fixed after 8.2.1 (we're still seeing them in 8.2.1 on FreeBSD 11.1 amd64; see below) would it be possible to roll a new v8 release?
|
@Jehops seems like it will be in |
…eBSD 11.1 that prevents building node modules with gyp [2]. [1] nodejs/node#14076 [2] Users still have to install www/yarn and devel/rubygem-execjs with non-default NODE6 option. git-svn-id: svn+ssh://svn.freebsd.org/ports/head@447464 35697150-7ecd-e111-bb59-0022644237b5
…eBSD 11.1 that prevents building node modules with gyp [2]. [1] nodejs/node#14076 [2] Users still have to install www/yarn and devel/rubygem-execjs with non-default NODE6 option.
I still have problems building node-sass (under gyp) on FBSD11.1. In order to get the fix in mat813/freebsd-ports@cea3aae now, I updated to latest packages:
and then
but still
also documented here: sass/node-sass#2153 (comment) |
I solved it. It was to do with how the binary node8 package was being built in the FreeBSD pack build infrastructure. TLDR; it was being built under FBSD 11.0 (clang3.8.0), and if you then run it on a FBSD11.1 (clang 4.0.0) machine the gyp build (of eg node-sass) will fail with above error. Building the port from source on local machine always works. Details here: referred to here: sass/node-sass#2153 (comment) |
The flag added here breaks the above FreeBSD version because it uses clang 4.0 which doesn't need it anymore (or something). It's removed in ports (depending on clang version) but when building
node-sass
, it uses the unpatched version (downloads https://nodejs.org/download/release/v8.1.3/node-v8.1.3-headers.tar.gz ). Modifyingcommon.gypi
in~/.node-gyp
fixes it.The text was updated successfully, but these errors were encountered: