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
Compilation fails on FreeBSD #304
Comments
two minutes after posting the above issue, i found it myself, doh! need to set the LD flags for FreeBSD like so:
|
however, now i get the following:
now what? |
On 25/07/2014 15:21, Tom Lazar wrote:
|
On 25/07/2014 15:26, Tom Lazar wrote:
|
IMHO the general state is that noone maintained (Free)BSD support for the last year (roughly). We even used to have FreeBSD builders on hydra.nixos.org, but there was practically noone interested... Recently nix started using some newer c++ features, e.g. the unordered sets as you can see. It's c++11 and some compilers provided before in |
BTW, isn't FreeBSD-10 practically gcc-free (using clang for everything)? |
yes, FreeBSD 10 uses clang for everything AFAIK. will try to install gpp and compile again |
ok, i installed
|
cc @edolstra |
Nix used to compile fine on FreeBSD even with the std::tr1 stuff (last build log: http://hydra.nixos.org/build/7300160/log/raw). |
@edolstra thanks for the log build, that gave me some interesting configure arguments to play around with! however, the main problem at the moment seems to be, that eventhough i have gcc 4.8.4 installed it still complains about i feel that the goal is not too far away, though :) |
perhaps my
|
No, it's probably that the makefiles have changed since the FreeBSD machines became unavailable. The |
@edolstra ah, thanks for that. now at least i know i don't need to try to get it working with this flag. however, from googling the error message it seems that the fix needs to be performed in the source files, rather than in the configuration? perhaps this means, that nix in its current state simply cannot be built on FreeBSD? |
at any rate the, claim on the start page of of nixos.org is misleading and should be removed until the issue is fixed, especially given the fact that the non-support has been going on for a year already, no? |
The homepage change can wait a while -- if you solve it within a few days, it will be correct again ;-) |
@vcunat, i like your attitude :) but like i said above, i'm now absolutely out of my depth. i'm not a C(++) hacker at all and while i'm happy to tweak makefiles and compiler flags i'm in no position to fix the underlying code and have hit a dead end for now. |
To me it looks like misconfiguration. According to my quick searches, gcc-4.7 should support |
You may need |
@shlevy i tried your suggestion by changing the relevant line in the top-level Makefile to:
re-ran configure and then gmake. no dice...
|
IMHO the problem is in the source trying the |
@vcunat so it looks more like a source problem than configuration? |
Any updates on this? I'm curious whether Nix now works on FreeBSD again. |
@kini i haven't tried again since reporting this. have you? for all we know it could work now :-) (given that there are new versions of FreeBSD and nix available now) |
I believe that using gcc instead of clang should work (as a work-around). |
@edolstra are there plans to bring back the FreeBSD machine? |
@iElectric Not really. The FreeBSD VMs are unreachable since we had to turn off IPv6 in the build farm. And in any case, they're probably out-dated. |
thanks for the updates @iElectric and @edolstra as the person who created the issue in the first place i'm taking the liberty of closing it if there are no imminent plans for supporting FreeBSD. while i'm interested in principle i just don't have the time to setup a build environment for this or conduct any further tests of my own. i guess i'l just stick to |
I tried to compile nix 1.7 from tarball (as the installer script explicitly does not support FreeBSD, eventhough the nix homepage claims otherwise.
I installed the following packages in a FreeBSD 10 jail:
and the following perl modules:
This allowed
./configure
to run through. yay!however, running
make
yields the following::After manually removing the offending option (is it required?) in
mk/lib.mk
:eventhough the library has been installed:
any idea what needs to be done?
what is the state of FreeBSD support?
The text was updated successfully, but these errors were encountered: