Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22001

GCC can't compile glib without optimizations in Ubuntu

$
0
0

I am trying to compile a more updated GlibC (2.14), that is required by a software that I need.

During it, I ended having the same problem as described in this thread: glibc not properly compiling, where the error messages

In file included from ../sysdeps/unix/sysv/linux/syslog.c:10: ../misc/syslog.c: In function ‘__vsyslog_chk’: ../misc/syslog.c:123: sorry, unimplemented: inlining failed in call to ‘syslog’: function body not available ../misc/syslog.c:155: sorry, unimplemented: called from here

The answer there said

You need to disable this by undefining _FORTIFY_SOURCE. i.e. append -U_FORTIFY_SOURCE to your CFLAGS.

I tried to do so with:

../configure --prefix=/media/34GB/Arquivos-de-Programas-Linux/Glibc-2.14/ CFLAGS='-U_FORTIFY_SOURCE'

with leaded to:

In file included from ./../include/libc-symbols.h:55, from :0:

/home/leopoldo/Arquivos-de-Programas-Linux/glibc-2.14/build/config.h:3:3: error: #error "glibc cannot be compiled without optimization"

In file included from ./../include/libc-symbols.h:55, from :0: /home/leopoldo/Arquivos-de-Programas-Linux/glibc-2.14/build/config.h:3:3: error: #error "glibc cannot be compiled without optimization"

make[2]: *** [/home/leopoldo/Arquivos-de-Programas-Linux/glibc-2.14/build/ucontext_i.h] Error 1

make[2]: *** Waiting for unfinished jobs....

make[2]: *** [/home/leopoldo/Arquivos-de-Programas-Linux/glibc-2.14/build/ifunc-defines.h] Error 1

if test -r /home/leopoldo/Arquivos-de-Programas-Linux/glibc-2.14/build/csu/abi-tag.h.new; then mv -f /home/leopoldo/Arquivos-de-Programas-Linux/glibc-2.14/build/csu/abi-tag.h.new /home/leopoldo/Arquivos-de-Programas-Linux/glibc-2.14/build/csu/abi-tag.h; \

else echo >&2 'This configuration not matched in ../abi-tags'; exit 1; fi mv -f /home/leopoldo/Arquivos-de-Programas-Linux/glibc-2.14/build/csu/version-info.hT /home/leopoldo/Arquivos-de-Programas-Linux/glibc-2.14/build/csu/version-info.h

make[2]: Leaving directory `/media/34GB/Arquivos-de-Programas-Linux/glibc-2.14/csu'

make[1]: *** [csu/subdir_lib] Error 2

make[1]: Leaving directory `/media/34GB/Arquivos-de-Programas-Linux/glibc-2.14'

make: *** [all] Error 2

So, what can I do?


Viewing all articles
Browse latest Browse all 22001

Trending Articles