Skip to contentSkip to conversation

emacs copying ${STAGING_DIR_TARGET} - wtf?

DISCUSSION Graham Gower 3 participants 5 messages Nov 16, 2010 – Nov 17, 2010

lore
Share & tools
lore
#0 lore raw

emacs.inc has this nugget in do_compile_prepend():
cp -pPR ${STAGING_DIR_TARGET}/* $treedir

During a world build, both emacs and emacs-x11 copy some 5GB into their work dirs. This really seems like overkill.

Could someone familiar with building emacs take a look to see if there is a reasonable alternative?

thanks,
-Graham

PS: emacs and emacs-x11 fail for me in do_compile.

NOTE: make -j 12 QEMU=qemu-mipsel -s 1048576 -L /mnt/oe/tmp/work/mipsel-oe-linux/emacs-22.3-r1/qemu-treedir

cd lib-src; make all - --jobserver-fds=3,22 -j \
	  CC='mipsel-oe-linux-gcc -march=mips32' CFLAGS='-isystem/mnt/oe/tmp/sysroots/mipsel-oe-linux/usr/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os' CPPFLAGS='-D_BSD_SOURCE  -isystem/mnt/oe/tmp/sysroots/mipsel-oe-linux/usr/include' \
	  LDFLAGS='-L/mnt/oe/tmp/sysroots/mipsel-oe-linux/usr/lib -Wl,-rpath-link,/mnt/oe/tmp/sysroots/mipsel-oe-linux/usr/lib -Wl,-O1 -Wl,-znocombreloc' MAKE='make'

make[1]: Entering directory `/mnt/oe/tmp/work/mipsel-oe-linux/emacs-22.3-r1/emacs-22.3/lib-src' Makefile:149: *** commands commence before first target. Stop.
make[1]: Leaving directory `/mnt/oe/tmp/work/mipsel-oe-linux/emacs-22.3-r1/emacs-22.3/lib-src'
make: *** [lib-src] Error 2
FATAL: oe_runmake failed

#1 lore raw
Quoted 2 lines · Graham Gower

emacs.inc has this nugget in do_compile_prepend():
cp -pPR ${STAGING_DIR_TARGET}/* $treedir

ah, ugly indeed :/

Quoted 11 lines

During a world build, both emacs and emacs-x11 copy some 5GB into their work dirs. This really seems like overkill.

Could someone familiar with building emacs take a look to see if there is a reasonable alternative?

thanks,
-Graham

PS: emacs and emacs-x11 fail for me in do_compile.

Do you have make-3.82 on your host? emacs-x11_23.1.bb compiles fine with SHR.

Regards,

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#2 lore raw
Quoted 5 lines · Martin Jansa
Quoted 1 line · Graham Gower

PS: emacs and emacs-x11 fail for me in do_compile.

Do you have make-3.82 on your host? emacs-x11_23.1.bb compiles fine with SHR.

Nope. make --version says 3.81.

#3 lore raw
Quoted 9 lines · On Tuesday 16 November 2010 07:38:07 Graham Gower wrote:
Quoted 5 lines · Martin Jansa
Quoted 1 line · Graham Gower

PS: emacs and emacs-x11 fail for me in do_compile.

Do you have make-3.82 on your host? emacs-x11_23.1.bb compiles fine with SHR.

Nope. make --version says 3.81.

I'd had problems with emacs before and the error you got was the same as mine. I got the x11 verson to build as Martin Jansa advised. My version of Make is the same as yours (3.81) so maybe I'll try to do an updgade and see if that solves the issue.

#4 lore raw
In reply to Graham Gower
Quoted 9 lines · On Tuesday 16 November 2010 07:38:07 Graham Gower wrote:
Quoted 5 lines · Martin Jansa
Quoted 1 line · Graham Gower

PS: emacs and emacs-x11 fail for me in do_compile.

Do you have make-3.82 on your host? emacs-x11_23.1.bb compiles fine with SHR.

Nope. make --version says 3.81.

Just installed make-3.82 and got a different error message but on the same line in the makefile:

| Makefile:149: *** recipe commences before first target. Stop.

Looking at the Makefile's being generated newlines are getting inserted somewhere and messing up the makefile. If you manually remove these newlines from the makefile you can walk the error down the makefile but there are a lot of them.

I don't understand where they're coming from but that's what I see the problem as being.