* emacs-23 from bzr repository (Oct 17) does not compile on ubuntu 11.10
@ 2011-10-18 5:59 Pawel Karpowicz
2011-10-18 8:30 ` Peter Dyballa
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Pawel Karpowicz @ 2011-10-18 5:59 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 3554 bytes --]
Hallo All.
I get the following error message:
make[1]: Entering directory `/usr/src/emacs-sources/emacs-23/src'
gcc -c -D_BSD_SOURCE -Demacs -DHAVE_CONFIG_H -I.
-I/usr/src/emacs-sources/emacs-23/src -D_BSD_SOURCE -pthread
-I/usr/include/gtk-2.0 -I/usr/lib/1 -linux-gnu/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/
-I/usr/include/glib-2.0 -I/usr/lib/1 -linux-gnu/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/freetype2 -pthread -I/usr/include/librsvg-2.0
-I/usr/include/glib-2.0 -I/usr/lib/1 -linux-gnu/glib-2.0/include
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/libpng12
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/dbus-1.0
-I/usr/lib/1 -linux-gnu/dbus-1.0/include -pthread -I/usr/include/dbus-1.0
-I/usr/lib/1 -linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0
-I/usr/lib/1 -linux-gnu/glib-2.0/include -I/usr/include/gconf/2 -g -O2
-Wdeclaration-after-statement -Wno-pointer-sign -I/usr/include/freetype2
-MMD -MF deps/pre-crt0.d pre-crt0.c
cc1: warning: /usr/lib/1: not a directory [enabled by default]
cc1: warning: /usr/lib/1: not a directory [enabled by default]
cc1: warning: /usr/lib/1: not a directory [enabled by default]
cc1: warning: /usr/lib/1: not a directory [enabled by default]
cc1: warning: /usr/lib/1: not a directory [enabled by default]
cc1: warning: /usr/lib/1: not a directory [enabled by default]
make[1]: *** No rule to make target `/usr/lib/crt1.o', needed by `temacs'.
Stop.
make[1]: Leaving directory `/usr/src/emacs-sources/emacs-23/src'
make: *** [src] Error 2
my compilation configuration is:
Configured for `i686-pc-linux-gnu'.
Where should the build process find the source code?
/usr/src/emacs-sources/emacs-23
What operating system and machine description files should Emacs use?
`s/gnu-linux.h' and `m/intel386.h'
What compiler should emacs be built with? gcc -g -O2
-Wdeclaration-after-statement -Wno-pointer-sign
Should Emacs use the GNU version of malloc? yes
(Using Doug Lea's new malloc from the GNU C Library.)
Should Emacs use a relocating allocator for buffers? yes
Should Emacs use mmap(2) for buffer allocation? no
What window system should Emacs use? x11
What toolkit should Emacs use? GTK
Where do we find X Windows header files? Standard dirs
Where do we find X Windows libraries? Standard dirs
Does Emacs use -lXaw3d? no
Does Emacs use -lXpm? yes
Does Emacs use -ljpeg? yes
Does Emacs use -ltiff? yes
Does Emacs use a gif library? yes -lgif
Does Emacs use -lpng? yes
Does Emacs use -lrsvg-2? yes
Does Emacs use -lgpm? yes
Does Emacs use -ldbus? yes
Does Emacs use -lgconf? yes
Does Emacs use -lfreetype? yes
Does Emacs use -lm17n-flt? yes
Does Emacs use -lotf? yes
Does Emacs use -lxft? yes
Does Emacs use toolkit scroll bars? yes
best regards
[-- Attachment #2: Type: text/html, Size: 4381 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: emacs-23 from bzr repository (Oct 17) does not compile on ubuntu 11.10
2011-10-18 5:59 emacs-23 from bzr repository (Oct 17) does not compile on ubuntu 11.10 Pawel Karpowicz
@ 2011-10-18 8:30 ` Peter Dyballa
[not found] ` <mailman.532.1318926665.15868.help-gnu-emacs@gnu.org>
2011-10-18 16:19 ` Glenn Morris
2 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2011-10-18 8:30 UTC (permalink / raw)
To: Pawel Karpowicz; +Cc: help-gnu-emacs
Am 18.10.2011 um 07:59 schrieb Pawel Karpowicz:
> cc1: warning: /usr/lib/1: not a directory [enabled by default]
It seems that you C compiler is defective. /usr/lib/1 does not look like the name for a directory with useful contents. Text particles like "-I/usr/lib/1 -linux-gnu/gtk-2.0/include" in the compiler invocation look very suspicious.
You can check whether this directory actually exists and contains C header files (*.h). (And complain at Ubuntu.) Or you can try to updated with bzr the sources. Could be that parts of the configure system are defective.
BTW, it might be more productive to fetch the emacs-23.3a archive file. It seems to compile well everywhere.
--
Greetings
Pete
If it should exist, it doesn't.
– Arnold's First Law of Documentation
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: emacs-23 from bzr repository (Oct 17) does not compile on ubuntu 11.10
[not found] ` <mailman.532.1318926665.15868.help-gnu-emacs@gnu.org>
@ 2011-10-18 8:52 ` Sven Joachim
0 siblings, 0 replies; 4+ messages in thread
From: Sven Joachim @ 2011-10-18 8:52 UTC (permalink / raw)
To: help-gnu-emacs
On 2011-10-18 10:30 +0200, Peter Dyballa wrote:
> Am 18.10.2011 um 07:59 schrieb Pawel Karpowicz:
>
>> cc1: warning: /usr/lib/1: not a directory [enabled by default]
>
> It seems that you C compiler is defective. /usr/lib/1 does not look
> like the name for a directory with useful contents. Text particles
> like "-I/usr/lib/1 -linux-gnu/gtk-2.0/include" in the compiler
> invocation look very suspicious.
It's the Makefile generation which is broken on emacs-23, because the C
preprocessor mangles "i386" to "1 ". The include part should have been
"-I/usr/lib/i386-linux-gnu/gtk-2.0/include".
> You can check whether this directory actually exists and contains C
> header files (*.h). (And complain at Ubuntu.) Or you can try to
> updated with bzr the sources. Could be that parts of the configure
> system are defective.
>
> BTW, it might be more productive to fetch the emacs-23.3a archive file. It seems to compile well everywhere.
Not on current Ubuntu and Debian systems.
Sven
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: emacs-23 from bzr repository (Oct 17) does not compile on ubuntu 11.10
2011-10-18 5:59 emacs-23 from bzr repository (Oct 17) does not compile on ubuntu 11.10 Pawel Karpowicz
2011-10-18 8:30 ` Peter Dyballa
[not found] ` <mailman.532.1318926665.15868.help-gnu-emacs@gnu.org>
@ 2011-10-18 16:19 ` Glenn Morris
2 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2011-10-18 16:19 UTC (permalink / raw)
To: Pawel Karpowicz; +Cc: help-gnu-emacs
Pawel Karpowicz wrote:
> -I/usr/include/gtk-2.0 -I/usr/lib/1 -linux-gnu/gtk-2.0/include
Looks like a preprocessing bug of the form of
https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/786698
> make[1]: *** No rule to make target `/usr/lib/crt1.o', needed by `temacs'.
Another known issue with Emacs 23. See various Ubuntu and GNU bug
reports, eg https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/746510
Neither issue affects Emacs 24. There will be no more releases from the
emacs23 branch so neither will be fixed there. There is essentially no
difference between the emacs23 branch and the Emacs 23.3 release, so you
might not need to build the former if you have the latter.
Otherwise the simplest fix may be just to make symlinks in /usr/lib that
point to the real crt1.o etc while you build Emacs, then remove them
afterwards in case they interfere with anything else. Or edit the
Makefile by hand with the correct location of crt1.o etc.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-10-18 16:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-18 5:59 emacs-23 from bzr repository (Oct 17) does not compile on ubuntu 11.10 Pawel Karpowicz
2011-10-18 8:30 ` Peter Dyballa
[not found] ` <mailman.532.1318926665.15868.help-gnu-emacs@gnu.org>
2011-10-18 8:52 ` Sven Joachim
2011-10-18 16:19 ` Glenn Morris
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).