OS X 10.10 build problems w/ typegen

gccxml is not supported in MacPorts currently, due to a problem in gcc 4.2. The gcc problem has been out there for a little while, so I’m not confident that a solution will appear there soon.

https://trac.macports.org/ticket/45449

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63810

I think that I heard some traffic on changing gccxml support within Orogen/Typegen. I’m just wondering whether any of the Orogen/Typegen developers could way in on any plans that they might have here? Are there any other options for having typegen work that don’t involve either gccxml, or having it depend on gcc 4.2?

Cheers
S

OS X 10.10 build problems w/ typegen

As Janosch said, the clang version is in devel. He and marvin2k did already
most of the hard work on the typelib/clang side. We're discussing a few
changes on how the integration should be done on orogen mostly. No ETA on
its arrival in master yet, though, but I hope it will be single-digit
weeks.

Have you checked if gcc xml can be installed with brew?

In addition, I doubt that Ubuntu and Debian build gcc xml with gcc4.2. I
saw some reports of gcc xml falling to build with clang, but can you try to
update the ports definition to build with whatever recent gcc is available
on (I assume) Yosemite?

Sylvain

Ruben Smits's picture

OS X 10.10 build problems w/ typegen

Hi Sylvain, all,

I tried this in the meantime but I can only build gccxml with gcc 4.2 or
clang, all other versions of gcc that macports provide result in a compile
error like:

:info:configure -- Searching 16 bit integer

:info:configure -- Looking for stddef.h

:info:configure -- Looking for stddef.h - not found

:info:configure -- Check size of unsigned short

:info:configure -- Check size of unsigned short - failed

:info:configure -- Check size of unsigned int

:info:configure -- Check size of unsigned int - failed

:info:configure -- Check size of unsigned long

:info:configure -- Check size of unsigned long - failed

:info:configure CMake Error at
/opt/local/share/cmake-3.1/Modules/TestBigEndian.cmake:51 (message):

:info:configure no suitable type found

:info:configure Call Stack (most recent call first):

:info:configure GCC/config_cmake/CMakeLists.txt:158 (TEST_BIG_ENDIAN)

:info:configure

:info:configure

:info:configure -- Configuring incomplete, errors occurred!

If I compiled with clang I cannot let it use one of the gcc compilers:

export GCCXML_COMPILER=g++-mp-4.3 (tried various mp versions)

gccxml Structs.hpp

cc1plus: error: unrecognized command line option "-stdlib=libc++"

error: could not identify compiler via -E preprocessing

Support item
ERROR_unsupported_compiler_in_gxConfiguration_GetCompilerId/find_flags is
not available:

checked
"/opt/local/share/gccxml-0.9/ERROR_unsupported_compiler_in_gxConfiguration_GetCompilerId/find_flags"

Could not determine GCCXML_FLAGS setting.

Does anyone have orogen/typegen working with gccxml on a OSX 10.10 system?
If so, could you please share how you did it?

Is the clang version ready for testing? I would be happy to try it on my
setup (Ubuntu 14.04, Mint 17, OSX 10.9 and 10.10).

Regards,

Ruben

On Sun, Jan 25, 2015 at 12:51 PM, Sylvain Joyeux <sylvain [dot] joyeux [..] ...>
wrote:

> As Janosch said, the clang version is in devel. He and marvin2k did
> already most of the hard work on the typelib/clang side. We're discussing a
> few changes on how the integration should be done on orogen mostly. No ETA
> on its arrival in master yet, though, but I hope it will be single-digit
> weeks.
>
> Have you checked if gcc xml can be installed with brew?
>
> In addition, I doubt that Ubuntu and Debian build gcc xml with gcc4.2. I
> saw some reports of gcc xml falling to build with clang, but can you try to
> update the ports definition to build with whatever recent gcc is available
> on (I assume) Yosemite?
>
> Sylvain
>
> --
> Orocos-Dev mailing list
> Orocos-Dev [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev
>
>

OS X 10.10 build problems w/ typegen

There is a clang version in development :
https://github.com/marvin2k/clang-package_set
Greetings
Janosch

Am 24.01.2015 um 19:06 schrieb S Roderick:
> gccxml is not supported in MacPorts currently, due to a problem in gcc
> 4.2. The gcc problem has been out there for a little while, so I’m not
> confident that a solution will appear there soon.
>
> https://trac.macports.org/ticket/45449
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63810
>
> I think that I heard some traffic on changing gccxml support within
> Orogen/Typegen. I’m just wondering whether any of the Orogen/Typegen
> developers could way in on any plans that they might have here? Are
> there any other options for having typegen work that don’t involve
> either gccxml, or having it depend on gcc 4.2?
>
> Cheers
> S
>
>