having issues building nard

Timothy Ball timball at gmail.com
Fri Aug 22 22:35:07 CEST 2014


huh . i tried that and it didn't help . then i tried to just rm -rf
and start from scratch and do a make consoleserver

this time i end w/

```
make[2]: Circular busybox-1.22.1 <- busybox-1.22.1 dependency dropped.
make[2]: Circular
/home/timball/junk/work/raspberrypi/nard/nard/intermediate/fs/bin/busybox
<- busybox-1.22.1 dependency dropped.
make[2]: Circular busybox-1.22.1/.nard-build <- busybox-1.22.1
dependency dropped.
make[2]: Circular busybox-1.22.1/.config <- busybox-1.22.1 dependency dropped.
make[2]: Circular busybox-1.22.1/.nard-extract <- busybox-1.22.1
dependency dropped.
test -d "busybox-1.22.1 busybox-1.22.1" || mkdir -p "busybox-1.22.1
busybox-1.22.1"; if test -e "busybox-1.22.1 busybox-1.22.1.tar.bz2";
then tar --strip-components=1 -C "busybox-1.22.1 busybox-1.22.1" -xvjf
"busybox-1.22.1 busybox-1.22.1.tar.bz2"; fi; if test -e
"busybox-1.22.1 busybox-1.22.1.tar.gz"; then tar --strip-components=1
-C "busybox-1.22.1 busybox-1.22.1" -xvzf "busybox-1.22.1
busybox-1.22.1.tar.gz"; fi; test -d "busybox" || ln -s "busybox-1.22.1
busybox-1.22.1" "busybox"; touch "busybox-1.22.1/.nard-extract"
touch: cannot touch `busybox-1.22.1/.nard-extract': No such file or directory
make[2]: *** [busybox-1.22.1/.nard-extract] Error 1
make[2]: Leaving directory
`/home/timball/junk/work/raspberrypi/nard/nard/apps/busybox'
make[1]: *** [busybox/busybox-1.22.1] Error 2
make[1]: Leaving directory `/home/timball/junk/work/raspberrypi/nard/nard/apps'
make: *** [apps] Error 2
```

which is some funny test . it ends up creating a busybox dir like this

```
timball at smokehouse:~/junk/work/raspberrypi/nard/nard$  ls -la apps/busybox
total 4332
drwxr-xr-x  3 timball timball     146 Aug 22 16:31 .
drwxr-xr-x 14 timball timball    4096 Jun 24 08:19 ..
lrwxrwxrwx  1 timball timball      29 Aug 22 16:31 busybox ->
busybox-1.22.1 busybox-1.22.1
-rw-r--r--  1 timball timball 2201917 Jun 24 08:19 busybox-1.21.1.tar.bz2
drwxr-xr-x  2 timball timball       6 Aug 22 16:31 busybox-1.22.1 busybox-1.22.1
-rw-r--r--  1 timball timball 2218650 Jun 24 08:19 busybox-1.22.1.tar.bz2
-rw-r--r--  1 timball timball      27 Jun 24 08:19 .gitignore
-rw-r--r--  1 timball timball    2201 Jun 24 08:19 Makefile
```

i thought it'd be easy to tweak the Makefile ... nope !

--timball


On Mon, Aug 18, 2014 at 5:20 PM, Ronny Nilsson
<rln-nard at arbetsmyra.dyndns.org> wrote:
> 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



-- 
        GPG key available on pgpkeys.mit.edu
pub  1024D/511FBD54 2001-07-23 Timothy Lu Hu Ball <timball at tux.org>
Key fingerprint = B579 29B0 F6C8 C7AA 3840  E053 FE02 BB97 511F BD54



More information about the Nard mailing list