having issues with the latest version of OSX and Canopy. I need mpi4py and have never had a problem compiling it with previous operating systems. With 10.9 however, they seem to have moved from gcc to clang and I can't get mpi4py compiled for the life of me. It compiles fine in anaconda, but not with Canopy. Has anyone had any luck with this?
(Enthought Support here)
The latest version of XCode (version 5) that was released with OS X 10.9 Mavericks has removed support for gcc, such that gcc is no longer actually the GNU Compiler Collection, but is symlinked to the clang compiler.
Users still hoping to access a C compiler for their projects, such as in building C-extensions using Cython, should generally not run into any problems in using the symlinked gcc (or directly using clang), as clang uses the same LLVM backend and libraries as Apple's previous gcc compiler.
However, if you are building a C++ library (via clang++) that you will later link with a Python extension, or if you are building a Python extension that uses a C++ library, you need to use the older libraries (libstdc++, and not the clang++ default of libc++) via these compiler/linker flags: -stlib=libstdc++ -mmacosx-version-min=10.6
As it may be preferable for some users, it is still possible to install and use Xcode 4.6.3 on an OSX 10.9, but note that these developer tools do not include the 10.9 SDK.
This information can also be found in our Knowledge Base: https://support.enthought.com/entries/26184115-GCC-Clang-and-Cython-in-OS-X-10-9-Mavericks
Related
When submitting a package to CRAN, how can one get the resulting binaries for Windows and Mac OSX to take advantage of OpenMP?
i.e., what make or compiler hooks do the CRAN machines look for to build for OpenMP code?
Unix source
R has good OpenMP support under unix. Just include the ifdef _OPENMP. (users must download package source and compile packages on their machine).
OS X binaries
Since mid-2018, R for OS X is compiled using clang, with a custom clang giving OpenMP support. Binary packages which take advantage of OpenMP (e.g. OpenMx) run in parallel. Source compilation is eased by the compiler installer provided at CRAN toolshttps://cran.r-project.org/bin/macosx/tools/clang-6.0.0.pkg
Using other non-CRAN compilers (e.g. homebrew) is strongly advised against.
Windows binaries
As of 2019, the windows toolchain supports OpenMP and pthreads, but it's slow and not enabled by default. Comments indicate this might change.
Refs
https://cran.r-project.org/doc/manuals/R-exts.html#OpenMP-support
As of R 3.5.3 manual:
Apple builds of clang on macOS currently have no OpenMP support, but
CRAN binary packages are built with a clang-based toolchain which
supports OpenMP.
http://www.openmp.org/resources/openmp-compilers-tools gives some idea
of what compilers support what versions.
Source-based installs of CRAN packages for most MacOS users will fail and/or not have openmp, unless they have installed, e.g. via homebrew, clang with openmp support. The method for doing evolves, so search for recent posts with terms like "homebrew clang openmp makevars R CRAN".
I just installed Qt 5.2 package on ubuntu. I simply created a Qt widget application, and when I tried to build it, I got the following message:
Qt Creator needs a compiler set up to build. Configure a compiler in
kit options
I have tried several things, all of which were unsuccessful. I tried setting the compiler kit to
Desktop Qt 5.2.0 GCC 32bit (default)
However it didn't work
After that I set the compiler to
GCC (x86 32bit in use/bin)
However that didn't work either.
I also tried adding gcc manually and gave it the path
/usr/bin/g++-4.6
but it still didn't work.
This is what appears in there Qt Version tab
This is what I get when I remove the .pro.user file and restart the IDE, Whats the difference between configuring a project as Desktop and Desktop Qt 5.2.0 GCC 32bit?
Qt Creator needs a version of tools that are able to link against the Qt binaries that the downloaded package contains. In your case, the local toolchain and the binaries don't match. That means that you would actually have to build the Qt with your toolkit and make sure that QtCreator can find the built binaries.
The simpler way for Ubuntu is to use the packaged version of the tools; they play well with the already delivered binaries. Use sudo apt-get install qtcreator to install it with all the dependencies.
Is there is a way to build q5 projects under FreeBSD console? I have found only qt4 in ports.
Some effort has been made for that. The compiler requirement is GCC 4.6. There's also some discussion about Qt5 and BSD on Qt Project website. They say the X11 version is compatible with BSD, but you must compile it from source.
I've had some difficulty trying to obtain a working Ada compiler.
I had been attempting to install avr-ada on a Windows system. I've asked questions and been provided some good suggestions, but not quite there yet.
I've since tried to install and use GNAT on a Mint Linux system, but I keep getting stuck.
I've downloaded and installed gcc-4.8.0.
Installed ok.
I then want to build the GNAT Ada compiler, but the manual is not exactly useful.
Every time I try to find installation instruction for GNAT, I find nothing of immediate use.
For example the details I have found state:
"Building the Ada compiler has special requirements, see below"
But do not appear to have any content for how do build the Ada compiler anywhere.
Any ideas?
You could try your hand at my Slackware guide.
Just install VirtualBox on your Windows box and give Slackware a whirl in a VM. Actually if you don't want/need all the AdaCore stuff, Slackware comes with FSF GNAT out of the box. You don't really have to do anyting except call gnatmake to build your stuff.
But honestly, it's not that complicated to get GNAT GPL and the AdaCore projects up and running on Slackware.
For Debian (if you don't want to use the default Debian Ada packages) you could try the makefile done by Kim Rostgaard Christensen.
As I understand it, Mint is based on Ubuntu, which is based on Debian - so you should be able to install the package gnat; it'll probably be GCC 4.6.
I'm not sure whether you need 4.8.0? If so, or of course if you can't install gnat, you'll need to build it (or to wait until it reaches Debian/Ubuntu/Mint, which could be a while). GCC 4.6 (with Ada support) should be OK for this, or you could install AdaCore's Libre version. I know that GNAT GPL 2012 will build GCC 4.8.0 on Mac OS X; I wrote up building GCC from SVN using GNAT GPL 2011 here, and building GCC 4.8.0 here.
I'm currently trying to install gtk3 on scientific linux (It is not available on official repositories)
I'm well used to yum, apt, pacman etc but i'm a little lost here when it's about compiling ...
to install gtk3, i need glib, to install glib, i need pcre 8.32.
I thus downloaded the tarball from their site.
Once 'untarred', i followed what is written on that link :
http://www.linuxfromscratch.org/blfs/view/svn/general/pcre.html
but once i've made './configure' with its options, 'make', and then 'make install' glib doesn't configure any better... it says my version is still the old version
configure: error: Package requirements (libpcre >= 8.13) were not met:
Requested 'libpcre >= 8.13' but version of libpcre is 7.8
The files seems to be well compiled but not 'moved correctly to the right place' ...
Did i miss something ?
By the way moving to another distro is not an option :P