Discussion:
[GCC-XML] 0.9 tag in github
Michka Popoff
2013-05-22 21:16:28 UTC
Permalink
Hi

I am currently developing a formula for the homebrew package manager (https://github.com/Homebrew/homebrew-headonly/pull/10), which will let people install gccxml easily on OS X. (Here are some informations on homebrew if you don't know it : http://mxcl.github.io/homebrew/).The ultimate goal is to propose an ITK formula, simplifying the installation on OS X (one line install, no need to know anything about cmake). To be able to install ITK with python wrapping, gccxml is needed.


For the moment the last tag on github for gccxml is 0.6., but the version you get is 0.9 when installing from head. So I was wondering if there is a shift in version numbers or missing tags in git ? If there is missing tags, would it be possible to add the tag for 0.9 ? This seems confusing.

Secondly, the latest commits correcting the compilation with clang work nicely. I don't know if there is a plan to go to the next version for gccxml, so that we can have a stable version which compiles on OS X (and not a HEAD version).

Thank you in advance

Michka Popoff
Brad King
2013-05-23 12:43:32 UTC
Permalink
Post by Michka Popoff
I am currently developing a formula for the homebrew package manager (https://github.com/Homebrew/homebrew-headonly/pull/10), which will let people install gccxml easily on OS X. (Here are some informations on homebrew if you don't know it : http://mxcl.github.io/homebrew/).The ultimate goal is to propose an ITK formula, simplifying the installation on OS X (one line install, no need to know anything about cmake). To be able to install ITK with python wrapping, gccxml is needed.
Note that gccxml will need further work to *run* with Clang after
compiling. There is some discussion here:

https://github.com/gccxml/gccxml/pull/3
Post by Michka Popoff
For the moment the last tag on github for gccxml is 0.6., but the version you get is 0.9 when installing from head. So I was wondering if there is a shift in version numbers or missing tags in git ? If there is missing tags, would it be possible to add the tag for 0.9 ? This seems confusing.
Secondly, the latest commits correcting the compilation with clang work nicely. I don't know if there is a plan to go to the next version for gccxml, so that we can have a stable version which compiles on OS X (and not a HEAD version).
We don't maintain a series of numbered releases anymore, but 'master'
stays quite stable. Just manually choose a commit sha1 in the
"git log --first-parent" history behind master and package that.
Use a version number like "0.9.0.$date" where "$date" is the committer
date of the chosen commit in the format CCYYMMDD. For example:

$ git log -n 2 master --first-parent --format='%cd %H' --date=iso
2013-05-02 10:12:20 -0400 567213ac765c99d5dfd23b14000b3c7b76274fcb
2013-05-02 10:12:20 -0400 875b2c14f309fa254f531584a62c1bd01e84ce58

so you can package commit 567213ac as 0.9.0.20130502. The gccxml
Debian package uses a similar approach.

-Brad
Michka Popoff
2013-05-23 14:01:31 UTC
Permalink
Post by Brad King
Post by Michka Popoff
I am currently developing a formula for the homebrew package manager (https://github.com/Homebrew/homebrew-headonly/pull/10), which will let people install gccxml easily on OS X. (Here are some informations on homebrew if you don't know it : http://mxcl.github.io/homebrew/).The ultimate goal is to propose an ITK formula, simplifying the installation on OS X (one line install, no need to know anything about cmake). To be able to install ITK with python wrapping, gccxml is needed.
Note that gccxml will need further work to *run* with Clang after
https://github.com/gccxml/gccxml/pull/3
I saw this issue. But I was still able to compile gccxml and then to use it to compile ITK with python wrappings on OS X (without any trouble).
So "make test" is failing but I can still use gccxml ?
Post by Brad King
Post by Michka Popoff
For the moment the last tag on github for gccxml is 0.6., but the version you get is 0.9 when installing from head. So I was wondering if there is a shift in version numbers or missing tags in git ? If there is missing tags, would it be possible to add the tag for 0.9 ? This seems confusing.
Secondly, the latest commits correcting the compilation with clang work nicely. I don't know if there is a plan to go to the next version for gccxml, so that we can have a stable version which compiles on OS X (and not a HEAD version).
We don't maintain a series of numbered releases anymore, but 'master'
stays quite stable. Just manually choose a commit sha1 in the
"git log --first-parent" history behind master and package that.
Use a version number like "0.9.0.$date" where "$date" is the committer
$ git log -n 2 master --first-parent --format='%cd %H' --date=iso
2013-05-02 10:12:20 -0400 567213ac765c99d5dfd23b14000b3c7b76274fcb
2013-05-02 10:12:20 -0400 875b2c14f309fa254f531584a62c1bd01e84ce58
so you can package commit 567213ac as 0.9.0.20130502. The gccxml
Debian package uses a similar approach.
-Brad
I'll see what can be done in the homebrew package manager, I don't know how they are handling this specific situation. Should be no problem to have a stable download with this.
Thanks for the explanations

Michka Popoff
Brad King
2013-05-23 14:16:10 UTC
Permalink
Post by Brad King
Note that gccxml will need further work to *run* with Clang after
https://github.com/gccxml/gccxml/pull/3
I saw this issue. But I was still able to compile gccxml.
So "make test" is failing but I can still use gccxml ?
It is expected to work only with g++ installed. It will not
work against a clang compiler AFAIK. Currently gccxml will
*compile* with clang but not *run* with it as the argument
to --gccxml-compiler.

-Brad

Loading...