[riot-users] Unable to compile in native

Suvrat Alshi tobaccopipeyoyo at gmail.com
Thu Jan 14 05:28:49 CET 2016


Hi

gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.4.7-8ubuntu1'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran --prefix=/usr --program-suffix=-4.4
--enable-shared --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --disable-libmudflap --disable-werror
--with-arch-32=i686 --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.7 (Ubuntu/Linaro 4.4.7-8ubuntu1)


Distributor ID:    Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:    14.04
Codename:    trusty


Native compile does not go through.
I keep getting following error

"make" -C /home/riot/RIOT/boards/native
"make" -C /home/riot/RIOT/boards/native/drivers
"make" -C /home/riot/RIOT/core
"make" -C /home/riot/RIOT/cpu/native
cc1: warnings being treated as errors
In file included from /home/riot/RIOT/sys/include/net/ethernet/hdr.h:27,
                 from /home/riot/RIOT/cpu/native/include/netdev2_tap.h:30,
                 from /home/riot/RIOT/cpu/native/native_cpu.c:53:
/home/riot/RIOT/core/include/byteorder.h: In function ‘byteorder_swaps’:
/home/riot/RIOT/core/include/byteorder.h:288: error: implicit
declaration of function ‘__builtin_bswap16’
make[2]: *** [/home/riot/RIOT/examples/default/bin/native/cpu/native_cpu.o]
Error 1
make[1]: *** [ALL--/home/riot/RIOT/cpu/native] Error 2
make: *** [all] Error 2


Please advice.
Thanks,
Suvrat

On Mon, Jan 11, 2016 at 12:50 AM, Kaspar Schleiser <kaspar at schleiser.de> wrote:
> Hey Suvrat,
>
> On 01/11/2016 03:06 AM, Suvrat Alshi wrote:
>> First time with RIOT
> Welcome!
>
>> make: *** [all] Error 2
>>
>>
>> Please advice where I'm going wrong.
>
> We'll need more information.
> What toolchain are you using (please send the output of "gcc -v"), and
> which distribution are you using?
>
> Kaspar
> _______________________________________________
> users mailing list
> users at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/users


More information about the users mailing list