Re: OS X 10.10 build problems w/ typegen

Ruben Smits <[email protected]> Wed, 4 Mar 2015 13:12:52 +0100
Newsgroups gmane.science.robotics.orocos.devel
Message-ID <CAN8PhbmqHtRoM9ikjo=ke2q7D7E0i5yYkp5Pv46HCM8TdkSz-A@mail.gmail.com>
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 <[email protected]>
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
> [email protected]
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev
>
>


-- 
Ruben Smits, Roboticist - Founder
+32 479 511 786
Intermodalics - Kapeldreef 60, 3001 Heverlee - BELGIUM
www.intermodalics.eu

-- 
Orocos-Dev mailing list
[email protected]
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev