You are not logged in.
Pages: 1
Hi guys. I'm new here, but not new to arch, and this is my first post. I'm here because I have a problem that I can't seem to solve after weeks of searching, and I'm very frustrated. Simply put I cant compile any packages with makepkg, and I've determined the problem to be most closely related to the fact that make is passing the wrong arguments to gcc. When I try to compile 'libdesktop-agnostic' here is my output...
[tevin@APACHE libdesktop-agnostic]$ makepkg
==> Making package: libdesktop-agnostic 0.3.92-3 (Sun Oct 21 14:22:03 PDT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Found libdesktop-agnostic-0.3.92.tar.gz
==> Validating source files with md5sums...
libdesktop-agnostic-0.3.92.tar.gz ... Passed
==> Extracting Sources...
-> Extracting libdesktop-agnostic-0.3.92.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Starting build()...
Configuring libdesktop-agnostic 0.3.92
Checking for program gcc : ok /usr/bin/gcc
Checking for program cpp : ok /usr/bin/cpp
Checking for program ar : ok /usr/bin/ar
Checking for program ranlib : ok /usr/bin/ranlib
Checking for gcc : ok
Checking for program msgfmt : ok /usr/bin/msgfmt
Checking for program intltool-merge : ok /usr/bin/intltool-merge
Checking for header locale.h : not found
Checking for program python : ok /usr/bin/python2
Checking for program valac : ok /usr/bin/valac
Checking for gthread-2.0 : ok
Checking for program version valac >= 0.1.6 : ok 0.16.1
Checking for gmodule-2.0 >= 2.6.0 : ok
Checking for glib-2.0 >= 2.10.0 : ok
Checking for gobject-2.0 >= 2.12.0 : ok
Checking for library m : not found
Checking for gdk-2.0 >= 2.12.0 : ok
Checking for gtk+-2.0 >= 2.12.0 : ok
Checking for glib-2.0 >= 2.14.0 : ok
Checking for gconf-2.0 : ok
Checking for gio-2.0 >= 2.16.0 : ok
Checking for gio-unix-2.0 >= 2.18.0 : ok
Checking for gobject-introspection-1.0 >= 0.6.3 : ok
Checking for Python version : 2.7.3
Checking for library python2.7 : not found
Checking for library python2.7 : not found
Checking for library python27 : not found
Checking for program python2.7-config : ok /usr/bin/python2.7-config
Checking for header Python.h : Could not find the python development headers
error: the configuration failed (see '/home/tevin/Desktop/libdesktop-agnostic/src/libdesktop-agnostic-0.3.92/build/config.log')
==> ERROR: A failure occurred in build().
Aborting...and my config log.
# project libdesktop-agnostic (0.3.92) configured on Sun Oct 21 14:22:03 2012 by
# waf 1.5.8 (abi 7, python 20703f0 on linux2)
# using ./waf configure --prefix=/usr --sysconfdir=/etc --config-backends=gconf,keyfile --vfs-backends=gio --desktop-entry-backends=gio,glib
#
Checking for program gcc
find program='gcc' paths=[] var='CC' -> '/usr/bin/gcc'
Checking for program cpp
find program='cpp' paths=[] var='CPP' -> '/usr/bin/cpp'
Checking for program ar
find program='ar' paths=[] var='AR' -> '/usr/bin/ar'
Checking for program ranlib
find program='ranlib' paths=[] var='RANLIB' -> '/usr/bin/ranlib'
Checking for gcc
Checking for program msgfmt
find program='msgfmt' paths=[] var=None -> '/usr/bin/msgfmt'
Checking for program intltool-merge
find program='intltool-merge' paths=[] var='INTLTOOL' -> '/usr/bin/intltool-merge'
Checking for header locale.h
==>
#include <locale.h>
int main() {
return 0;
}
<==
[1/2] [32mcc: build/.conf_check_0/test.c -> build/.conf_check_0/testbuild/default/test_1.o
[0mgcc: error: unrecognized command line option '-02'
['/usr/bin/gcc', '-march=i686', '-02', '-pipe', '-m32', '../test.c', '-c', '-o', 'default/test_1.o']
command returned 'Traceback (most recent call last):\n File "/home/tevin/Desktop/libdesktop-agnostic/src/libdesktop-agnostic-0.3.92/.waf-1.5.8-c8cd776480bf49d9314284ce156067cc/wafadmin/Tools/config_c.py", line 345, in run_c_code\n bld.compile()\n File "/home/tevin/Desktop/libdesktop-agnostic/src/libdesktop-agnostic-0.3.92/.waf-1.5.8-c8cd776480bf49d9314284ce156067cc/wafadmin/Build.py", line 154, in compile\n raise BuildError(self,self.task_manager.tasks_done)\nBuildError: Build failed\n -> task failed (err #1): \n\t{task: cc test.c -> test_1.o}\n'Checking for program python
find program='python' paths=[] var='PYTHON' -> '/usr/bin/python2'
Checking for program valac
find program='valac' paths=[] var='VALAC' -> '/usr/bin/valac'
Checking for gthread-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs gthread-2.0
Checking for program version valac >= 0.1.6
Checking for gmodule-2.0 >= 2.6.0
pkg-config --errors-to-stdout --print-errors --atleast-version=2.6.0 gmodule-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs gmodule-2.0
Checking for glib-2.0 >= 2.10.0
pkg-config --errors-to-stdout --print-errors --atleast-version=2.10.0 glib-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs glib-2.0
Checking for gobject-2.0 >= 2.12.0
pkg-config --errors-to-stdout --print-errors --atleast-version=2.12.0 gobject-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs gobject-2.0
Checking for library m
==>
int main() {
return 0;
}
<==
[1/2] [32mcc: build/.conf_check_0/test.c -> build/.conf_check_0/testbuild/default/test_1.o
[0mgcc: error: unrecognized command line option '-02'
['/usr/bin/gcc', '-march=i686', '-02', '-pipe', '-m32', '../test.c', '-c', '-o', 'default/test_1.o']
command returned 'Traceback (most recent call last):\n File "/home/tevin/Desktop/libdesktop-agnostic/src/libdesktop-agnostic-0.3.92/.waf-1.5.8-c8cd776480bf49d9314284ce156067cc/wafadmin/Tools/config_c.py", line 345, in run_c_code\n bld.compile()\n File "/home/tevin/Desktop/libdesktop-agnostic/src/libdesktop-agnostic-0.3.92/.waf-1.5.8-c8cd776480bf49d9314284ce156067cc/wafadmin/Build.py", line 154, in compile\n raise BuildError(self,self.task_manager.tasks_done)\nBuildError: Build failed\n -> task failed (err #1): \n\t{task: cc test.c -> test_1.o}\n'Checking for gdk-2.0 >= 2.12.0
pkg-config --errors-to-stdout --print-errors --atleast-version=2.12.0 gdk-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs gdk-2.0
Checking for gtk+-2.0 >= 2.12.0
pkg-config --errors-to-stdout --print-errors --atleast-version=2.12.0 gtk+-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs gtk+-2.0
Checking for glib-2.0 >= 2.14.0
pkg-config --errors-to-stdout --print-errors --atleast-version=2.14.0 glib-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs glib-2.0
Checking for gconf-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs gconf-2.0
Checking for gio-2.0 >= 2.16.0
pkg-config --errors-to-stdout --print-errors --atleast-version=2.16.0 gio-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs gio-2.0
Checking for gio-unix-2.0 >= 2.18.0
pkg-config --errors-to-stdout --print-errors --atleast-version=2.18.0 gio-unix-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs gio-unix-2.0
Checking for gobject-introspection-1.0 >= 0.6.3
pkg-config --errors-to-stdout --print-errors --atleast-version=0.6.3 gobject-introspection-1.0
pkg-config --errors-to-stdout --print-errors --cflags --libs gobject-introspection-1.0
Checking for Python version
Configuration returned from '/usr/bin/python2':
python_prefix = '/usr'
python_SO = '.so'
python_SYSLIBS = '-lm'
python_LDFLAGS = '-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu'
python_SHLIBS = '-lpthread -ldl -lutil'
python_LIBDIR = '/usr/lib'
python_LIBPL = '/usr/lib/python2.7/config'
INCLUDEPY = '/usr/include/python2.7'
Py_ENABLE_SHARED = 1
MACOSX_DEPLOYMENT_TARGET = ''
# Trying LIBDIR: ['/usr/lib']
Checking for library python2.7
==>
int main() {
return 0;
}
<==
[1/2] [32mcc: build/.conf_check_0/test.c -> build/.conf_check_0/testbuild/default/test_1.o
[0mgcc: error: unrecognized command line option '-02'
['/usr/bin/gcc', '-march=i686', '-02', '-pipe', '-m32', '../test.c', '-c', '-o', 'default/test_1.o']
command returned 'Traceback (most recent call last):\n File "/home/tevin/Desktop/libdesktop-agnostic/src/libdesktop-agnostic-0.3.92/.waf-1.5.8-c8cd776480bf49d9314284ce156067cc/wafadmin/Tools/config_c.py", line 345, in run_c_code\n bld.compile()\n File "/home/tevin/Desktop/libdesktop-agnostic/src/libdesktop-agnostic-0.3.92/.waf-1.5.8-c8cd776480bf49d9314284ce156067cc/wafadmin/Build.py", line 154, in compile\n raise BuildError(self,self.task_manager.tasks_done)\nBuildError: Build failed\n -> task failed (err #1): \n\t{task: cc test.c -> test_1.o}\n'
# try again with -L$python_LIBPL (some systems don't install the python library in $prefix/lib)
Checking for library python2.7
==>
int main() {
return 0;
}
<==
[1/2] [32mcc: build/.conf_check_0/test.c -> build/.conf_check_0/testbuild/default/test_1.o
[0mgcc: error: unrecognized command line option '-02'
['/usr/bin/gcc', '-march=i686', '-02', '-pipe', '-m32', '../test.c', '-c', '-o', 'default/test_1.o']
command returned 'Traceback (most recent call last):\n File "/home/tevin/Desktop/libdesktop-agnostic/src/libdesktop-agnostic-0.3.92/.waf-1.5.8-c8cd776480bf49d9314284ce156067cc/wafadmin/Tools/config_c.py", line 345, in run_c_code\n bld.compile()\n File "/home/tevin/Desktop/libdesktop-agnostic/src/libdesktop-agnostic-0.3.92/.waf-1.5.8-c8cd776480bf49d9314284ce156067cc/wafadmin/Build.py", line 154, in compile\n raise BuildError(self,self.task_manager.tasks_done)\nBuildError: Build failed\n -> task failed (err #1): \n\t{task: cc test.c -> test_1.o}\n'
# try again with -L$prefix/libs, and pythonXY name rather than pythonX.Y (win32)
Checking for library python27
==>
int main() {
return 0;
}
<==
[1/2] [32mcc: build/.conf_check_0/test.c -> build/.conf_check_0/testbuild/default/test_1.o
[0mgcc: error: unrecognized command line option '-02'
['/usr/bin/gcc', '-march=i686', '-02', '-pipe', '-m32', '../test.c', '-c', '-o', 'default/test_1.o']
command returned 'Traceback (most recent call last):\n File "/home/tevin/Desktop/libdesktop-agnostic/src/libdesktop-agnostic-0.3.92/.waf-1.5.8-c8cd776480bf49d9314284ce156067cc/wafadmin/Tools/config_c.py", line 345, in run_c_code\n bld.compile()\n File "/home/tevin/Desktop/libdesktop-agnostic/src/libdesktop-agnostic-0.3.92/.waf-1.5.8-c8cd776480bf49d9314284ce156067cc/wafadmin/Build.py", line 154, in compile\n raise BuildError(self,self.task_manager.tasks_done)\nBuildError: Build failed\n -> task failed (err #1): \n\t{task: cc test.c -> test_1.o}\n'
### LIB NOT FOUND
Checking for program python2.7-config
find program='python2.7-config' paths=[] var='PYTHON_CONFIG' -> '/usr/bin/python2.7-config'
Include path for Python extensions (found via python-config --includes): ['/usr/include/python2.7']
Checking for header Python.h
==>
#ifdef __cplusplus
extern "C" {
#endif
void Py_Initialize(void);
void Py_Finalize(void);
#ifdef __cplusplus
}
#endif
int main()
{
Py_Initialize();
Py_Finalize();
return 0;
}
<==
[1/2] [32mcc: build/.conf_check_0/test.c -> build/.conf_check_0/testbuild/default/test_1.o
[0mgcc: error: unrecognized command line option '-02'
['/usr/bin/gcc', '-march=i686', '-02', '-pipe', '-m32', '-fno-strict-aliasing', '-I/usr/include/python2.7', '../test.c', '-c', '-o', 'default/test_1.o']
command returned 'Traceback (most recent call last):\n File "/home/tevin/Desktop/libdesktop-agnostic/src/libdesktop-agnostic-0.3.92/.waf-1.5.8-c8cd776480bf49d9314284ce156067cc/wafadmin/Tools/config_c.py", line 345, in run_c_code\n bld.compile()\n File "/home/tevin/Desktop/libdesktop-agnostic/src/libdesktop-agnostic-0.3.92/.waf-1.5.8-c8cd776480bf49d9314284ce156067cc/wafadmin/Build.py", line 154, in compile\n raise BuildError(self,self.task_manager.tasks_done)\nBuildError: Build failed\n -> task failed (err #1): \n\t{task: cc test.c -> test_1.o}\n'As you can see it's trying
/usr/bin/gcc', '-march=i686', '-02', '-pipe', '-m32', '../test.c', '-c', '-o', 'default/test_1.oit uses the option "02" in stead of "O2" and gcc return s this error "gcc: error: unrecognized command line option '-02'"
however in my makepkg.conf CFLAGS and CXXFLAGS are as follows
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"this is not matching up after setting the CFLAGS environment variable and checking the PKGBUILD i can't figure out why this is happening. What am I doing wrong?
Last edited by Alias.TDP (2012-10-21 19:46:50)
Offline
Are you using the PKGBUILD from https://aur.archlinux.org/packages.php?ID=56135? As a general rule, you can post a link to this thread in the comments, so the maintainer and other user can help you.
My output was a bit diferent at the end:
...
Checking for header Python.h : ok
Checking for pygobject-2.0 >= 2.12.0 : Package pygobject-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `pygobject-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pygobject-2.0' found
error: the configuration failed (see '/home/karol/apps/libdesktop-agnostic/src/libdesktop-agnostic-0.3.92/build/config.log')
==> ERROR: A failure occurred in build().
Aborting...Offline
I couldn't compile anything shortly after the big glibc update a few months ago. After a bit of searching, I came across this thread http://www.linuxquestions.org/questions … 175416947/ . Basically, it suggests, to find what is causing the issue, create a hello world program to eliminate as many variables as you can, then check out the output and determine what package owns the problematic file. Read the thread, specifically post #7. It is referring to gentoo, but the diagnostic part of it is really non-dstro specific.
Hope this might help!
Edit: BTW, the "please help" part of your title is probably not necessary. You wouldn't be posting here if you didn't need help. I guess I just personally find it kind of annoying... but maybe that's just me.
Last edited by WonderWoofy (2012-10-21 19:03:30)
Offline
I have no problems in compiling other pacakges.
Here's my log (I see that it has some escape sequences, probably to the color output - sorry about that):
# project libdesktop-agnostic (0.3.92) configured on Sun Oct 21 20:34:06 2012 by
# waf 1.5.8 (abi 7, python 20703f0 on linux2)
# using ./waf configure --prefix=/usr --sysconfdir=/etc --config-backends=gconf,keyfile --vfs-backends=gio --desktop-entry-backends=gio,glib
#
Checking for program gcc
find program='gcc' paths=[] var='CC' -> '/usr/bin/gcc'
Checking for program cpp
find program='cpp' paths=[] var='CPP' -> '/usr/bin/cpp'
Checking for program ar
find program='ar' paths=[] var='AR' -> '/usr/bin/ar'
Checking for program ranlib
find program='ranlib' paths=[] var='RANLIB' -> '/usr/bin/ranlib'
Checking for gcc
Checking for program msgfmt
find program='msgfmt' paths=[] var=None -> '/usr/bin/msgfmt'
Checking for program intltool-merge
find program='intltool-merge' paths=[] var='INTLTOOL' -> '/usr/bin/intltool-merge'
Checking for header locale.h
==>
#include <locale.h>
int main() {
return 0;
}
<==
[1/2] ESC[32mcc: build/.conf_check_0/test.c -> build/.conf_check_0/testbuild/default/test_1.o
ESC[0m['/usr/bin/gcc', '-march=i686', '-mtune=generic', '-O2', '-pipe', '-fstack-protector', '--param=ssp-buffer-size=4', '-D_FORTIFY_SOURCE=2', '../test.c', '-c', '-o', 'default/test_1.o']
[2/2] ESC[33mcc_link: build/.conf_check_0/testbuild/default/test_1.o -> build/.conf_check_0/testbuild/default/testprog
ESC[0m['/usr/bin/gcc', 'default/test_1.o', '-o', 'default/testprog']
Checking for program python
find program='python' paths=[] var='PYTHON' -> '/usr/bin/python2'
Checking for program valac
find program='valac' paths=[] var='VALAC' -> '/usr/bin/valac'
Checking for gthread-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs gthread-2.0
Checking for program version valac >= 0.1.6
Checking for gmodule-2.0 >= 2.6.0
pkg-config --errors-to-stdout --print-errors --atleast-version=2.6.0 gmodule-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs gmodule-2.0
Checking for glib-2.0 >= 2.10.0
pkg-config --errors-to-stdout --print-errors --atleast-version=2.10.0 glib-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs glib-2.0
Checking for gobject-2.0 >= 2.12.0
pkg-config --errors-to-stdout --print-errors --atleast-version=2.12.0 gobject-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs gobject-2.0
Checking for library m
==>
int main() {
return 0;
}
<==
[1/2] ESC[32mcc: build/.conf_check_0/test.c -> build/.conf_check_0/testbuild/default/test_1.o
ESC[0m['/usr/bin/gcc', '-march=i686', '-mtune=generic', '-O2', '-pipe', '-fstack-protector', '--param=ssp-buffer-size=4', '-D_FORTIFY_SOURCE=2', '../test.c', '-c', '-o', 'default/test_1.o']
[2/2] ESC[33mcc_link: build/.conf_check_0/testbuild/default/test_1.o -> build/.conf_check_0/testbuild/default/testprog
ESC[0m['/usr/bin/gcc', 'default/test_1.o', '-o', 'default/testprog', '-Wl,-Bdynamic', '-lm']
Checking for gdk-2.0 >= 2.12.0
pkg-config --errors-to-stdout --print-errors --atleast-version=2.12.0 gdk-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs gdk-2.0
Checking for gtk+-2.0 >= 2.12.0
pkg-config --errors-to-stdout --print-errors --atleast-version=2.12.0 gtk+-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs gtk+-2.0
Checking for glib-2.0 >= 2.14.0
pkg-config --errors-to-stdout --print-errors --atleast-version=2.14.0 glib-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs glib-2.0
Checking for gconf-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs gconf-2.0
Checking for gio-2.0 >= 2.16.0
pkg-config --errors-to-stdout --print-errors --atleast-version=2.16.0 gio-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs gio-2.0
Checking for gio-unix-2.0 >= 2.18.0
pkg-config --errors-to-stdout --print-errors --atleast-version=2.18.0 gio-unix-2.0
pkg-config --errors-to-stdout --print-errors --cflags --libs gio-unix-2.0
Checking for gobject-introspection-1.0 >= 0.6.3
pkg-config --errors-to-stdout --print-errors --atleast-version=0.6.3 gobject-introspection-1.0
pkg-config --errors-to-stdout --print-errors --cflags --libs gobject-introspection-1.0
Checking for Python version
Configuration returned from '/usr/bin/python2':
python_prefix = '/usr'
python_SO = '.so'
python_SYSLIBS = '-lm'
python_LDFLAGS = '-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu'
python_SHLIBS = '-lpthread -ldl -lutil'
python_LIBDIR = '/usr/lib'
python_LIBPL = '/usr/lib/python2.7/config'
INCLUDEPY = '/usr/include/python2.7'
Py_ENABLE_SHARED = 1
MACOSX_DEPLOYMENT_TARGET = ''
# Trying LIBDIR: ['/usr/lib']
Checking for library python2.7
==>
int main() {
return 0;
}
<==
[1/2] ESC[32mcc: build/.conf_check_0/test.c -> build/.conf_check_0/testbuild/default/test_1.o
ESC[0m['/usr/bin/gcc', '-march=i686', '-mtune=generic', '-O2', '-pipe', '-fstack-protector', '--param=ssp-buffer-size=4', '-D_FORTIFY_SOURCE=2', '../test.c', '-c', '-o', 'default/test_1.o']
[2/2] ESC[33mcc_link: build/.conf_check_0/testbuild/default/test_1.o -> build/.conf_check_0/testbuild/default/testprog
ESC[0m['/usr/bin/gcc', 'default/test_1.o', '-o', 'default/testprog', '-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu', '-L/usr/lib', '-Wl,-Bdynamic', '-lpython2.7', '-lm', '-lpthread', '-ldl', '-lutil']
Checking for program python2.7-config
find program='python2.7-config' paths=[] var='PYTHON_CONFIG' -> '/usr/bin/python2.7-config'
Include path for Python extensions (found via python-config --includes): ['/usr/include/python2.7']
Checking for header Python.h
==>
#ifdef __cplusplus
extern "C" {
#endif
void Py_Initialize(void);
void Py_Finalize(void);
#ifdef __cplusplus
}
#endif
int main()
{
Py_Initialize();
Py_Finalize();
return 0;
}
<==
[1/2] ESC[32mcc: build/.conf_check_0/test.c -> build/.conf_check_0/testbuild/default/test_1.o
ESC[0m['/usr/bin/gcc', '-march=i686', '-mtune=generic', '-O2', '-pipe', '-fstack-protector', '--param=ssp-buffer-size=4', '-D_FORTIFY_SOURCE=2', '-fno-strict-aliasing', '-I/usr/include/python2.7', '../test.c', '-c', '-o', 'default/test_1.o']
[2/2] ESC[33mcc_link: build/.conf_check_0/testbuild/default/test_1.o -> build/.conf_check_0/testbuild/default/testprog
ESC[0m['/usr/bin/gcc', 'default/test_1.o', '-o', 'default/testprog', '-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu', '-L/usr/lib', '-Wl,-Bdynamic', '-lm', '-lpthread', '-ldl', '-lutil', '-lpython2.7']
Checking for pygobject-2.0 >= 2.12.0
pkg-config --errors-to-stdout --print-errors --atleast-version=2.12.0 pygobject-2.0$ grep -E 'CFLAGS|CXXFLAGS' /etc/makepkg.conf
CFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"Offline
@karol, I figured since the OP has mentioned that no packages will compile, it must be a problem with his/her system and not the PKGBUILDs. That is why I suggested that link I posted.
That said, @OP, you may want to try a package that is known to compile. Like maybe something from the ABS that has been recently updated.
Offline
I tried compiling numerous other packages and I still get the same gcc invalid argument '-02' problem, so the problem didn't come from this package in particular. And I tried the suggestion from WonderWoofy and the hello world compiled fine.
EDIT: I tried compiling recently-updated acpi and still errors this is my config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --prefix=/usr
## --------- ##
## Platform. ##
## --------- ##
hostname = APACHE
uname -m = x86_64
uname -r = 3.6.2-1-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Fri Oct 12 23:58:58 CEST 2012
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /opt/java/bin
PATH: /usr/bin/vendor_perl
PATH: /usr/bin/core_perl
PATH: /opt/android/platform-tools
PATH: /opt/android/tools
PATH: /home/tevin/bin/
PATH: /opt/android/platform-tools
PATH: /opt/android/tools
PATH: /home/tevin/bin/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1932: checking for a BSD-compatible install
configure:2000: result: /usr/bin/install -c
configure:2011: checking whether build environment is sane
configure:2061: result: yes
configure:2202: checking for a thread-safe mkdir -p
configure:2241: result: /usr/bin/mkdir -p
configure:2254: checking for gawk
configure:2270: found /usr/bin/gawk
configure:2281: result: gawk
configure:2292: checking whether make sets $(MAKE)
configure:2314: result: yes
configure:2442: checking for gcc
configure:2458: found /usr/bin/gcc
configure:2469: result: gcc
configure:2698: checking for C compiler version
configure:2707: gcc --version >&5
gcc (GCC) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2718: $? = 0
configure:2707: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/src/gcc-4.7.2/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-libstdcxx-time --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --disable-ppl-version-check --disable-cloog-version-check --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu --enable-multilib --disable-libssp --disable-build-with-cxx --disable-build-poststage1-with-cxx --enable-checking=release
Thread model: posix
gcc version 4.7.2 (GCC)
configure:2718: $? = 0
configure:2707: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2718: $? = 1
configure:2707: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:2718: $? = 1
configure:2738: checking whether the C compiler works
configure:2760: gcc -march=i686 -02 -pipe -m32 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c >&5
gcc: error: unrecognized command line option '-02'
configure:2764: $? = 1
configure:2802: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "acpi"
| #define VERSION "1.6"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2807: error: in `/home/tevin/Documents/New Folder/src/acpi-1.6':
configure:2809: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=i686 -02 -pipe -m32'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-Wl,-O1,--sort-common,--as-needed,-z,relro
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} "/home/tevin/Documents/New Folder/src/acpi-1.6/missing" --run aclocal-1.11'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} "/home/tevin/Documents/New Folder/src/acpi-1.6/missing" --run tar'
AUTOCONF='${SHELL} "/home/tevin/Documents/New Folder/src/acpi-1.6/missing" --run autoconf'
AUTOHEADER='${SHELL} "/home/tevin/Documents/New Folder/src/acpi-1.6/missing" --run autoheader'
AUTOMAKE='${SHELL} "/home/tevin/Documents/New Folder/src/acpi-1.6/missing" --run automake-1.11'
AWK='gawk'
CC='gcc'
CCDEPMODE=''
CFLAGS='-march=i686 -02 -pipe -m32'
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS='-Wl,-O1,--sort-common,--as-needed,-z,relro'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} "/home/tevin/Documents/New Folder/src/acpi-1.6/missing" --run makeinfo'
MKDIR_P='/usr/bin/mkdir -p'
OBJEXT=''
PACKAGE='acpi'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.6'
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} '\''/home/tevin/Documents/New Folder/src/acpi-1.6/install-sh'\'''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/usr/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "acpi"
#define VERSION "1.6"
configure: exit 77Last edited by Alias.TDP (2012-10-21 19:26:40)
Offline
Is that a zero and then a two? Because it is supposed to be a capital o and then a two.
Edit: So it should be '-O2' notice the difference between 0 (number) and O (letter).
Last edited by WonderWoofy (2012-10-21 19:21:35)
Offline
Offline
Problem solved, falconindy, I love you. the problem was my local makepkg.conf which I had no idea existed. Apparently it held the infamous '-02' arguments. Everything compiles fine now. Thanks everyone for your help, you all have made my first archlinux forum post a great experience.
Offline
Don't forget to edit your fist post and prepend your title with [Solved]
Offline
Pages: 1