having issues building nard
Ronny Nilsson
rln-nard at arbetsmyra.dyndns.org
Mon Aug 18 23:20:09 CEST 2014
Hi timball
It seems you have somehow mixed you PC native compiler and the ARM cross
compiler. The x86_64 compiler of your PC most likely can't build for ARM, but
it has tried before giving up. Later on, when you use nard-cc it too gets
confused. Am I right guessing you have tried modifying the kernel
configuration? Things like this might happen then. There is a guide for that
in the documentation:
http://www.arbetsmyra.dyndns.org/nard/advance.html#kernelconf
You need to clean the tree and start over:
cd nard/apps/linux-kernel/
make clean
make
If that doesn't work your kernelconf might be invalid.
Delete "platform/skeleton/linux-rpi-3.10.y.config" and make distclean instead
of clean above. It will however delete the tree so backup any changes you
would like to keep first.
Hope it helps!
/Ronny
--------------------------------
> I’ve been fighting the build system for nard for a bit and gotten
> almost all the way until about here :
>
> make[1]: Entering directory `/home/timball/junk/work/nard/nard/platform'
> cc
> /home/timball/junk/work/nard/nard/intermediate/fs/lib/modules/3.10.19/build
>/arch/arm/boot/compressed/piggy.gzip.o -o
> /home/timball/junk/work/nard/nard/intermediate/fs/lib/modules/3.10.19/build
>/arch/arm/boot/compressed/piggy.gzip /usr/bin/ld: unknown architecture of
> input file
> `/home/timball/junk/work/nard/nard/intermediate/fs/lib/modules/3.10.19/buil
>d/arch/arm/boot/compressed/piggy.gzip.o' is incompatible with i386:x86-64
> output
> /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/crt1.o: In
> function `_start':
> (.text+0x20): undefined reference to `main'
> collect2: error: ld returned 1 exit status
>
> not sure what to do about it . tried to use the included
> util/bin/nard-cc instead of the makefile specified cc and still get
> similar issues :
>
> timball at smokehouse:~/junk/work/nard/nard$ ./util/bin/nard-cc
> /home/timball/junk/work/nard/nard/intermediate/fs/lib/modules/3.10.19/build
>/arch/arm/boot/compressed/piggy.gzip.o -o
> /home/timball/junk/work/nard/nard/intermediate/fs/lib/modules/3.10.19/build
>/arch/arm/boot/compressed/piggy.gzip
> /home/timball/junk/work/nard/nard/util/crosstool-ng/crosstool-ng-1.18.0/arm
>-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot/usr/lib/crt1.o: In
> function `_start':
> init.c:(.text+0x34): undefined reference to `main'
> collect2: ld returned 1 exit status
>
> my system is a :
>
> timball at smokehouse:~/junk/work/nard/nard$ uname -a
> Linux smokehouse 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux
>
> running :
>
> timball at smokehouse:~/junk/work/nard/nard$ lsb_release -d
> Description: Debian GNU/Linux 7.4 (wheezy)
>
> ultimate goal is to add some software to nard so this is just a small
> step in the long walk to reproducibility .
>
> --timball
More information about the Nard
mailing list