public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/18469] New: configure incorrectly defines gid_t
@ 2004-11-13 21:01 aaronavay62 at aaronwl dot com
  2004-11-13 21:06 ` [Bug target/18469] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: aaronavay62 at aaronwl dot com @ 2004-11-13 21:01 UTC (permalink / raw)
  To: gcc-bugs

When building a cross compiler from a Windows host to sparc-sun-solaris2.8, 
make fails here:

/aaronwl/cs/compilers/gcc/build/solaris8-head/gcc/xgcc -
B/aaronwl/cs/compilers/gcc/build/solaris8-head/gcc/ -B/aaronwl/cs/env/solaris-
head/sparc-sun-solaris2.8/bin/ -B/aaronwl/cs/env/solaris-head/sparc-sun-
solaris2.8/lib/ -isystem /aaronwl/cs/env/solaris-head/sparc-sun-
solaris2.8/include -isystem /aaronwl/cs/env/solaris-head/sparc-sun-
solaris2.8/sys-include -O2 -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-
strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -
isystem ./include  -I. -I. -I../../../src/cvs/head/gcc/gcc -
I../../../src/cvs/head/gcc/gcc/. -I../../../src/cvs/head/gcc/gcc/../include -
I../../../src/cvs/head/gcc/gcc/../libcpp/include   -g0 -finhibit-size-
directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -
fno-unit-at-a-time -fPIC \
   -c ../../../src/cvs/head/gcc/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
In file included from ../../../src/cvs/head/gcc/gcc/tsystem.h:93,
                 from ../../../src/cvs/head/gcc/gcc/crtstuff.c:62:
/aaronwl/cs/env/solaris-head/root/usr/include/sys/types.h:340: error: two or 
more data types in declaration specifiers
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/aaronwl/cs/compilers/gcc/build/solaris8-head/gcc'
make: *** [all-gcc] Error 2

The line in question is:
typedef uid_t   gid_t;                  /* GID type             */

However, auto-host.h defines:
/* Define to `int' if <sys/types.h> doesn't define. */
#define gid_t int

I can't figure out from config.log why this is being defined.

Removing the define for gid_t fixes this problem.

i686-pc-mingw32
Windows XP SP2 Professional
Pentium 4 1.4GHz 256MB
binutils 2.15
mingwrt 3.5
msvcrt 7.0.2600.2180
w32api 3.1
libiconv 1.9.1
GNU Make 3.80
expect 5.26
tcl 8.4
dejagnu 1.4.2.x
Misc tools and environment from Cygwin Current Fri Oct 22 01:50:41 2004
ln with softlinks disabled
host gcc 4.0.0 20041028 (experimental)
host binutils 2.15.94 20041028
host mingwrt head 20041028
host w32api head 20041028

Configured with: ../../src/cvs/head/gcc/configure --
prefix=/aaronwl/cs/env/solaris-head --target=sparc-sun-solaris2.8 --disable-
nls --enable-languages=c --with-sysroot=/aaronwl/cs/env/solaris-head/root
Thread model: single
gcc version 4.0.0 20041113 (experimental)

-- 
           Summary: configure incorrectly defines gid_t
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: aaronavay62 at aaronwl dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-mingw32
  GCC host triplet: i686-pc-mingw32
GCC target triplet: sparc-sun-solaris2.8


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18469


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/18469] configure incorrectly defines gid_t
  2004-11-13 21:01 [Bug target/18469] New: configure incorrectly defines gid_t aaronavay62 at aaronwl dot com
@ 2004-11-13 21:06 ` pinskia at gcc dot gnu dot org
  2005-02-10 20:53 ` ebotcazou at gcc dot gnu dot org
  2005-05-12  2:11 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-13 21:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-13 21:06 -------
auto-host.h should not be included in crtstuff.c at all.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18469


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/18469] configure incorrectly defines gid_t
  2004-11-13 21:01 [Bug target/18469] New: configure incorrectly defines gid_t aaronavay62 at aaronwl dot com
  2004-11-13 21:06 ` [Bug target/18469] " pinskia at gcc dot gnu dot org
@ 2005-02-10 20:53 ` ebotcazou at gcc dot gnu dot org
  2005-05-12  2:11 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 10+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2005-02-10 20:53 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18469


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/18469] configure incorrectly defines gid_t
  2004-11-13 21:01 [Bug target/18469] New: configure incorrectly defines gid_t aaronavay62 at aaronwl dot com
  2004-11-13 21:06 ` [Bug target/18469] " pinskia at gcc dot gnu dot org
  2005-02-10 20:53 ` ebotcazou at gcc dot gnu dot org
@ 2005-05-12  2:11 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-12  2:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-12 02:10 -------
depending on PR 21481 since that is the bug which is getting rid of the include of auto-host.h.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |21481
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
Bug 18469 depends on bug 21481, which changed state.

Bug 21481 Summary: [4.1 Regression] Bootstrap is broken of FreeBSD by changes to crtstuff.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21481

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
             Status|NEW                         |ASSIGNED
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |Bug 18469 depends on bug 21481, which changed state.

Bug 21481 Summary: [4.1 Regression] Bootstrap is broken of FreeBSD by changes to crtstuff.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21481

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
             Status|NEW                         |ASSIGNED
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18469


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/18469] configure incorrectly defines gid_t
       [not found] <bug-18469-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2020-10-15 20:09 ` redi at gcc dot gnu.org
@ 2022-05-24 14:52 ` egallager at gcc dot gnu.org
  5 siblings, 0 replies; 10+ messages in thread
From: egallager at gcc dot gnu.org @ 2022-05-24 14:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18469

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|WAITING                     |RESOLVED

--- Comment #7 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #6)
> The sparc-sun-solaris2.8 target is no logner supported. Is this an issue on
> supported versions of Solaris?

Hm, no reply, so, I'm guessing it isn't, and thus closing this.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/18469] configure incorrectly defines gid_t
       [not found] <bug-18469-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2020-10-15 20:02 ` egallager at gcc dot gnu.org
@ 2020-10-15 20:09 ` redi at gcc dot gnu.org
  2022-05-24 14:52 ` egallager at gcc dot gnu.org
  5 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2020-10-15 20:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18469

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The sparc-sun-solaris2.8 target is no logner supported. Is this an issue on
supported versions of Solaris?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/18469] configure incorrectly defines gid_t
       [not found] <bug-18469-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2020-10-13  2:34 ` kargl at gcc dot gnu.org
@ 2020-10-15 20:02 ` egallager at gcc dot gnu.org
  2020-10-15 20:09 ` redi at gcc dot gnu.org
  2022-05-24 14:52 ` egallager at gcc dot gnu.org
  5 siblings, 0 replies; 10+ messages in thread
From: egallager at gcc dot gnu.org @ 2020-10-15 20:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18469

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egallager at gcc dot gnu.org

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #2)
> depending on PR 21481 since that is the bug which is getting rid of the
> include of auto-host.h.

that got closed as WONTFIX...

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/18469] configure incorrectly defines gid_t
       [not found] <bug-18469-4@http.gcc.gnu.org/bugzilla/>
  2013-12-16 20:09 ` ktietz at gcc dot gnu.org
  2013-12-17 23:26 ` joseph at codesourcery dot com
@ 2020-10-13  2:34 ` kargl at gcc dot gnu.org
  2020-10-15 20:02 ` egallager at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: kargl at gcc dot gnu.org @ 2020-10-13  2:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18469
Bug 18469 depends on bug 21481, which changed state.

Bug 21481 Summary: crtstuff.c should not include auto-host.h
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21481

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/18469] configure incorrectly defines gid_t
       [not found] <bug-18469-4@http.gcc.gnu.org/bugzilla/>
  2013-12-16 20:09 ` ktietz at gcc dot gnu.org
@ 2013-12-17 23:26 ` joseph at codesourcery dot com
  2020-10-13  2:34 ` kargl at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: joseph at codesourcery dot com @ 2013-12-17 23:26 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18469

--- Comment #4 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
On Mon, 16 Dec 2013, ktietz at gcc dot gnu.org wrote:

> The macros required in crtstuff.c are:
> - HAVE_GAS_HIDDEN
> - HAVE_LD_EH_FRAME_HDR

Various target macros used in target code as well as host code should, I 
suggest at <http://gcc.gnu.org/wiki/Top-Level_Libgcc_Migration>, be 
handled via the compiler predefining macros if -fbuilding-libgcc, with 
those predefines being used in target code instead of the macros from host 
tm.h.  (The exact list of host-side tm.h macros used in target code there 
may be out of date, but I expect it's still pretty close to what needs 
fixing to stop target code needing that host-side header.)

I suggest the same solution for configure-determined macros used by target 
code: predefine something if -fbuilding-libgcc, and use that predefine in 
target code.  That avoids duplicating the configure detection.

I definitely encourage cleaning things up in this area to improve the 
host/target separation in the build system.  I don't think any of the 
cases of target (or configure) macros used in target code are hard to fix; 
it just requires careful work on working out the right conversion for each 
of the many macros affected, making sure in every case that no files 
needing updating are missed out.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug target/18469] configure incorrectly defines gid_t
       [not found] <bug-18469-4@http.gcc.gnu.org/bugzilla/>
@ 2013-12-16 20:09 ` ktietz at gcc dot gnu.org
  2013-12-17 23:26 ` joseph at codesourcery dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-12-16 20:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18469

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktietz at gcc dot gnu.org

--- Comment #3 from Kai Tietz <ktietz at gcc dot gnu.org> ---
Issue still exists for ia64 and cygwin/mingw targets on 4.9.

The following files are including auto-host.h header:
- config/i386/cygming-crtbegin.c
- config/i386/cygming-crtend.c
- config/i386/cygming-crtend.c
- config/i386/cygwin.S
- config/ia64/crtbegin.S
- config/ia64/crtend.S
- crtstuff.c

In config/ia64/t-ia64-elf there is a tweak for finding this include-file.

The macros required in crtstuff.c are:
- HAVE_GAS_HIDDEN
- HAVE_LD_EH_FRAME_HDR

The cygwin/mingw part uses:
- DEFAULT_USE_CXA_ATEXIT
- HAVE_LD_RO_RW_SECTION_MIXING
- HAVE_GAS_WEAK
- HAVE_GAS_CFI_SECTIONS_DIRECTIVE

The macros required in ia64 are:
- HAVE_INITFINI_ARRAY_SUPPORT
- USE_GAS_SYMVER

So a lot of infrastructure of gcc needs to be ported to libgcc for detecting
and probs for ld vs. gold, and as.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-05-24 14:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-13 21:01 [Bug target/18469] New: configure incorrectly defines gid_t aaronavay62 at aaronwl dot com
2004-11-13 21:06 ` [Bug target/18469] " pinskia at gcc dot gnu dot org
2005-02-10 20:53 ` ebotcazou at gcc dot gnu dot org
2005-05-12  2:11 ` pinskia at gcc dot gnu dot org
     [not found] <bug-18469-4@http.gcc.gnu.org/bugzilla/>
2013-12-16 20:09 ` ktietz at gcc dot gnu.org
2013-12-17 23:26 ` joseph at codesourcery dot com
2020-10-13  2:34 ` kargl at gcc dot gnu.org
2020-10-15 20:02 ` egallager at gcc dot gnu.org
2020-10-15 20:09 ` redi at gcc dot gnu.org
2022-05-24 14:52 ` egallager at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).