Bug 58840 - Problem compiling gcc 4.7.3 using gcc 4.4.6
Summary: Problem compiling gcc 4.7.3 using gcc 4.4.6
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.7.3
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-22 10:49 UTC by Daniel Fruzynski
Modified: 2013-10-23 20:20 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2013-10-23 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Fruzynski 2013-10-22 10:49:28 UTC
make[3]: Entering directory `[path]/gcc/obj/gcc'
build/gengtype  \
                    -S ../../gcc-4.7.3/gcc -I gtyp-input.list -w tmp-gtype.state
../../gcc-4.7.3/gcc/../include/splay-tree.h:55: unidentified type `uintptr_t'
../../gcc-4.7.3/gcc/../include/splay-tree.h:56: unidentified type `uintptr_t'
make[3]: *** [s-gtype] Error 1
make[3]: Leaving directory `[path]/gcc/obj/gcc'
make[2]: *** [all-stage1-gcc] Error 2

GCC is configured in this way:
../gcc-4.7.3/configure --prefix=[myprefix] --enable-languages=c,c++ --disable-nls

Installed compiler:
gcc --version
gcc (GCC) 4.4.6 20110731 (Red Hat 4.4.6-3)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Comment 1 Richard Biener 2013-10-23 08:05:47 UTC
splay-tree.h does

#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif

so please check gcc/auto-host.h, you should have stdint.h.
Comment 2 Daniel Fruzynski 2013-10-23 19:04:50 UTC
OK, I found this. I used script symlink-tree to create symlinks to binutils in gcc src dir. This script replaced some files with symlinks to their counterparts in binutil dir, what caused this problem. gcc without these symlinks compiles fine. So this is not an issue.
Comment 3 Andrew Pinski 2013-10-23 20:20:55 UTC
Invalid as mentioned by reporter.