[Buildroot] Fwd: Fwd: how to assign cpp and c++ in buildroot?

cem akpolat akpolatcem at gmail.com
Tue May 20 13:29:51 UTC 2014


Hi Thomas,

the line starting wirh @@@@


akpolat at akpolatX240:~/mysvn/buildroot$ make
package/Makefile.in:211: @@@@@@@ TARGET_CPP
value='/home/akpolat/mysvn/buildroot/output/host/usr/bin/i586-buildroot-linux-uclibc-cpp'
origin='file'


You may have to install 'g++' on your build machine
>>> host-m4 1.4.17 Configuring
(cd /home/akpolat/mysvn/buildroot/output/build/host-m4-1.4.17/ && rm -rf
config.cache;
PATH=/home/akpolat/mysvn/buildroot/output/host/bin:/home/akpolat/mysvn/buildroot/output/host/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
AR="/usr/bin/ar" AS="/usr/bin/as" LD="/usr/bin/ld" NM="/usr/bin/nm"
CC="/usr/bin/gcc" GCC="/usr/bin/gcc" CXX="g++" CPP="cpp"
OBJCOPY="/usr/bin/objcopy" RANLIB="/usr/bin/ranlib"
CPPFLAGS="-I/home/akpolat/mysvn/buildroot/output/host/usr/include"
CFLAGS="-O2 -I/home/akpolat/mysvn/buildroot/output/host/usr/include"
CXXFLAGS="-O2 -I/home/akpolat/mysvn/buildroot/output/host/usr/include"
LDFLAGS="-L/home/akpolat/mysvn/buildroot/output/host/lib
-L/home/akpolat/mysvn/buildroot/output/host/usr/lib
-Wl,-rpath,/home/akpolat/mysvn/buildroot/output/host/usr/lib"
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
PKG_CONFIG="/home/akpolat/mysvn/buildroot/output/host/usr/bin/pkg-config"
PKG_CONFIG_SYSROOT_DIR="/"
PKG_CONFIG_LIBDIR="/home/akpolat/mysvn/buildroot/output/host/usr/lib/pkgconfig:/home/akpolat/mysvn/buildroot/output/host/usr/share/pkgconfig"
LD_LIBRARY_PATH="/home/akpolat/mysvn/buildroot/output/host/usr/lib:"
CFLAGS="-O2 -I/home/akpolat/mysvn/buildroot/output/host/usr/include"
LDFLAGS="-L/home/akpolat/mysvn/buildroot/output/host/lib
-L/home/akpolat/mysvn/buildroot/output/host/usr/lib
-Wl,-rpath,/home/akpolat/mysvn/buildroot/output/host/usr/lib"  ./configure
--prefix="/home/akpolat/mysvn/buildroot/output/host/usr"
--sysconfdir="/home/akpolat/mysvn/buildroot/output/host/etc"
--enable-shared --disable-static --disable-gtk-doc --disable-doc
--disable-docs --disable-documentation --with-xmlto=no --with-fop=no
 --disable-static )
configure: WARNING: unrecognized options: --enable-shared,
--disable-static, --disable-gtk-doc, --disable-doc, --disable-docs,
--disable-documentation, --with-xmlto, --with-fop, --disable-static
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... /usr/bin/gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ISO C89... none needed
checking whether /usr/bin/gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of /usr/bin/gcc... gcc3
checking how to run the C preprocessor... cpp
configure: error: in
`/home/akpolat/mysvn/buildroot/output/build/host-m4-1.4.17':
configure: error: C preprocessor "cpp" fails sanity check
See `config.log' for more details
make: ***
[/home/akpolat/mysvn/buildroot/output/build/host-m4-1.4.17/.stamp_configured]
Error 1
akpolat at akpolatX240:~/mysvn/buildroot$
akpolat at akpolatX240:~/mysvn/buildroot$


config.log file is attached.

Thanks,

cem

Cem Akpolat


On Tue, May 20, 2014 at 3:14 PM, Thomas De Schampheleire <
patrickdepinguin at gmail.com> wrote:

> Hi Cem,
>
> On Tue, May 20, 2014 at 3:09 PM, cem akpolat <akpolatcem at gmail.com> wrote:
> > Ok I added also the TARGET_CPP line and build it again. the first two
> > parameters are returning null, and grep result
> >
> > package/Makefile.in:110:TARGET_CPPFLAGS += -D_LARGEFILE_SOURCE
> > -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
> > package/Makefile.in:113:TARGET_CFLAGS = $(TARGET_CPPFLAGS) $(TARGET_ABI)
> > $(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING)
> > package/Makefile.in:154:TARGET_CPP      = $(TARGET_CROSS)cpp
> > package/Makefile.in:211:$(warning @@@@@@@ TARGET_CPP
> value='$(TARGET_CPP)'
> > origin='$(origin TARGET_CPP)')
> > package/Makefile.in:220: CPP="$(TARGET_CPP)"\
> > package/Makefile.in:242: CPPFLAGS="$(TARGET_CPPFLAGS)" \
> >
> >
> > Now , I am receiving another error from another program. c++ and c
> indicates
> > host g++.
>
> Early in this make output, there should be a line starting with @@@@
> with some output, could you send it?
>
> >
> >
> >>>> host-m4 1.4.17 Patching
> >>>> host-m4 1.4.17 Updating config.sub and config.guess
> > for file in config.guess config.sub; do for i in $(find
> > /home/akpolat/mysvn/buildroot/output/build/host-m4-1.4.17 -name $file);
> do
> > cp support/gnuconfig/$file $i; done; done
> >>>> host-m4 1.4.17 Patching libtool
> >>>> host-m4 1.4.17 Configuring
> > (cd /home/akpolat/mysvn/buildroot/output/build/host-m4-1.4.17/ && rm -rf
> > config.cache;
> >
> PATH=/home/akpolat/mysvn/buildroot/output/host/bin:/home/akpolat/mysvn/buildroot/output/host/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
> > AR="/usr/bin/ar" AS="/usr/bin/as" LD="/usr/bin/ld" NM="/usr/bin/nm"
> > CC="/usr/bin/gcc" GCC="/usr/bin/gcc" CXX="g++" CPP="cpp"
> > OBJCOPY="/usr/bin/objcopy" RANLIB="/usr/bin/ranlib"
> > CPPFLAGS="-I/home/akpolat/mysvn/buildroot/output/host/usr/include"
> > CFLAGS="-O2 -I/home/akpolat/mysvn/buildroot/output/host/usr/include"
> > CXXFLAGS="-O2 -I/home/akpolat/mysvn/buildroot/output/host/usr/include"
> > LDFLAGS="-L/home/akpolat/mysvn/buildroot/output/host/lib
> > -L/home/akpolat/mysvn/buildroot/output/host/usr/lib
> > -Wl,-rpath,/home/akpolat/mysvn/buildroot/output/host/usr/lib"
> > PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
> > PKG_CONFIG="/home/akpolat/mysvn/buildroot/output/host/usr/bin/pkg-config"
> > PKG_CONFIG_SYSROOT_DIR="/"
> >
> PKG_CONFIG_LIBDIR="/home/akpolat/mysvn/buildroot/output/host/usr/lib/pkgconfig:/home/akpolat/mysvn/buildroot/output/host/usr/share/pkgconfig"
> > LD_LIBRARY_PATH="/home/akpolat/mysvn/buildroot/output/host/usr/lib:"
> > CFLAGS="-O2 -I/home/akpolat/mysvn/buildroot/output/host/usr/include"
> > LDFLAGS="-L/home/akpolat/mysvn/buildroot/output/host/lib
> > -L/home/akpolat/mysvn/buildroot/output/host/usr/lib
> > -Wl,-rpath,/home/akpolat/mysvn/buildroot/output/host/usr/lib"
>  ./configure
> > --prefix="/home/akpolat/mysvn/buildroot/output/host/usr"
> > --sysconfdir="/home/akpolat/mysvn/buildroot/output/host/etc"
> --enable-shared
> > --disable-static --disable-gtk-doc --disable-doc --disable-docs
> > --disable-documentation --with-xmlto=no --with-fop=no  --disable-static )
> > configure: WARNING: unrecognized options: --enable-shared,
> --disable-static,
> > --disable-gtk-doc, --disable-doc, --disable-docs,
> --disable-documentation,
> > --with-xmlto, --with-fop, --disable-static
> > checking for a BSD-compatible install... /usr/bin/install -c
> > checking whether build environment is sane... yes
> > checking for a thread-safe mkdir -p... /bin/mkdir -p
> > checking for gawk... gawk
> > checking whether make sets $(MAKE)... yes
> > checking whether make supports nested variables... yes
> > checking for gcc... /usr/bin/gcc
> > checking whether the C compiler works... yes
> > checking for C compiler default output file name... a.out
> > checking for suffix of executables...
> > checking whether we are cross compiling... no
> > checking for suffix of object files... o
> > checking whether we are using the GNU C compiler... yes
> > checking whether /usr/bin/gcc accepts -g... yes
> > checking for /usr/bin/gcc option to accept ISO C89... none needed
> > checking whether /usr/bin/gcc understands -c and -o together... yes
> > checking for style of include used by make... GNU
> > checking dependency style of /usr/bin/gcc... gcc3
> > checking how to run the C preprocessor... cpp
> > configure: error: in
> > `/home/akpolat/mysvn/buildroot/output/build/host-m4-1.4.17':
> > configure: error: C preprocessor "cpp" fails sanity check
> > See `config.log' for more details
> > make: ***
> >
> [/home/akpolat/mysvn/buildroot/output/build/host-m4-1.4.17/.stamp_configured]
> > Error 1
> >
>
> Could you send
> /home/akpolat/mysvn/buildroot/output/build/host-m4-1.4.17/config.log
> in attachment?
>
> Thanks,
> Thomas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140520/c67a2cda/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 33859 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140520/c67a2cda/attachment-0002.bin>


More information about the buildroot mailing list