This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: probs cross-building current libstdc++-v3, because of need to link?


Adding libstdc++ to the Cc list.


On Mon, Aug 11, 2003 at 11:08:11PM -0700, cgd@broadcom.com wrote:
> configure:2335: checking for C compiler default output
> configure:2338:  /home/cgd/proj/gcc-testing6/work/mipsisa64-elf.build/gcc/xgcc -B/home/cgd/proj/gcc-testing6/work/mipsisa64-elf.build/gcc/ -nostdinc -B/home/cgd/proj/gcc-testing6/work/mipsisa64-elf.build/mipsisa64-elf/newlib/ -isystem /home/cgd/proj/gcc-testing6/work/mipsisa64-elf.build/mipsisa64-elf/newlib/targ-include -isystem /home/cgd/proj/gcc-testing6/combined/newlib/libc/include -B/home/cgd/proj/gcc-testing6/work/mipsisa64-elf.install/mipsisa64-elf/bin/ -B/home/cgd/proj/gcc-testing6/work/mipsisa64-elf.install/mipsisa64-elf/lib/ -isystem /home/cgd/proj/gcc-testing6/work/mipsisa64-elf.install/mipsisa64-elf/include -isystem /home/cgd/proj/gcc-testing6/work/mipsisa64-elf.install/mipsisa64-elf/sys-include -L/home/cgd/proj/gcc-testing6/work/mipsisa64-elf.build/ld -O2 -g -O2 -O2 -g -O2  conftest.c  >&5
> collect2: cannot find `ld'
> configure:2341: $? = 1
> 
> (I'm not sure which new-autoconf macro causes that test to be emitted,

One of the ancilliary macros inside AC_PROG_CC.


> It seems to me that the fact that the 'ld' symlink isn't created
> (because 'LD' is set and since it's absolute passes "test -x") may be
> a bug.

I agree.


> On the other hand, it's not clear that anything in the libstdc++-v3
> build process should depend on being able to final-link programs.

I agree.  The ugliest chunks of the v3 configury are all due to this precise
fact; we hardcode lots of information about known-good cross targets, because
we can't perform the link tests needed to discover the information instead.

...yah, methinks I know what I've forgotten.  Patch in progress.


Phil

-- 
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
    - Brian W. Kernighan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]