public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/28968] New: gcc/config/i386/winnt-stubs.c is not linked in -> build fails
@ 2006-09-06 23:02 mkoeppe at gmx dot de
2006-09-06 23:08 ` [Bug target/28968] " pinskia at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 8+ messages in thread
From: mkoeppe at gmx dot de @ 2006-09-06 23:02 UTC (permalink / raw)
To: gcc-bugs
When configuring gcc-{4.1.0,4.1.1} as
$ CC=gcc-4.1 ../gcc-4.1.1/configure --target=i586-pc-interix3 \
--enable-languages=c \
--enable-threads=no \
--with-stabs \
--enable-nls \
--disable-shared \
--disable-libssp \
--with-gnu-as \
--with-gnu-ld
the subsequent
$ make
fails with the following linker error:
gcc/config/i386/winnt.c:
symbols i386_pe_type_dllexport_p and i386_pe_type_dllimport_p are undefined!
Modifying winnt.c to
#include "winnt-stubs.c"
works around the problem.
--
Summary: gcc/config/i386/winnt-stubs.c is not linked in -> build
fails
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mkoeppe at gmx dot de
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i586-pc-interix3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28968
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/28968] gcc/config/i386/winnt-stubs.c is not linked in -> build fails
2006-09-06 23:02 [Bug target/28968] New: gcc/config/i386/winnt-stubs.c is not linked in -> build fails mkoeppe at gmx dot de
@ 2006-09-06 23:08 ` pinskia at gcc dot gnu dot org
2006-09-06 23:08 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-06 23:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-09-06 23:08 -------
That is the incorrect fix.
The correct fix is to copy from t-cygming to t-interix:
winnt.o: $(srcdir)/config/i386/winnt.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
$(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \
$(TM_P_H) toplev.h $(HASHTAB_H) $(GGC_H)
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
$(srcdir)/config/i386/winnt.c
winnt-cxx.o: $(srcdir)/config/i386/winnt-cxx.c $(CONFIG_H) $(SYSTEM_H)
coretypes.h \
$(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \
$(TM_P_H) toplev.h $(HASHTAB_H) $(GGC_H)
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
$(srcdir)/config/i386/winnt-cxx.c
winnt-stubs.o: $(srcdir)/config/i386/winnt-stubs.c $(CONFIG_H) $(SYSTEM_H)
coretypes.h \
$(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \
$(TM_P_H) toplev.h $(HASHTAB_H) $(GGC_H)
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
$(srcdir)/config/i386/winnt-stubs.c
And also copy from mingw32's entry in config.gcc to interix3's entry:
extra_objs="winnt.o winnt-stubs.o"
cxx_target_objs=winnt-cxx.o
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |build
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28968
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/28968] gcc/config/i386/winnt-stubs.c is not linked in -> build fails
2006-09-06 23:02 [Bug target/28968] New: gcc/config/i386/winnt-stubs.c is not linked in -> build fails mkoeppe at gmx dot de
2006-09-06 23:08 ` [Bug target/28968] " pinskia at gcc dot gnu dot org
@ 2006-09-06 23:08 ` pinskia at gcc dot gnu dot org
2006-09-06 23:10 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-06 23:08 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-09-06 23:08:38
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28968
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/28968] gcc/config/i386/winnt-stubs.c is not linked in -> build fails
2006-09-06 23:02 [Bug target/28968] New: gcc/config/i386/winnt-stubs.c is not linked in -> build fails mkoeppe at gmx dot de
2006-09-06 23:08 ` [Bug target/28968] " pinskia at gcc dot gnu dot org
2006-09-06 23:08 ` pinskia at gcc dot gnu dot org
@ 2006-09-06 23:10 ` pinskia at gcc dot gnu dot org
2006-09-06 23:29 ` mkoeppe at gmx dot de
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-06 23:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-09-06 23:10 -------
And the other question is how did you get passed PR 15212?
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |15212
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28968
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/28968] gcc/config/i386/winnt-stubs.c is not linked in -> build fails
2006-09-06 23:02 [Bug target/28968] New: gcc/config/i386/winnt-stubs.c is not linked in -> build fails mkoeppe at gmx dot de
` (2 preceding siblings ...)
2006-09-06 23:10 ` pinskia at gcc dot gnu dot org
@ 2006-09-06 23:29 ` mkoeppe at gmx dot de
2006-09-08 16:41 ` mkoeppe at gmx dot de
2006-09-23 18:54 ` mkoeppe at gmx dot de
5 siblings, 0 replies; 8+ messages in thread
From: mkoeppe at gmx dot de @ 2006-09-06 23:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from mkoeppe at gmx dot de 2006-09-06 23:29 -------
(In reply to comment #2)
> And the other question is how did you get passed PR 15212?
Don't know if it's really related! I didn't encounter it, but I built a cross
compiler and used only "make" and not "make bootstrap".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28968
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/28968] gcc/config/i386/winnt-stubs.c is not linked in -> build fails
2006-09-06 23:02 [Bug target/28968] New: gcc/config/i386/winnt-stubs.c is not linked in -> build fails mkoeppe at gmx dot de
` (3 preceding siblings ...)
2006-09-06 23:29 ` mkoeppe at gmx dot de
@ 2006-09-08 16:41 ` mkoeppe at gmx dot de
2006-09-23 18:54 ` mkoeppe at gmx dot de
5 siblings, 0 replies; 8+ messages in thread
From: mkoeppe at gmx dot de @ 2006-09-08 16:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from mkoeppe at gmx dot de 2006-09-08 16:41 -------
(In reply to comment #3)
> > And the other question is how did you get passed PR 15212?
I now tested "make bootstrap" on native i586-pc-interix3.
This bug (PR 28968) occurs there, too, when building the stage1. I think it is
before PR 15212 may be hit, at least I didn't hit it yet, but I haven't yet
completed "make bootstrap" because of other problems, which I have to
investigate further. So at least the bug dependency seems wrong, as I
understand it, or there should be no dependency at all.
Martin
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28968
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/28968] gcc/config/i386/winnt-stubs.c is not linked in -> build fails
2006-09-06 23:02 [Bug target/28968] New: gcc/config/i386/winnt-stubs.c is not linked in -> build fails mkoeppe at gmx dot de
` (4 preceding siblings ...)
2006-09-08 16:41 ` mkoeppe at gmx dot de
@ 2006-09-23 18:54 ` mkoeppe at gmx dot de
5 siblings, 0 replies; 8+ messages in thread
From: mkoeppe at gmx dot de @ 2006-09-23 18:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from mkoeppe at gmx dot de 2006-09-23 18:54 -------
Created an attachment (id=12316)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12316&action=view)
patch to fix this bug
Hello Andrew,
I now tested your fix and built a diff. It works great and now I'm able to
build a cross compiler successfully:
../src/configure --target=i586-pc-interix3 \
--enable-languages=c \
--enable-threads=posix \
--with-stabs \
--enable-nls \
--enable-shared \
--disable-libssp \
--with-gnu-as \
--with-gnu-ld
Even if non-cross "make bootstrap" on i586-pc-interix3 still doesn't work out
of the box, the patch should nevertheless be applied to gcc-4.2.0 and gcc-4.1.1
to close this bug, as exactly this configuration has worked with 4.0.3.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28968
^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <bug-28968-4@http.gcc.gnu.org/bugzilla/>]
end of thread, other threads:[~2012-11-09 22:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-06 23:02 [Bug target/28968] New: gcc/config/i386/winnt-stubs.c is not linked in -> build fails mkoeppe at gmx dot de
2006-09-06 23:08 ` [Bug target/28968] " pinskia at gcc dot gnu dot org
2006-09-06 23:08 ` pinskia at gcc dot gnu dot org
2006-09-06 23:10 ` pinskia at gcc dot gnu dot org
2006-09-06 23:29 ` mkoeppe at gmx dot de
2006-09-08 16:41 ` mkoeppe at gmx dot de
2006-09-23 18:54 ` mkoeppe at gmx dot de
[not found] <bug-28968-4@http.gcc.gnu.org/bugzilla/>
2012-11-09 22:17 ` steven 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).