[riot-devel] Απ: Problem with "make" -lm missing.

MiTsArAs Jimaras Mits_swim at hotmail.com
Tue Aug 9 10:27:04 CEST 2016


Problem solved.

Now I have another problem!

I compile on native board, and everything is alright.

When I am trying to compile on qemu-i386, it seems to start, but I get no results. All I get is:

Building application "time" for "qemu-i386" with MCU "x86".

"make" -C /home/d/RIOT/pkg/tlsf
rm -rf /home/d/RIOT/examples/time/bin/pkg/qemu-i386/tlsf/src
mkdir -p /home/d/RIOT/examples/time/bin/pkg/qemu-i386/tlsf/src
patching file Makefile
patching file tlsf-malloc.c
patching file tlsf-malloc.h
patching file tlsf.c
patching file tlsf.h
"make" -C /home/d/RIOT/boards/qemu-i386
"make" -C /home/d/RIOT/boards/x86-multiboot-common
"make" -C /home/d/RIOT/core
"make" -C /home/d/RIOT/cpu/x86
"make" -C /home/d/RIOT/drivers
"make" -C /home/d/RIOT/sys
"make" -C /home/d/RIOT/sys/auto_init
"make" -C /home/d/RIOT/sys/quad_math
   text   data    bss    dec    hex filename
 123739   2392  68228 194359  2f737 /home/d/RIOT/examples/time/bin/qemu-i386/time.elf
true
exec /home/d/RIOT/boards/qemu-i386/dist/term.py qemu-system-i386 /home//RIOT/examples/time/bin /home/d/RIOT/examples/time/bin/qemu-i386/time.hex
Type 'exit' to exit.
Starting QEMU: qemu-system-i386 -serial tcp:0.0.0.0:55893 -nographic -monitor /dev/null -kernel /home/d/RIOT/examples/time/bin/qemu-i386/time.hex -m size=512

2016-08-09 11:19:44.436878: Interrupt handling initialized
2016-08-09 11:19:44.437139: PIC initialized
2016-08-09 11:19:44.437568: Warning: Your hardware does not support the NX bit!
2016-08-09 11:19:44.437834:          Setting PT_XD = 0.
2016-08-09 11:19:44.438586: Kernel memory: 0x100000 - 0x132000
2016-08-09 11:19:44.438882:   .text:   0x100060 - 0x1172ef
2016-08-09 11:19:44.439173:   .rodata: 0x118000 - 0x11ae08
2016-08-09 11:19:44.439451:   .data:   0x120000 - 0x1208e8
2016-08-09 11:19:44.439737:   .bss:    0x121000 - 0x131a84
2016-08-09 11:19:44.440049: Unmapped memory: 0x132000 - 0x140000
2016-08-09 11:19:44.440254: Heap start: 0x140000
2016-08-09 11:19:44.440625:   0000000000000000 - 000000000009fc00 (usable)
2016-08-09 11:19:44.441091:   000000000009fc00 - 00000000000a0000 (unusable: reseved)
2016-08-09 11:19:44.441545:   00000000000f0000 - 0000000000100000 (unusable: reseved)
2016-08-09 11:19:44.441919:   0000000000100000 - 000000001ffe0000 (usable)
2016-08-09 11:19:44.674721:   000000001ffe0000 - 0000000020000000 (unusable: reseved)
2016-08-09 11:19:44.675258:   00000000fffc0000 - 0000000100000000 (unusable: reseved)
2016-08-09 11:19:44.676789: There are 130734 free pages (510.680 MB) available for the heap.
2016-08-09 11:19:44.677060: Virtual memory initialized
2016-08-09 11:19:44.677378: RTC initialized [08:19:44, 2016-08-09]
2016-08-09 11:19:44.677551: PIT initialized
2016-08-09 11:19:44.677769: Looking up PCI devices
2016-08-09 11:19:44.678502:   00:00.0 "Intel Corporation": "440FX - 82441FX PMC [Natoma]" (Bridge device: Host bridge, rev: 02)
2016-08-09 11:19:44.679282:   00:01.0 "Intel Corporation": "82371SB PIIX3 ISA [Natoma/Triton II]" (Bridge device: ISA bridge, rev: 00)
2016-08-09 11:19:44.680175:   00:01.1 "Intel Corporation": "82371SB PIIX3 IDE [Natoma/Triton II]" (Mass storage controller: IDE controller, rev: 00)
2016-08-09 11:19:44.680531:     BAR 4: I/O space, ports 0xc040-0xc04f
2016-08-09 11:19:44.681289:   00:01.3 "Intel Corporation": "82371AB/EB/MB PIIX4 ACPI" (Bridge device: Other bridge device, rev: 03)
2016-08-09 11:19:44.681535:     IRQ: new = 10, old = 9
2016-08-09 11:19:44.682184:   00:02.0 "0x1234": "0x1111" (Display controller: VGA-compatible controller, rev: 02)
2016-08-09 11:19:44.695092:     BAR 0: memory, physical = 0xfd000000-0xfdffffff, virtual = 0x0023d000-0x0123cfff
2016-08-09 11:19:44.695797:     BAR 2: memory, physical = 0xfebf0000-0xfebf0fff, virtual = 0x1fff7000-0x1fff7fff
2016-08-09 11:19:44.696827:   00:03.0 "Intel Corporation": "82540EM Gigabit Ethernet Controller" (Network controller: Ethernet controller, rev: 03)
2016-08-09 11:19:44.697108:     IRQ: new = 10, old = 11
2016-08-09 11:19:44.697756:     BAR 0: memory, physical = 0xfebc0000-0xfebdffff, virtual = 0x1fff9000-0x20018fff
2016-08-09 11:19:44.698100:     BAR 1: I/O space, ports 0xc000-0xc03f
2016-08-09 11:19:44.698438: RIOT x86 hardware initialization complete.
2016-08-09 11:19:44.698729: RIOT board initialization complete.
2016-08-09 11:19:44.699216: main(): This is RIOT! (Version: 2016.10-devel-21-gcf11a-D)


After this, it just don't run. It was supposed to show a clock to me.

________________________________
Από: devel <devel-bounces at riot-os.org> εκ μέρους του Martine Lenders <mail at martine-lenders.eu>
Στάλθηκε: Τρίτη, 9 Αυγούστου 2016 10:22 πμ
Προς: RIOT OS kernel developers
Θέμα: Re: [riot-devel] Problem with "make" -lm missing.

Oops, forgot to provide the link for [1]:
https://github.com/RIOT-OS/RIOT/wiki/Family%3A-native#dependencies

2016-08-09 9:19 GMT+02:00 Laurent Navet <laurent.navet at gmail.com>:
> Hi,
>
> Have you multilib support enabled and installed ?
>
> https://github.com/RIOT-OS/RIOT/wiki/Family:-native
>
> 2016-08-09 9:02 UTC+02:00, MiTsArAs Jimaras <Mits_swim at hotmail.com>:
>> Hello to all.
>> I am trying to build an app with  "make clean all flash term" on native
>> platform, and all I get as a result that:
>>
>> Building application "time" for "native" with MCU "native".
>>
>> "make" -C /home/d/RIOT/boards/native
>> "make" -C /home/d/RIOT/boards/native/drivers
>> "make" -C /home/d/RIOT/core
>> "make" -C /home/d/RIOT/cpu/native
>> "make" -C /home/d/RIOT/cpu/native/periph
>> "make" -C /home/d/RIOT/drivers
>> "make" -C /home/d/RIOT/sys
>> "make" -C /home/d/RIOT/sys/auto_init
>> /usr/bin/ld: skipping incompatible
>> /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/../../../../lib/libm.so when
>> searching for -lm
>> /usr/bin/ld: skipping incompatible
>> /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/../../../../lib/libm.a when searching
>> for -lm
>> /usr/bin/ld: skipping incompatible /lib/../lib/libm.so when searching for
>> -lm
>> /usr/bin/ld: skipping incompatible /lib/../lib/libm.a when searching for
>> -lm
>> /usr/bin/ld: skipping incompatible /usr/lib/../lib/libm.so when searching
>> for -lm
>> /usr/bin/ld: skipping incompatible /usr/lib/../lib/libm.a when searching for
>> -lm
>> /usr/bin/ld: skipping incompatible
>> /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/../../../libm.so when searching for
>> -lm
>> /usr/bin/ld: skipping incompatible
>> /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/../../../libm.a when searching for
>> -lm
>> /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
>> /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
>> /usr/bin/ld: cannot find -lm
>> collect2: error: ld returned 1 exit status
>> make: *** [/home/d/RIOT/examples/time/../../Makefile.include:261: all]
>> Error 1
>>
>> I am using ArchLinux. What am I doing wrong?
>> Thanks!
>>
>>
>>
>
>
> --
> « On ne resout pas un probleme avec les modes de pensee qui l'ont engendre. »
> « You cannot solve current problems with current thinking. Current
> problems are the result of current thinking »
> _______________________________________________
> devel mailing list
> devel at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel
_______________________________________________
devel mailing list
devel at riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20160809/d0b13723/attachment.html>


More information about the devel mailing list