Hash-style
Luca
luca.piol at fastwebnet.it
Fri Dec 1 10:39:12 UTC 2006
Hi all!
Just a question: I've downloaded latest cvs versions of binutils, gcc
and glibc.
Fedora by default uses "--hash-style=gnu" so I would like to know how to
compile these packages from sources in this way.
Before configuring them, I thought of something like:
"export {gcc,cc,c++,g++}={binary} -Wl,--hash-style=gnu,--enable-new-dtags"
and
"export ld="ld --hash-style=gnu --enable-new-dtags".
However, when passing "make install" to gcc it broke with:
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/fixincludes'
make[2]: Entering directory `/mnt/lfs/sources/gcc-build/gcc'
gcc -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wold-style-definition
-Wmissing-format-attribute -Werror -fno-common -DHAVE_CONFIG_H -I. -I.
-I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libdecnumber
-I../libdecnumber ../../gcc/gcc/tree-ssanames.c -o tree-ssanames.o
cc1: error: unrecognized command line option "-Wno-overlength-strings"
make[2]: *** [tree-ssanames.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make[1]: *** [install-gcc] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [install] Error 2
Doing a ./cc1 --help | grep overlength in the build-dir of gcc ouputs:
-Woverlength-strings Warn if a string is longer than the maximum
-Wold-style-definition, -Woverlength-strings, -Wstrict-prototypes,
-Wmissing-include-dirs, -Wmultichar, -Wnormalized=, -Woverlength-strings,
-Wold-style-definition, -Woverlength-strings, -Woverride-init,
-Wparentheses,
-Woverlength-strings, -Woverloaded-virtual, -Wparentheses,
-Wpmf-conversions,
and "-Wno-overlength-strings" is not listed.
gcc version I'm trying to compile is:
"GNU C version 4.3.0 20061128 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 4.3.0 20061128 (experimental).
GCC heuristics: --param gcc-min-expand=30 --param gcc-min-heapsize=4096".
GCC version on host system is GCC version 4.1.1.
Question: is it safe to delete -Wno-overlength-strings from the sources
or what?
Is it correct the way I thought about compiling with the --hash-style
option or I should pass it in another way?
Thanks in advance,
Luca
More information about the fedora-list
mailing list