avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] How attached are people to the implementation of rand


From: Pitchumani Sivanupandi
Subject: Re: [avr-libc-dev] How attached are people to the implementation of rand()/random()?
Date: Wed, 7 Dec 2016 11:39:20 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

On Wednesday 07 December 2016 02:39 AM, Georg-Johann Lay wrote:
George Spelvin schrieb:
Either Debian is running patches atop GNU, or avr-libc test suite has
not been adjusted to factor out different gcc versions.

The Debian diffs can be found in the right-hand column of
https://packages.debian.org/sid/gcc-avr
specifically
http://http.debian.net/debian/pool/main/g/gcc-avr/gcc-avr_4.9.2+Atmel3.5.3-1.diff.gz

That comes with external references, e.g. all the XMEGA stuff and many
others like 55-gcc-4.3.0-attiny167.patch etc.

I'd propose you use GCC trunk HEAD and Binutils master; if that and
rerunning bootstrap does not do the trick, you found a bug and I
wonder how the folks are testing avr-libc :-)

Presumably, someone adds this option by hand, because if avr-gcc
added it the error message would be "ld: cannot find -latmega128".

That is indeed what runtest.sh does. Here's the result of "bash -x ./runtest.sh -s".
The actual compiler invocation is the tenth last line.

[...]
+ avr-gcc -Wundef -I. -gdwarf-4 -W -Wall -pipe -Os -isystem ../../include -nostdlib -std=gnu99 -mmcu=atmega128 -o aux.elf time/aux.c ../../avr/lib/avr51/libc.a ../../avr/lib/avr51/libm.a ../../avr/lib/avr51/atmega128/libatmega128.a -lgcc avr-gcc: error: ../../avr/lib/avr51/atmega128/libatmega128.a: No such file or directory

Presumably, it goes like follows: avr-libc detects from the version of
avr-gcc that it does not add -latmega128 and hence skips building
libatmega128.a, hence no such .a in the avr-libc build tree.

Yes. For gcc lesser than 5.1, it do not enable device library by default.

If the gcc is < 5.1 and patched to have device library, then users can use
--enable-device-lib option to configure avr-libc to build device libraries.

Regards,
Pitchumani



reply via email to

[Prev in Thread] Current Thread [Next in Thread]