[odb-users] Cross-compiling issue with ODB source code
zwmosquito at 126.com
Tue Jan 3 02:46:11 EST 2017
Thank you for saving me from the headless searching and trying!
I didn't know there're so many choices for me until learning from your suggestions.
>One thing you could try is use GCC from the official ODB package for RH
>to build a newer ODB compiler directly on RH.
I prefer this one, because ODB source and official ODB package ( it points to odb-2.4.0-x86_64-linux-gnu.tar.bz2, right? ) I have both of them on RH server.
After simple tries, the ODB compile is built successfully on RH, and it could work as expect. Thanks again for your great help!
I paste the configure commands that I used, in case somebody else who falling into the same trouble need it:
1. untar official ODB package
tar jvxf odb-2.4.0-x86_64-linux-gnu.tar.bz2 -C /tmp/
2. untar odb source
tar jvxf odb-2.4.0.tar.bz2 -C /tmp/
3. mkdir -p /tmp/odb-2.4.0/build && cd /tmp/odb-2.4.0/build
CC=/tmp/odb-2.4.0-x86_64-linux-gnu/lib/odb/x86_64-linux-gnu/bin/gcc CXX=/tmp/odb-2.4.0-x86_64-linux-gnu/lib/odb/x86_64-linux-gnu/bin/g++ CXXFLAGS=-I/tmp/odb-2.4.0-x86_64-linux-gnu/include/ LDFLAGS="-L/tmp/odb-2.4.0-x86_64-linux-gnu/lib -Wl,-rpath,/tmp/odb-2.4.0-x86_64-linux-gnu/lib/odb/x86_64-linux-gnu/lib/" ../configure --with-sysroot=/tmp/odb-2.4.0-x86_64-linux-gnu --prefix=/tmp/odb-2.4.0-x86_64-linux-gnu/
5. make && make install
More information about the odb-users