This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: problems with statically linked zlib
- From: "Simonov, Vladimir" <Vladimir dot Simonov at acronis dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: Игорь Пашев <pashev dot igor at gmail dot com>, "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Wed, 8 May 2013 16:48:21 +0000
- Subject: RE: problems with statically linked zlib
- References: <F0AD13EFC234B549BBA4FCA20755EB24BF7A0EBE at Rus-mbx-1 dot ru dot corp dot acronis dot com> <CALL-Q8zchYbGexKMJZGmzVnbeA81J0_TQBzFpJN5s0e6Okg_sw at mail dot gmail dot com> <F0AD13EFC234B549BBA4FCA20755EB24BF7A0F2D at Rus-mbx-1 dot ru dot corp dot acronis dot com> <87zjw6smmg dot fsf at hase dot home> <F0AD13EFC234B549BBA4FCA20755EB24BF7A164D at Rus-mbx-1 dot ru dot corp dot acronis dot com> <mvmk3n9zby4 dot fsf at hawking dot suse dot de>
> From: Andreas Schwab [mailto:schwab@suse.de]
> Subject: Re: problems with statically linked zlib
>
> "Simonov, Vladimir" <Vladimir.Simonov@acronis.com> writes:
>
>> It seems that CPPFLAGS/CXXFLAGS are not passed from top level
>> configure to subdirs(bfd/gold, ets) if I launch
>> ../binutils-2.23.c/configure CPPFLAGS=-I$TOOLS_DIR/include ...
>
>Does it work to use CFLAGS instead?
It works, passed to sub-configure. But gold ignores CFLAGS and "make"
in gold failed because can't find zlib.h.
If I pass CXXFLAGS then it overrides some default values and gold build
fails with:
from /home/sv/work/build_root/x86_64-gcc-4.8.0-glibc-2.3.2-0.43
/build/binutils-2.23.2/gold/gdb-index.cc:23:
/opt/crosstool64/x86_64-unknown-linux-gnu/gcc-4.7.2-glibc-2.3.2/x86_64-unknown-l
inux-gnu/include/c++/4.7.2/backward/backward_warning.h:33:2: warning: #warning T
his file includes at least one deprecated or antiquated header which may be remo
ved without further notice at a future date. Please use a non-deprecated interfa
ce with equivalent functionality instead. For a listing of replacement headers a
nd interfaces, consult the file backward_warning.h. To disable this warning use
-Wno-deprecated. [-Wcpp]
In file included from /opt/crosstool64/x86_64-unknown-linux-gnu/gcc-4.7.2-glibc-
2.3.2/x86_64-unknown-linux-gnu/include/c++/4.7.2/ext/hash_map:65:0,
from /home/sv/work/build_root/x86_64-gcc-4.8.0-glibc-2.3.2-0.43
/build/binutils-2.23.2/gold/gold.h:101,
from /home/sv/work/build_root/x86_64-gcc-4.8.0-glibc-2.3.2-0.43
/build/binutils-2.23.2/gold/gdb-index.cc:23:
......................
ong int, __gnu_cxx::hash<long long int>, std::_Select1st<std::pair<const long lo
ng int, gold::Gdb_index_info_reader::Declaration_pair> >, std::equal_to<long lon
g int>, std::allocator<gold::Gdb_index_info_reader::Declaration_pair> >; __gnu_c
xx::hash_map<_Key, _Tp, _HashFn, _EqualKey, _Alloc>::key_type = long long int]'
/home/sv/work/build_root/x86_64-gcc-4.8.0-glibc-2.3.2-0.43/build/binutils-2.23.2
/gold/gdb-index.cc:696:67: required from here
/opt/crosstool64/x86_64-unknown-linux-gnu/gcc-4.7.2-glibc-2.3.2/x86_64-unknown-l
inux-gnu/include/c++/4.7.2/backward/hashtable.h:610:33: error: no match for call
to '(const hasher {aka const __gnu_cxx::hash<long long int>}) (const key_type&)
'
make[3]: *** [gdb-index.o] Error 1
Probably it is another problem :)
Vladimir