-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Unable to build on OSX #393
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
Comments
+1 |
I encountered this same problem. |
@JeffBezanson: looks like Femtolisp is getting a bit of a workout here too. |
This has been seen on some linuxes too. I strongly suspect it's due to using a different version of GCC. Some GCCs, erm, have a different interpretation of femtolisp's code... |
On OS X GCC is forever stuck at 4.2. You might try Clang, which is the favored compiler as of Xcode 4. |
@JeffBezanson Any suggestions to fix this ? |
Well, there's two issues: how to work around it, and how to fix it. For the work-around, it seems like using a different version of gcc or maybe clang should do the trick. This does work fine in every version of gcc or clang that I've tried, so it may even be a bug in a particular version of gcc. Can you post full gcc version info? For the fix, that's a little harder because Jeff doesn't have your version of gcc to reproduce with. |
It's a long shot, but the first thing I can think of to try, if you're willing, is to remove Other than that, this is probably quite subtle and I'd need to be able to reproduce the problem locally to work on it. |
For me (using OS X 10.7.2):
For what is worth, I got the same error with clang. @JeffBezanson I tried the first trick you suggested (using gcc), and it did get ahead, but now I get the following:
|
Maybe try |
I still have the same problem when removing |
Hmm, my mistake above, forgot to |
@dronir Yep, same thing here. |
After doing a |
@afriggeri, I am using the same gcc on OS X 10.7.3, and don't see any of these issues. This is really strange. I guess that @JeffBezanson needs to try it out on the machine where this fails. |
+1
|
Is this somehow a processor dependent issue? I have not seen this on Core 2 Duo (Macbook) or Core i5 (Macbook Pro), using the exact same environment. |
I have an i7 2.2GHz 4GB 1333MHz DDR3. With a matte screen. ;) |
I would have suggested |
|
Same error for me when using |
@JeffBezanson can you try an Intel core i7 box? I think there was someone on the mailing list also reporting the same error on linux. May be something relating to gcc and core i7 code generation that flisp is triggering. |
My Macbook is the late 2008 (first unibody) 2.0GHz Intel Core 2 Duo. |
I don't think I have access to a core i7. Just my core i5 and servers that are Xeon as far as the eye can see. |
@haarts: must be the matte screen. We don't support those. |
This is perplexing. :-( Can you build with -viral On 20-Feb-2012, at 12:35 PM, Olli Wilkman wrote:
|
|
May have to create the debug version of flisp, and load it into gdb to figure out what's going on. -viral On 20-Feb-2012, at 12:45 PM, Olli Wilkman wrote:
|
Another thing to try is using gcc 4.6 from hpc.sf.net, which is non-llvm. It is a clean tarball install so its easy to get rid of it. -viral On 20-Feb-2012, at 12:45 PM, Olli [email protected] wrote:
|
I just had a crazy idea: it thinks |
This is why locale-dependent behavior is evil. It will be crazy if this is the reason... |
I'm pretty sure this might be the case, my locale has the comma as decimal separator. Now if I could only figure out how to change it; changing the setting for number formats in System preferences/Language & Text did not affect it. |
Yep. I put the following in my .profile:
Everything works now, the build finishes without further problems and Julia runs nicely. |
QED: locale-dependent functions are the work of the devil. Jeff, I'm amazed that you managed to figure this out. |
Good call ! It corrected the problem for me too. Do you think it'll be possible to hardwire the locale into femtolisp ? (I'd like to keep my actual locale to its previous setting). Anyway, as a simple fix it works great. |
Setting both LC_ALL and LANG to C fixed the issue for me. This is the workaround you were looking for it seems. Only the fix is missing. |
This worked for me as well. |
I believe only LC_NUMERIC matters, because it's the one that defines the decimal separator. Setting it to any locale which uses a decimal point instead of a comma should be enough. |
Add support for multiarg InexactError, DomainError, OverflowError
This commit adds a new `test_runner.average_run_time` key to the `config.json` file. The purpose of this field is allow the website to show a progress bar while the test runner runs. The average run time is defined in seconds with one digit of precision. Its value has been populated by timing the execution time of running the test runner in Docker on one of the track's practice exercise. Clearly, the execution time will differ between exercises and between solutions, so this should be seen as a general indicator.
Hi there, greatly interested in Julia, but unable to compile on OSX 10.7.3. I managed to go past the issue with OpenBLAS, but I now have a problem at a further step :
The text was updated successfully, but these errors were encountered: