| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| NNTP-Posting-Date: | Sat, 21 Apr 2012 17:10:52 -0500 |
| From: | Allan J Mui <mu8ja0i AT earthlink DOT net> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Difficulties compiling emacs with gcc 4.6.2 |
| References: | <201204090011 DOT 41565 DOT juan DOT guerrero AT gmx DOT de> |
| Date: | Sat, 21 Apr 2012 17:11:13 -0500 |
| Message-ID: | <81mx643fcu.fsf@earthlink.net> |
| User-Agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.4 (windows-nt) |
| X-No-Archive: | Yes |
| Cancel-Lock: | sha1:5SyJJAw/fFiQ2l0Cq9FO4N5m76I= |
| MIME-Version: | 1.0 |
| Lines: | 88 |
| X-Usenet-Provider: | http://www.giganews.com |
| NNTP-Posting-Host: | 4.226.105.153 |
| X-Trace: | sv3-xuhI9Lgo/aT/MC5uW2RErYTjR6jlSD34pxyNr9vfKbYHfL/oGHq3H31tRYmUX2JokNFooUeKn3ocaX2!q/zLKoJIFNzHZ2qUnIJGfLji0jP3A1Hs5DV1pYc8V3HZNYE9xWvDA9zz6Na5fOcrRIIZGjRxciTJ!9zHcuD7ve3Rvnx3c |
| X-Abuse-and-DMCA-Info: | Please be sure to forward a copy of ALL headers |
| X-Abuse-and-DMCA-Info: | Otherwise we will be unable to process your complaint properly |
| X-Postfilter: | 1.3.40 |
| Bytes: | 7621 |
| X-Original-Bytes: | 7560 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de> writes:
> I have tried to compile emacs 23.4 using gcc 4.6.2 and binutils 2.22 and I got
> the output below. Something seems to be wrong with the assembler output
> produced by gcc. I have replaced the compiler with gcc 4.5.2 and it compiled
> flawlessly. Of course still using binutils 2.22.
> If more information is needed please tell me.
>
> Regards,
> Juan M. Guerrero
>
>
> ===============================================================================
>
> gcc.exe (GCC) 4.6.2
> Copyright (C) 2011 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.
>
> GNU ld (GNU Binutils) 2.22
> Copyright 2011 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License version 3 or (at your option) a later version.
> This program has absolutely no warranty.
>
>
> cd lib-src
> C:/DJGPP-2.04/BIN/make.exe top_srcdir=g:/3/emacs-23.4 version="23.4"
> make.exe[1]: Entering directory `g:/3/emacs-23.4/lib-src'
> gcc -DHAVE_CONFIG_H -I. -I../src -IG:/3/EMACS-23.4/LIB-SRC -IG:/3/EMACS-23.4/LIB-SRC/../src -O2 -g -o test-distrib G:/3/EMACS-23.4/LIB-SRC/test-distrib.c
> test-distrib G:/3/EMACS-23.4/LIB-SRC/testfile
> gcc -DHAVE_CONFIG_H -I. -I../src -IG:/3/EMACS-23.4/LIB-SRC -IG:/3/EMACS-23.4/LIB-SRC/../src -O2 -g G:/3/EMACS-23.4/LIB-SRC/make-docfile.c -o make-docfile
> gcc -DHAVE_CONFIG_H -I. -I../src -IG:/3/EMACS-23.4/LIB-SRC -IG:/3/EMACS-23.4/LIB-SRC/../src -O2 -g G:/3/EMACS-23.4/LIB-SRC/profile.c -o profile
> gcc -DHAVE_CONFIG_H -I. -I../src -IG:/3/EMACS-23.4/LIB-SRC -IG:/3/EMACS-23.4/LIB-SRC/../src -O2 -g G:/3/EMACS-23.4/LIB-SRC/digest-doc.c -o digest-doc
> gcc -DHAVE_CONFIG_H -I. -I../src -IG:/3/EMACS-23.4/LIB-SRC -IG:/3/EMACS-23.4/LIB-SRC/../src -O2 -g G:/3/EMACS-23.4/LIB-SRC/sorted-doc.c -o sorted-doc
> gcc -DHAVE_CONFIG_H -I. -I../src -IG:/3/EMACS-23.4/LIB-SRC -IG:/3/EMACS-23.4/LIB-SRC/../src -O2 -g G:/3/EMACS-23.4/LIB-SRC/fakemail.c -o fakemail
> gcc -DHAVE_CONFIG_H -I. -I../src -IG:/3/EMACS-23.4/LIB-SRC -IG:/3/EMACS-23.4/LIB-SRC/../src -O2 -g G:/3/EMACS-23.4/LIB-SRC/hexl.c -o hexl
> cp G:/3/EMACS-23.4/LIB-SRC/getopt_.h getopt.h-t
> mv getopt.h-t getopt.h
> gcc -c -DHAVE_CONFIG_H -I. -I../src -IG:/3/EMACS-23.4/LIB-SRC -IG:/3/EMACS-23.4/LIB-SRC/../src -O2 -g G:/3/EMACS-23.4/LIB-SRC/update-game-score.c -DHAVE_SHARED_GAME_DIR="\"@gamedir@\""
> gcc -c -DHAVE_CONFIG_H -I. -I../src -IG:/3/EMACS-23.4/LIB-SRC -IG:/3/EMACS-23.4/LIB-SRC/../src -O2 -g G:/3/EMACS-23.4/LIB-SRC/getopt.c
> gcc -c -DHAVE_CONFIG_H -I. -I../src -IG:/3/EMACS-23.4/LIB-SRC -IG:/3/EMACS-23.4/LIB-SRC/../src -O2 -g G:/3/EMACS-23.4/LIB-SRC/getopt1.c
> gcc -DHAVE_CONFIG_H -I. -I../src -IG:/3/EMACS-23.4/LIB-SRC -IG:/3/EMACS-23.4/LIB-SRC/../src -O2 -g update-game-score.o getopt.o getopt1.o -o update-game-score
> gcc -c -DHAVE_CONFIG_H -I. -I../src -IG:/3/EMACS-23.4/LIB-SRC -IG:/3/EMACS-23.4/LIB-SRC/../src -O2 -g -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER G:/3/EMACS-23.4/LIB-SRC/../src/regex.c
> gcc -DHAVE_CONFIG_H -I. -I../src -IG:/3/EMACS-23.4/LIB-SRC -IG:/3/EMACS-23.4/LIB-SRC/../src -O2 -g -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"23.4\"" G:/3/EMACS-23.4/LIB-SRC/etags.c getopt.o getopt1.o regex.o -o etags
> gcc -DHAVE_CONFIG_H -I. -I../src -IG:/3/EMACS-23.4/LIB-SRC -IG:/3/EMACS-23.4/LIB-SRC/../src -O2 -g -DCTAGS -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"23.4\"" G:/3/EMACS-23.4/LIB-SRC/etags.c getopt.o getopt1.o regex.o -o ctags
> gcc -DHAVE_CONFIG_H -I. -I../src -IG:/3/EMACS-23.4/LIB-SRC -IG:/3/EMACS-23.4/LIB-SRC/../src -O2 -g G:/3/EMACS-23.4/LIB-SRC/b2m.c -DVERSION="\"23.4\"" getopt.o getopt1.o -o b2m
> gcc -DHAVE_CONFIG_H -I. -I../src -IG:/3/EMACS-23.4/LIB-SRC -IG:/3/EMACS-23.4/LIB-SRC/../src -O2 -g -DVERSION="\"23.4\"" G:/3/EMACS-23.4/LIB-SRC/ebrowse.c getopt.o getopt1.o -o ebrowse
> make.exe[1]: Leaving directory `g:/3/emacs-23.4/lib-src'
> cd ..
> cd src
> C:/DJGPP-2.04/BIN/make.exe top_srcdir=g:/3/emacs-23.4 BOOTSTRAPEMACS=""
> make.exe[1]: Entering directory `g:/3/emacs-23.4/src'
> djecho stamp-oldxmenu > stamp-oldxmenu
> gcc -c -Demacs -DHAVE_CONFIG_H -I. -I. -O2 -gcoff dispnew.c
> gcc -c -Demacs -DHAVE_CONFIG_H -I. -I. -O2 -gcoff frame.c
> gcc -c -Demacs -DHAVE_CONFIG_H -I. -I. -O2 -gcoff scroll.c
> gcc -c -Demacs -DHAVE_CONFIG_H -I. -I. -O2 -gcoff xdisp.c
> gcc -c -Demacs -DHAVE_CONFIG_H -I. -I. -O2 -gcoff menu.c
> gcc -c -Demacs -DHAVE_CONFIG_H -I. -I. -O2 -gcoff window.c
> gcc -c -Demacs -DHAVE_CONFIG_H -I. -I. -O2 -gcoff charset.c
> gcc -c -Demacs -DHAVE_CONFIG_H -I. -I. -O2 -gcoff coding.c
> gcc -c -Demacs -DHAVE_CONFIG_H -I. -I. -O2 -gcoff category.c
> gcc -c -Demacs -DHAVE_CONFIG_H -I. -I. -O2 -gcoff ccl.c
> gcc -c -Demacs -DHAVE_CONFIG_H -I. -I. -O2 -gcoff character.c
> gcc -c -Demacs -DHAVE_CONFIG_H -I. -I. -O2 -gcoff chartab.c
> gcc -c -Demacs -DHAVE_CONFIG_H -I. -I. -O2 -gcoff cm.c
> gcc -c -Demacs -DHAVE_CONFIG_H -I. -I. -O2 -gcoff term.c
> gcc -c -Demacs -DHAVE_CONFIG_H -I. -I. -O2 -gcoff terminal.c
> gcc -c -Demacs -DHAVE_CONFIG_H -I. -I. -O2 -gcoff xfaces.c
> gcc -c -Demacs -DHAVE_CONFIG_H -I. -I. -O2 -gcoff emacs.c
> c:/TMP/ccVqj3Jc.s: Assembler messages:
> c:/TMP/ccVqj3Jc.s:6834: Error: invalid operands (.text and .text.startup sections) for `-'
> c:/TMP/ccVqj3Jc.s:6798: Error: can't resolve `.text' {.text section} - `LFB7' {.text.startup section}
> make.exe[1]: *** [emacs.o] Error 1
> make.exe[1]: Leaving directory `g:/3/emacs-23.4/src'
> make.exe: *** [src] Error 2
As a workaround, if you edit the variable CFLAGS in `src/Makefile' only,
replacing `-gcoff' with just '-g', then it should build. That is what I
did but I configure with `--no-debug'. I noticed this bug several weeks
ago but without your other patch I still could not build this release,
thanks. I am using libc built from the CVS development source besides
gcc 4.62 and binutils 2.22 .
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |