Hello bardo! I've spent more time with it too! The problem is, it tries to build with that C(XX)FLAGS, which is in your /etc/makepkg.conf! It can be a hack, but works for me. Set the CXXFLAGS="" && CFLAGS="" for the building session, and can be built well. Hope this helps Sincerelly, Laszlo Papp 2009/7/11 bardo <ilbardo@gmail.com>
2009/7/9 Allan McRae <allan@archlinux.org>:
You do not need a gcc-libs-avr as the whole puropse of you package is to privide the compiler. gcc-libs was split so people did not need the compiler on their system.
Great, that's what i suspected but I wasn't sure.
If you post some details about the build failure you are having, I may be able to help.
The build fails (in a clean chroot) on libgcc's configure:
----- Checking multilib configuration for libgcc... mkdir -p -- avr/libgcc Configuring in avr/libgcc configure: creating cache ./config.cache checking for --enable-version-specific-runtime-libs... no checking for a BSD-compatible install... /bin/install -c checking for gawk... gawk checking build system type... i686-pc-linux-gnu checking host system type... avr-unknown-none checking for avr-ar... avr-ar checking for avr-lipo... avr-lipo checking for avr-nm... /build/src/gcc-4.4.0/build/./gcc/nm checking for avr-ranlib... avr-ranlib checking for avr-strip... avr-strip checking whether ln -s works... yes checking for avr-gcc... /build/src/gcc-4.4.0/build/./gcc/xgcc -B/build/src/gcc-4.4.0/build/./gcc/ -B/usr/avr/bin/ -B/usr/avr/lib/ -isystem /usr/avr/include -isystem /usr/avr/sys-include checking for suffix of object files... configure: error: in `/build/src/gcc-4.4.0/build/avr/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[1]: *** [configure-target-libgcc] Error 1 make[1]: Leaving directory `/build/src/gcc-4.4.0/build' make: *** [all] Error 2 ==> ERROR: Build Failed. -----
Here's the config.log: http://pastebin.com/m2c4de4d2 Here's my gcc-avr PKGBUILD: http://pastebin.com/m7ed5e45c Here's binutils-avr build files: http://www.bardland.org/files/binutils-avr-2.19.1-1.src.tar.gz
The build is successful outside makepkg, and the problem seems to be path-related.
Thanks for any help, Corrado