public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Problems compiling gcc 3.3 on cygwin
@ 2003-04-05  2:07 Svein E. Seldal
  0 siblings, 0 replies; 5+ messages in thread
From: Svein E. Seldal @ 2003-04-05  2:07 UTC (permalink / raw)
  To: gcc

Hello,

I am trying to compile the gcc-3_3-branch under cygwin (for the tic4x
target), but it fails.  To verify the bug I have also checked out an old
gcc from the date 20030315 (because I did successfully compile gcc at
that date). But both compilation did fail. I have also tried to compile
gcc as a native compiler, but it still fails. Compilation of any other 
cross compiler also fails.

I am running Windows XP, cygwin 1.3.22-1, gcc 3.2-3 (20020927) and
binutils 20030307-1. I fear that this bug is present on my system only.
Can anyone else running cygwin please confirm or reject the problems I'm
having? Any suggestions to fix the problem would be very welcome...

I think its very strange, because I did not have that problem when I
compiled gcc 3.3 in the 15th march, but now I do -- using the very same
code.


Thanks,
Svein


Snapshot from "make":

gcc -DIN_GCC -DHAVE_CONFIG_H -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional
-pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE  -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional
-pedantic -Wno-long-long  -I. -I.. -I../../../gcc/fixinc
-I../../../gcc/fixinc/.. -I../../../gcc/fixinc/../config
-I../../../gcc/fixinc/../../include  -o fixincl.exe fixincl.o fixtests.o
fixfixes.o server.o procopen.o gnu-regex.o fixlib.o
../../libiberty/libiberty.a
gnu-regex.o(.text+0x6556):gnu-regex.c: undefined reference to `___mempcpy'
collect2: ld returned 1 exit status
make[2]: *** [full-stamp] Error 1
make[2]: Leaving directory
`/cygdrive/d/Prosjekt/gnu/gcc-3.3-branch/build.inst.tic4x/gcc/fixinc'
make[1]: *** [fixinc.sh] Error 2
make[1]: Leaving directory
`/cygdrive/d/Prosjekt/gnu/gcc-3.3-branch/build.inst.tic4x/gcc'
make: *** [all-gcc] Error 2


... but if I grep the configure output, the following is printed:

checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... (cached) yes
checking for setenv... (cached) yes


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

* RE: Problems compiling gcc 3.3 on cygwin
@ 2003-04-25 21:38 Øyvind Harboe
  0 siblings, 0 replies; 5+ messages in thread
From: Øyvind Harboe @ 2003-04-25 21:38 UTC (permalink / raw)
  To: Kaveh R. Ghazi; +Cc: Svein.Seldal, gcc

>  > gnu-regex.o(.text+0x6556):gnu-regex.c: undefined reference 
> to `___mempcpy'
> 
> I fixed this on 4/15 for 3.3 and trunk, try cvs from 4/16 or later.
> 
> Nobody tested it for me on cygwin so it became too late to 
> apply it for 3.2.x.  However you can manually copy and apply 
> the patch to your private 3.2.3 source tree from here:
> 
>http://gcc.gnu.org/ml/gcc/2003-04/msg00538.html

The next stop was:

[stuff deleted]

/cygdrive/c/ssh/arm/build-gcc/gcc/xgcc -shared-libgcc -B/cygdrive/c/ssh/arm/buil
d-gcc/gcc/ -nostdinc++ -L/cygdrive/c/ssh/arm/build-gcc/arm-elf/thumb/libstdc++-v
3/src -L/cygdrive/c/ssh/arm/build-gcc/arm-elf/thumb/libstdc++-v3/src/.libs -B/cy
gdrive/c/ssh/arm/install/arm-elf/bin/ -B/cygdrive/c/ssh/arm/install/arm-elf/lib/
 -isystem /cygdrive/c/ssh/arm/install/arm-elf/include -mthumb -I../../../../../g
cc-3.2.3/libstdc++-v3/../gcc -I../../../../../gcc-3.2.3/libstdc++-v3/../include
-I/cygdrive/c/ssh/arm/build-gcc/arm-elf/thumb/libstdc++-v3/include/arm-elf -I/cy
gdrive/c/ssh/arm/build-gcc/arm-elf/thumb/libstdc++-v3/include -I../../../../../g
cc-3.2.3/libstdc++-v3/libsupc++ -g -O2 -mthumb -fno-implicit-templates -Wall -Wn
o-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -g -c ../.
./../../../gcc-3.2.3/libstdc++-v3/libsupc++/eh_alloc.cc -o eh_alloc.o
In file included from ../../../../../gcc-3.2.3/libstdc++-v3/libsupc++/eh_alloc.c
c:33:
/cygdrive/c/ssh/arm/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:86: `
   div_t' not declared
/cygdrive/c/ssh/arm/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:87: `
   ldiv_t' not declared
/cygdrive/c/ssh/arm/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:97: `
   div' not declared
/cygdrive/c/ssh/arm/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:102: `
   ldiv' not declared
/cygdrive/c/ssh/arm/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:104: `
   mblen' not declared
/cygdrive/c/ssh/arm/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:105: `
   mbstowcs' not declared
/cygdrive/c/ssh/arm/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:106: `
   mbtowc' not declared
/cygdrive/c/ssh/arm/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:115: `
   wcstombs' not declared
/cygdrive/c/ssh/arm/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:116: `
   wctomb' not declared
/cygdrive/c/ssh/arm/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:122: sy
ntax
   error before `(' token
make[6]: *** [eh_alloc.lo] Error 1
make[6]: Leaving directory `/cygdrive/c/ssh/arm/build-gcc/arm-elf/thumb/libstdc+
+-v3/libsupc++'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/cygdrive/c/ssh/arm/build-gcc/arm-elf/thumb/libstdc+
+-v3'
make[4]: *** [all-recursive-am] Error 2
make[4]: Leaving directory `/cygdrive/c/ssh/arm/build-gcc/arm-elf/thumb/libstdc+
+-v3'
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory `/cygdrive/c/ssh/arm/build-gcc/arm-elf/libstdc++-v3'
make[2]: *** [all-multi] Error 2
make[2]: Leaving directory `/cygdrive/c/ssh/arm/build-gcc/arm-elf/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/cygdrive/c/ssh/arm/build-gcc/arm-elf/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2


Øyvind Harboe

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

* RE: Problems compiling gcc 3.3 on cygwin
@ 2003-04-25 20:32 Øyvind Harboe
  0 siblings, 0 replies; 5+ messages in thread
From: Øyvind Harboe @ 2003-04-25 20:32 UTC (permalink / raw)
  To: Kaveh R. Ghazi; +Cc: Svein.Seldal, gcc


>  > gnu-regex.o(.text+0x6556):gnu-regex.c: undefined reference 
> to `___mempcpy'
> 
> I fixed this on 4/15 for 3.3 and trunk, try cvs from 4/16 or later.

I was going to try 3.3 first, but I ran into 

http://gcc.gnu.org/ml/gcc/2003-04/msg01281.html
 
> Nobody tested it for me on cygwin so it became too late to 
> apply it for 3.2.x.  However you can manually copy and apply 
> the patch to your private 3.2.3 source tree from here:
> 
>http://gcc.gnu.org/ml/gcc/2003-04/msg00538.html

That unstuck me, the adventure continues.

Thanks! 

Øyvind Harboe
http://jannealer.sourceforge.net

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

* Re: Problems compiling gcc 3.3 on cygwin
  2003-04-25 14:09 ` Øyvind Harboe
@ 2003-04-25 17:01   ` Kaveh R. Ghazi
  0 siblings, 0 replies; 5+ messages in thread
From: Kaveh R. Ghazi @ 2003-04-25 17:01 UTC (permalink / raw)
  To: oyvind.harboe; +Cc: Svein.Seldal, gcc

 > gnu-regex.o(.text+0x6556):gnu-regex.c: undefined reference to `___mempcpy'

I fixed this on 4/15 for 3.3 and trunk, try cvs from 4/16 or later.

Nobody tested it for me on cygwin so it became too late to apply it
for 3.2.x.  However you can manually copy and apply the patch to your
private 3.2.3 source tree from here:

http://gcc.gnu.org/ml/gcc/2003-04/msg00538.html

		--Kaveh

PS: I'm going to close the relevant PRs 10338 10198 10140.

--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu

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

* Re: Problems compiling gcc 3.3 on cygwin
@ 2003-04-25 14:09 ` Øyvind Harboe
  2003-04-25 17:01   ` Kaveh R. Ghazi
  0 siblings, 1 reply; 5+ messages in thread
From: Øyvind Harboe @ 2003-04-25 14:09 UTC (permalink / raw)
  To: gcc; +Cc: Svein.Seldal


[-- Attachment #1.1: Type: text/plain, Size: 1787 bytes --]

 
>Can anyone else running cygwin please confirm or reject the problems I'm having? 
 
I'm seing the same thing when trying to compile GCC 3.2.3 under CygWin.
 
make all-gcc install-gcc 2>&1 | tee make.log
 
gcc -c -DIN_GCC -DHAVE_CONFIG_H -DIN_GCC -DCROSS_COMPILE -g -O2 -W -Wall -Wwrite
-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-l
ong-long -DHAVE_CONFIG_H -DGENERATOR_FILE  -W -Wall -Wwrite-strings -Wstrict-pro
totypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -I. -I.. -I.
./../../gcc-3.2.3/gcc/fixinc -I../../../gcc-3.2.3/gcc/fixinc/.. -I../../../gcc-3
.2.3/gcc/fixinc/../config -I../../../gcc-3.2.3/gcc/fixinc/../../include ../../..
/gcc-3.2.3/gcc/fixinc/fixlib.c
gcc -DIN_GCC -DHAVE_CONFIG_H -DIN_GCC -DCROSS_COMPILE -g -O2 -W -Wall -Wwrite-st
rings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long
-long -DHAVE_CONFIG_H -DGENERATOR_FILE  -W -Wall -Wwrite-strings -Wstrict-protot
ypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -I. -I.. -I../.
./../gcc-3.2.3/gcc/fixinc -I../../../gcc-3.2.3/gcc/fixinc/.. -I../../../gcc-3.2.
3/gcc/fixinc/../config -I../../../gcc-3.2.3/gcc/fixinc/../../include  -o fixincl
.exe fixincl.o fixtests.o fixfixes.o server.o procopen.o gnu-regex.o fixlib.o ..
/../libiberty/libiberty.a
gnu-regex.o(.text+0x6386): In function `regerror':
/home/oharboe/arm/build-gcc/gcc/fixinc/../../../gcc-3.2.3/gcc/fixinc/gnu-regex.c
:5723: undefined reference to `___mempcpy'
collect2: ld returned 1 exit status
make[2]: *** [full-stamp] Error 1
make[2]: Leaving directory `/home/oharboe/arm/build-gcc/gcc/fixinc'
make[1]: *** [fixinc.sh] Error 2
make[1]: Leaving directory `/home/oharboe/arm/build-gcc/gcc'
make: *** [all-gcc] Error 2
 

[-- Attachment #1.2: Type: text/html, Size: 2164 bytes --]

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

end of thread, other threads:[~2003-04-25 20:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-05  2:07 Problems compiling gcc 3.3 on cygwin Svein E. Seldal
     [not found] <3E8E1A99.5030907%40solidas.com>
2003-04-25 14:09 ` Øyvind Harboe
2003-04-25 17:01   ` Kaveh R. Ghazi
2003-04-25 20:32 Øyvind Harboe
2003-04-25 21:38 Øyvind Harboe

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).