Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#25398 - C++complier can't work in makepkg configure stage but work outside
Attached to Project:
Arch Linux
Opened by Lightning (sgsdxzy) - Thursday, 04 August 2011, 13:12 GMT
Last edited by Ionut Biru (wonder) - Friday, 05 August 2011, 10:06 GMT
Opened by Lightning (sgsdxzy) - Thursday, 04 August 2011, 13:12 GMT
Last edited by Ionut Biru (wonder) - Friday, 05 August 2011, 10:06 GMT
|
DetailsDescription:
Some c++ programs(in fact, almost every for me) can't be configured using makepkg. Running intltoolize autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf --force autoreconf: configure.ac: not using Autoheader autoreconf: running: automake --add-missing --copy --force-missing configure.ac:7: installing `./config.guess' configure.ac:7: installing `./config.sub' configure.ac:16: installing `./install-sh' configure.ac:16: installing `./missing' src/Makefile.am: installing `./depcomp' Makefile.am: installing `./INSTALL' autoreconf: Leaving directory `.' checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /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 for g++... g++ checking whether the C++ compiler works... no configure: error: in `/home/sgsdxzy/aur-desmume-svn/src/desmume-build': configure: error: C++ compiler cannot create executables See `config.log' for more details ==> ERROR: A failure occurred in build(). Aborting... However, if I mannually configure them(cd into /src and run ./configure or cmake for some programs) sgsdxzy ~/aur-desmume-svn/src/desmume-build $ ./configure checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /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 for g++... g++ 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 g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking for ranlib... ranlib checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking whether NLS is requested... yes checking for intltool-update... /usr/bin/intltool-update checking for intltool-merge... /usr/bin/intltool-merge checking for intltool-extract... /usr/bin/intltool-extract checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for perl... /usr/bin/perl checking for perl >= 5.8.1... 5.14.1 checking for XML::Parser... ok checking for gzopen in -lz... yes checking for zzip_open in -lzzip... no checking for sdl-config... /usr/bin/sdl-config checking GL/gl.h usability... yes checking GL/gl.h presence... yes checking for GL/gl.h... yes checking GL/glu.h usability... yes checking GL/glu.h presence... yes checking for GL/glu.h... yes checking for main in -ldl... yes checking for main in -lGL... yes checking for main in -lOSMesa... no checking for pkg-config... pkg-config checking for GLIB... yes checking for GTK... yes checking for GTKGLEXT... yes checking for GTHREAD... yes checking for LIBGLADE... yes checking for LUA... no checking for LUA... no checking for ALSA... yes checking for LIBAGG... yes checking for LIBSOUNDTOUCH... no checking for update-desktop-database... /usr/bin/update-desktop-database configure: WARNING: SoundTouch library not found, pcsx2 resampler will be disabled checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking for LC_MESSAGES... yes checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking for ngettext in libc... yes checking for dgettext in libc... yes checking for bind_textdomain_codeset... yes checking for msgfmt... (cached) /usr/bin/msgfmt checking for dcgettext... yes checking if msgfmt accepts -c... yes checking for gmsgfmt... (cached) /usr/bin/msgfmt checking for xgettext... (cached) /usr/bin/xgettext checking for catalogs to be installed... fr nb pt_BR sv zh_CN zh_TW checking whether to enable maintainer-specific portions of Makefiles... no configure: creating ./config.status config.status: creating Makefile config.status: creating po/Makefile.in config.status: creating src/Makefile config.status: creating src/cli/Makefile config.status: creating src/cli/doc/Makefile config.status: creating src/cocoa/Makefile config.status: creating src/gtk/Makefile config.status: creating src/gtk/doc/Makefile config.status: creating src/gtk-glade/Makefile config.status: creating src/gtk-glade/doc/Makefile config.status: creating src/wx/Makefile config.status: creating src/gdbstub/Makefile config.status: creating autopackage/default.apspec config.status: executing depfiles commands config.status: executing default-1 commands config.status: executing po/stamp-it commands It runs smoothly. Then I comment all the line before "make" in PKGBUILD, run makepkg, makepkg works well and generate a perfect tar.xz file. So it's just the problem: configure under makepkg can't detect proper c++ complier. It won't affect my computer because I can mannually configure them, but it's awful that I have to stop half-way in the process of makepkg. I can list 3 packages below: Dolphin-emu-svn Desmume-svn fbterm I just wonder why. Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: |
This task depends upon
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="{CFLAGS}"
I forgot a $ before {CFLAGS}.
Now it works fine.
Thank you very much. Sorry for troubling you.