2008-02-19 04:38:42     compiling error

Document created by Aaronwu Employee on Aug 5, 2013
Version 1Show Document
  • View in full screen mode

2008-02-19 04:38:42     compiling error

klaus hauer (AFGHANISTAN)

Message: 51266   

 

Hi,

 

I compiled a new kernel with the latest version of toolchain and my own libraries. During compilation I got the following error messages:

 

make[1]: Betrete Verzeichnis '/home/captainkirk/uClinux-dist.R1.1-RC3/lib'

for i in  zlib Modbus libg zlib libjpeg libbfdsp  ; do make -C $i || exit $? ; done

make[2]: Betrete Verzeichnis '/home/captainkirk/uClinux-dist.R1.1-RC3/lib/zlib'

install -d /home/captainkirk/uClinux-dist.R1.1-RC3/staging/usr/lib

install -m0644 libz.a /home/captainkirk/uClinux-dist.R1.1-RC3/staging/usr/lib

install -d /home/captainkirk/uClinux-dist.R1.1-RC3/staging/usr/include

install -m0644 zconf.h zlib.h /home/captainkirk/uClinux-dist.R1.1-RC3/staging/usr/include

make[2]: Verlasse Verzeichnis '/home/captainkirk/uClinux-dist.R1.1-RC3/lib/zlib'

make[2]: Betrete Verzeichnis '/home/captainkirk/uClinux-dist.R1.1-RC3/lib/Modbus'

*************************************************

You have not run make config.

The build sequence for this source tree is:

1. 'make config' or 'make xconfig'

2. 'make dep'

3. 'make'

*************************************************

make[2]: *** [config_error] Fehler 1

make[2]: Verlasse Verzeichnis '/home/captainkirk/uClinux-dist.R1.1-RC3/lib/Modbus'

make[1]: *** [all] Fehler 2

make[1]: Verlasse Verzeichnis '/home/captainkirk/uClinux-dist.R1.1-RC3/lib'

make: *** [subdirs] Fehler 1

root@captainkirk-desktop:~/uClinux-dist.R1.1-RC3#

 

Could anybody help???

TranslateQuoteReplyEditDelete

 

 

2008-02-19 05:00:48     Re: compiling error

Mike Frysinger (UNITED STATES)

Message: 51267    the modbus directory is not properly integrated.  you'll need to setup the makefiles appropriately in lib/Modbus/.

QuoteReplyEditDelete

 

 

2008-02-19 09:55:02     Re: compiling error

klaus hauer (AFGHANISTAN)

Message: 51274   

 

I need help again, I wanted to integrate my own libraries into the kernel, so I have copied my object files in a subdirectory into /uclinux-dist/bin. Later I configured the makefile in this subdirectory, the config file and the makefile in uclinux-dist directory.

 

The makefile in the subdirectory is shown below:

 

all: build/Makefile

$(MAKE) -C build install DESTDIR=$(STAGEDIR)

 

build/Makefile:

find . -type f -print0 | xargs -0 touch -r configure

set -e ; \

rm -rf build ; \

mkdir build ; \

cd build ; \

../configure $(CONFIGURE_OPTS)

 

clean:

rm -rf build

 

romfs:

cd $(STAGEDIR)/usr/bin && \

  $(ROMFSINST) -e CONFIG_LIB_MODBUS_FORCE /lib/Modbus/libmodbus.so

 

.PHONY: all clean romfs

 

Does anybody see a mistake, because I get the following error message:

 

make[1]: Betrete Verzeichnis '/home/captainkirk/uClinux-dist.R1.1-RC3/lib'

for i in  zlib Modbus libg zlib libjpeg libbfdsp  ; do make -C $i || exit $? ; done

make[2]: Betrete Verzeichnis '/home/captainkirk/uClinux-dist.R1.1-RC3/lib/zlib'

install -d /home/captainkirk/uClinux-dist.R1.1-RC3/staging/usr/lib

install -m0644 libz.a /home/captainkirk/uClinux-dist.R1.1-RC3/staging/usr/lib

install -d /home/captainkirk/uClinux-dist.R1.1-RC3/staging/usr/include

install -m0644 zconf.h zlib.h /home/captainkirk/uClinux-dist.R1.1-RC3/staging/usr/include

make[2]: Verlasse Verzeichnis '/home/captainkirk/uClinux-dist.R1.1-RC3/lib/zlib'

make[2]: Betrete Verzeichnis '/home/captainkirk/uClinux-dist.R1.1-RC3/lib/Modbus'

find . -type f -print0 | xargs -0 touch -r configure

touch: konnte Attribute von „configure“ nicht holen: No such file or directory

make[2]: *** [build/Makefile] Fehler 123

make[2]: Verlasse Verzeichnis '/home/captainkirk/uClinux-dist.R1.1-RC3/lib/Modbus'

make[1]: *** [all] Fehler 2

make[1]: Verlasse Verzeichnis '/home/captainkirk/uClinux-dist.R1.1-RC3/lib'

make: *** [subdirs] Fehler 1

TranslateQuoteReplyEditDelete

 

 

2008-02-19 11:47:37     Re: compiling error

Mike Frysinger (UNITED STATES)

Message: 51282    the error message tells you what's wrong: there is no configure script at lib/Modbus/configure, so you cant try and touch it there

 

you cant copy and paste other Makefile's if Modbus doesnt build like them, you need to customize the Makefile to build Modbus the way Modbus expects ... for that, you'll have to consult the documentation that comes with Modbus

Attachments

    Outcomes