[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#746688: marked as done (the libgnatprj build uses system c++ header files, should use the ones from the build)



Your message dated Sun, 01 Jun 2014 14:49:18 +0200
with message-id <87y4xgg5gx.fsf@ludovic-brenta.org>
and subject line Re: Bug#746688: the libgnatprj build uses system c++ header files, should use the ones from the build
has caused the Debian Bug report #746688,
regarding the libgnatprj build uses system c++ header files, should use the ones from the build
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
746688: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746688
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: gnat-4.9

The libgnatprj build uses an ugly combination of the just built g++ together
with system c++ header files.  This may work for a native build where the
dependency is fulfilled by the g++-4.9 build dependency, but it complicates
cross builds and builds from the same source.  Please use the header files from
the just built libstdc++.

It looks like this can be done by respecting CC, CXX, CFLAGS and CXXFLAGS set by
the toplevel Makefile.

The toplevel Makefile.def also seems to missing a dependency on libstdc++-v3 for
libgnatproj.

../gcc/xgcc -B../gcc/ -c -fPIC -g -O2 -gnatn -nostdinc
-I../gcc/ada/rts-shared-zcx -I../libgnatvsn sdefault.adb -o obj-shared/sdefault.o
../gcc/xg++ -B../gcc/ -c -fPIC -g -O2 -DHAVE_CONFIG_H -pedantic \
           -I../../src/libgnatprj/../gcc -I../../src/libgnatprj/../include
-I../../src/libgnatprj/../libcpp/include -I../gcc \
           ../../src/libgnatprj/../gcc/common/common-targhooks.c -o
obj-shared/common-targhooks.o
In file included from ../../src/libgnatprj/../gcc/common/common-targhooks.c:21:0:
../../src/libgnatprj/../gcc/system.h:205:20: fatal error: cstring: No such file
or directory
 # include <cstring>
                    ^
compilation terminated.
make[4]: *** [obj-shared/common-targhooks.o] Error 1

--- End Message ---
--- Begin Message ---
Version: 4.9.0-2

Matthias Klose <doko@debian.org> writes:
> fyi, checked in a patch to use CC and CXX from the toplevel makefile, and drop
> the unneeded g++ build dependency.

I verified that this does indeed solve the problem.

OTOH, AFAICT, libgnatprj.so is not linked and does not use any symbols
from libstdc++ so does not need a dependency on it.

-- 
Ludovic Brenta.

--- End Message ---

Reply to: