Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training


Compilation error - FreeRTOS-simulator-for-Linux

Posted by sathishkc2005 on June 22, 2014

Hi, I'm a Newbie in freertos. I downloaded the source code from http://www.freertos.org/FreeRTOS-simulator-for-Linux.htm and tried building the source code in eclipse environment (ubuntu 12.04.3).Also tried to do make all from Debug directory. I get series of linker errors:

./AsyncIO/PosixMessageQueueIPC.o: In function xPosixIPCOpen': /home/sathish/Posix_GCC_Simulator/FreeRTOS_Posix/Debug/../AsyncIO/PosixMessageQueueIPC.c:44: undefined reference tomqopen' /home/sathish/PosixGCCSimulator/FreeRTOSPosix/Debug/../AsyncIO/PosixMessageQueueIPC.c:47: undefined reference to mq_unlink' /home/sathish/Posix_GCC_Simulator/FreeRTOS_Posix/Debug/../AsyncIO/PosixMessageQueueIPC.c:85: undefined reference tomqnotify' ./AsyncIO/PosixMessageQueueIPC.o: In function vPosixIPCClose': /home/sathish/Posix_GCC_Simulator/FreeRTOS_Posix/Debug/../AsyncIO/PosixMessageQueueIPC.c:96: undefined reference tomqclose' /home/sathish/PosixGCCSimulator/FreeRTOSPosix/Debug/../AsyncIO/PosixMessageQueueIPC.c:99: undefined reference to mq_unlink' ./AsyncIO/PosixMessageQueueIPC.o: In functionlPosixIPCSendMessage': /home/sathish/PosixGCCSimulator/FreeRTOSPosix/Debug/../AsyncIO/PosixMessageQueueIPC.c:110: undefined reference to mq_send' ./AsyncIO/PosixMessageQueueIPC.o: In functionlPosixIPCReceiveMessage': /home/sathish/PosixGCCSimulator/FreeRTOSPosix/Debug/../AsyncIO/PosixMessageQueueIPC.c:131: undefined reference to mq_receive' ./AsyncIO/PosixMessageQueueIPC.o: In functionvPosixIPCEmpty': /home/sathish/PosixGCCSimulator/FreeRTOSPosix/Debug/../AsyncIO/PosixMessageQueueIPC.c:148: undefined reference to mq_receive' ./AsyncIO/PosixMessageQueueIPC.o: In functionprvPosixIPCInterruptHandler': /home/sathish/PosixGCCSimulator/FreeRTOSPosix/Debug/../AsyncIO/PosixMessageQueueIPC.c:177: undefined reference to `mqnotify' collect2: ld returned 1 exit status

Can anyone let me know where would i get those missing files /libs which have all these defintions?


Best regards Sathish

Compilation error - FreeRTOS-simulator-for-Linux

Posted by rtel on June 27, 2014

Sorry for the delay replying - for some reason I missed your post.

The port you are using is a 'contributed' port rather than an official port, so no not supported by us. All the same I would give you an answer if I could, but as I'm not familiar with the port or with Linux I'm afraid I'm no wiser than you on this one - although I do note that Googleing "undefined reference to mq_unlink" in quotes brings up lots of results.


Compilation error - FreeRTOS-simulator-for-Linux

Posted by vmayoral on August 8, 2014

I reproduced the error and indeed, in Linux, there's an issue when compiling the POSIX simulator (build log at https://gist.github.com/vmayoral/32292d47b84335f698bd).

I mailed the author of the port.

Let's wait for his feedback.

Compilation error - FreeRTOS-simulator-for-Linux

Posted by meeusr on December 14, 2014

I had the same error and in my case it can be resolved by putting the -lrt at the end of the link statement instead of somewhere in the middle.

This needs to be done in all the subdir.mk files and the makefile in the root of the Release directory as well (In case you build the Release).

Happy building

Regards, Ronny

[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]

Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.

Free TCP/IP and file system demos for the RTOS

Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists