* Re: [Xenomai-help] xenomai on Blackfin BF537 @ 2008-12-01 13:59 Daniele Pagani 2008-12-01 14:11 ` Philippe Gerum 0 siblings, 1 reply; 8+ messages in thread From: Daniele Pagani @ 2008-12-01 13:59 UTC (permalink / raw) To: xenomai [-- Attachment #1: Type: text/plain, Size: 438 bytes --] Dear Sirs, I'm using Xenomai with uclinux-dist-2008R1.5 on bf537. Then, it is possible to use native api with a fdpic elf format? I receive warning like "relocation references a different segment". I compile with bfin-linux-uclibc-gcc .... -lnative. In my code I create 2 real time tasks. All works fine when I use flat format, but now I need to use fdpic elf format and I receive errors.x Best regards, Daniele. [-- Attachment #2: Type: text/html, Size: 1447 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] xenomai on Blackfin BF537 2008-12-01 13:59 [Xenomai-help] xenomai on Blackfin BF537 Daniele Pagani @ 2008-12-01 14:11 ` Philippe Gerum 2008-12-01 14:49 ` Daniele Pagani 0 siblings, 1 reply; 8+ messages in thread From: Philippe Gerum @ 2008-12-01 14:11 UTC (permalink / raw) To: Daniele Pagani; +Cc: xenomai Daniele Pagani wrote: > > Dear Sirs, > I'm using Xenomai with uclinux-dist-2008R1.5 on bf537. > > Then, it is possible to use native api with a fdpic elf format? > > I receive warning like "relocation references a different segment". > > I compile with bfin-linux-uclibc-gcc .... -lnative. > We do use the fdpic format for all libs on blackfin. xeno-config --cflags xeno-config --ldflags should be used to get the proper compilation/link flags. > In my code I create 2 real time tasks. > > All works fine when I use flat format, but now I need to use fdpic elf > format and I receive errors.x > > Best regards, > Daniele. > > > ------------------------------------------------------------------------ > > _______________________________________________ > Xenomai-help mailing list > Xenomai-help@domain.hid > https://mail.gna.org/listinfo/xenomai-help -- Philippe. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] xenomai on Blackfin BF537 2008-12-01 14:11 ` Philippe Gerum @ 2008-12-01 14:49 ` Daniele Pagani 2008-12-01 15:08 ` Philippe Gerum 0 siblings, 1 reply; 8+ messages in thread From: Daniele Pagani @ 2008-12-01 14:49 UTC (permalink / raw) To: rpm; +Cc: xenomai Dear Philippe, thank you very much for your very fast answer. Anyway, please consider that I'm newbie about the matter, so, where I need to write these lines? I find in: /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/bin the xeno-config command. Then, I run: ./xeno-config --xeno-cflags ./xeno-config --xeno-ldflags Then, what I need to do? Do I need to recompile the kernel? Best regards, Daniele. ----- Original Message ----- From: "Philippe Gerum" <rpm@xenomai.org> To: "Daniele Pagani" <danielepagani@domain.hid> Cc: <xenomai@xenomai.org> Sent: Monday, December 01, 2008 3:11 PM Subject: Re: [Xenomai-help] xenomai on Blackfin BF537 > Daniele Pagani wrote: >> >> Dear Sirs, >> I'm using Xenomai with uclinux-dist-2008R1.5 on bf537. >> >> Then, it is possible to use native api with a fdpic elf format? >> >> I receive warning like "relocation references a different segment". >> >> I compile with bfin-linux-uclibc-gcc .... -lnative. >> > > We do use the fdpic format for all libs on blackfin. > > xeno-config --cflags > xeno-config --ldflags > > should be used to get the proper compilation/link flags. > >> In my code I create 2 real time tasks. >> >> All works fine when I use flat format, but now I need to use fdpic elf >> format and I receive errors.x >> >> Best regards, >> Daniele. >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Xenomai-help mailing list >> Xenomai-help@domain.hid >> https://mail.gna.org/listinfo/xenomai-help > > > -- > Philippe. > > > > -- > No virus found in this incoming message. > Checked by AVG. > Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date: > 30/11/2008 17.53 > > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] xenomai on Blackfin BF537 2008-12-01 14:49 ` Daniele Pagani @ 2008-12-01 15:08 ` Philippe Gerum 2008-12-02 9:01 ` Daniele Pagani 0 siblings, 1 reply; 8+ messages in thread From: Philippe Gerum @ 2008-12-01 15:08 UTC (permalink / raw) To: Daniele Pagani; +Cc: xenomai Daniele Pagani wrote: > Dear Philippe, > > thank you very much for your very fast answer. > > Anyway, please consider that I'm newbie about the matter, > so, > where I need to write these lines? > > I find in: > /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/bin > the xeno-config command. > > Then, I run: > ./xeno-config --xeno-cflags > ./xeno-config --xeno-ldflags > As you may have noticed, those commands output a set of compilation and link flags. Copy&paste this output verbatim respectively to the CFLAGS and LDFLAGS variables from your Makefile to build your application. > Then, what I need to do? > Do I need to recompile the kernel? > No. > Best regards, > Daniele. > > ----- Original Message ----- From: "Philippe Gerum" <rpm@xenomai.org> > To: "Daniele Pagani" <danielepagani@domain.hid> > Cc: <xenomai@xenomai.org> > Sent: Monday, December 01, 2008 3:11 PM > Subject: Re: [Xenomai-help] xenomai on Blackfin BF537 > > >> Daniele Pagani wrote: >>> >>> Dear Sirs, >>> I'm using Xenomai with uclinux-dist-2008R1.5 on bf537. >>> >>> Then, it is possible to use native api with a fdpic elf format? >>> >>> I receive warning like "relocation references a different segment". >>> >>> I compile with bfin-linux-uclibc-gcc .... -lnative. >>> >> >> We do use the fdpic format for all libs on blackfin. >> >> xeno-config --cflags >> xeno-config --ldflags >> >> should be used to get the proper compilation/link flags. >> >>> In my code I create 2 real time tasks. >>> >>> All works fine when I use flat format, but now I need to use fdpic elf >>> format and I receive errors.x >>> >>> Best regards, >>> Daniele. >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Xenomai-help mailing list >>> Xenomai-help@domain.hid >>> https://mail.gna.org/listinfo/xenomai-help >> >> >> -- >> Philippe. >> >> >> >> -- >> No virus found in this incoming message. >> Checked by AVG. >> Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date: >> 30/11/2008 17.53 >> >> > > -- Philippe. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] xenomai on Blackfin BF537 2008-12-01 15:08 ` Philippe Gerum @ 2008-12-02 9:01 ` Daniele Pagani 2008-12-02 9:15 ` Philippe Gerum 0 siblings, 1 reply; 8+ messages in thread From: Daniele Pagani @ 2008-12-02 9:01 UTC (permalink / raw) To: rpm; +Cc: xenomai [-- Attachment #1: Type: text/plain, Size: 2758 bytes --] Dear Philippe, I've tried, anyway I receive errors. In attachment, my makefile and error executing it. Bf537 - uClinux-dist-2008R1.5-RC3. Best regards, Daniele. ----- Original Message ----- From: "Philippe Gerum" <rpm@xenomai.org> To: "Daniele Pagani" <danielepagani@domain.hid> Cc: <xenomai@xenomai.org> Sent: Monday, December 01, 2008 4:08 PM Subject: Re: [Xenomai-help] xenomai on Blackfin BF537 > Daniele Pagani wrote: >> Dear Philippe, >> >> thank you very much for your very fast answer. >> >> Anyway, please consider that I'm newbie about the matter, >> so, >> where I need to write these lines? >> >> I find in: >> /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/bin >> the xeno-config command. >> >> Then, I run: >> ./xeno-config --xeno-cflags >> ./xeno-config --xeno-ldflags >> > > As you may have noticed, those commands output a set of compilation and > link > flags. Copy&paste this output verbatim respectively to the CFLAGS and > LDFLAGS > variables from your Makefile to build your application. > >> Then, what I need to do? >> Do I need to recompile the kernel? >> > > No. > >> Best regards, >> Daniele. >> >> ----- Original Message ----- From: "Philippe Gerum" <rpm@xenomai.org> >> To: "Daniele Pagani" <danielepagani@domain.hid> >> Cc: <xenomai@xenomai.org> >> Sent: Monday, December 01, 2008 3:11 PM >> Subject: Re: [Xenomai-help] xenomai on Blackfin BF537 >> >> >>> Daniele Pagani wrote: >>>> >>>> Dear Sirs, >>>> I'm using Xenomai with uclinux-dist-2008R1.5 on bf537. >>>> >>>> Then, it is possible to use native api with a fdpic elf format? >>>> >>>> I receive warning like "relocation references a different segment". >>>> >>>> I compile with bfin-linux-uclibc-gcc .... -lnative. >>>> >>> >>> We do use the fdpic format for all libs on blackfin. >>> >>> xeno-config --cflags >>> xeno-config --ldflags >>> >>> should be used to get the proper compilation/link flags. >>> >>>> In my code I create 2 real time tasks. >>>> >>>> All works fine when I use flat format, but now I need to use fdpic elf >>>> format and I receive errors.x >>>> >>>> Best regards, >>>> Daniele. >>>> >>>> >>>> ------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> Xenomai-help mailing list >>>> Xenomai-help@domain.hid >>>> https://mail.gna.org/listinfo/xenomai-help >>> >>> >>> -- >>> Philippe. >>> >>> >>> >>> -- >>> No virus found in this incoming message. >>> Checked by AVG. >>> Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date: >>> 30/11/2008 17.53 >>> >>> >> >> > > > -- > Philippe. > > > > -- > No virus found in this incoming message. > Checked by AVG. > Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date: > 30/11/2008 17.53 > > [-- Attachment #2: Makefile --] [-- Type: application/octet-stream, Size: 2296 bytes --] #define CC CC = bfin-linux-uclibc-gcc CFLAGS = -O2 -fno-jump-tables -I/mnt/uClinux-dist-2008R1.5-RC3/staging/usr/include -L/mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib #declare a target (app) and list its dependants # specify the rule to build the target app: sport.o inizializza.o net.o audio.o coeff_iir.o Scaler_Render.o BiquadCascade32_Render.o Delay_Render.o AGCLimiterCore_Render.o ClipAsym_Render.o AGCNMaxAbs_Render.o AGCNMultiplier_Render.o AMF_ToStereo_Render.o AMF_ToMono_Render.o # $(CC) $(CFLAGS) -o app sport.o inizializza.o net.o audio.o coeff_iir.o Scaler_Render.o BiquadCascade32_Render.o Delay_Render.o AGCLimiterCore_Render.o ClipAsym_Render.o AGCNMaxAbs_Render.o AGCNMultiplier_Render.o AMF_ToStereo_Render.o AMF_ToMono_Render.o -lm -lpthread $(CC) -D_GNU_SOURCE -D_REENTRANT -D__XENO__ $(CFLAGS) -o app sport.o inizializza.o net.o audio.o coeff_iir.o Scaler_Render.o BiquadCascade32_Render.o Delay_Render.o AGCLimiterCore_Render.o ClipAsym_Render.o AGCNMaxAbs_Render.o AGCNMultiplier_Render.o AMF_ToStereo_Render.o AMF_ToMono_Render.o -lm -lpthread -lnative sport.o: sport.c $(CC) -D_GNU_SOURCE -D_REENTRANT -D__XENO__ $(CFLAGS) -c sport.c inizializza.o: inizializza.c $(CC) -D_GNU_SOURCE -D_REENTRANT -D__XENO__ $(CFLAGS) -c inizializza.c net.o: net.c $(CC) -D_GNU_SOURCE -D_REENTRANT -D__XENO__ -c net.c audio.o: audio.c $(CC) -D_GNU_SOURCE -D_REENTRANT -D__XENO__ $(CFLAGS) -c audio.c coeff_iir.o: coeff_iir.c $(CC) $(CFLAGS) -c coeff_iir.c Scaler_Render.o: Scaler_Render.s $(CC) $(CFLAGS) -c Scaler_Render.s BiquadCascade32_Render.o: BiquadCascade32_Render.s $(CC) $(CFLAGS) -c BiquadCascade32_Render.s Delay_Render.o: Delay_Render.s $(CC) $(CFLAGS) -c Delay_Render.s AGCLimiterCore_Render.o: AGCLimiterCore_Render.s $(CC) $(CFLAGS) -c AGCLimiterCore_Render.s ClipAsym_Render.o: ClipAsym_Render.s $(CC) $(CFLAGS) -c ClipAsym_Render.s AGCNMaxAbs_Render.o: AGCNMaxAbs_Render.s $(CC) $(CFLAGS) -c AGCNMaxAbs_Render.s AGCNMultiplier_Render.o: AGCNMultiplier_Render.s $(CC) $(CFLAGS) -c AGCNMultiplier_Render.s AMF_ToMono_Render.o: AMF_ToMono_Render.s $(CC) $(CFLAGS) -c AMF_ToMono_Render.s AMF_ToStereo_Render.o: AMF_ToStereo_Render.s $(CC) $(CFLAGS) -c AMF_ToStereo_Render.s [-- Attachment #3: error.make --] [-- Type: application/octet-stream, Size: 14802 bytes --] bfin-linux-uclibc-gcc -D_GNU_SOURCE -D_REENTRANT -D__XENO__ -O2 -fno-jump-tables -I/mnt/uClinux-dist-2008R1.5-RC3/staging/usr/include -L/mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib -o app sport.o inizializza.o net.o audio.o coeff_iir.o Scaler_Render.o BiquadCascade32_Render.o Delay_Render.o AGCLimiterCore_Render.o ClipAsym_Render.o AGCNMaxAbs_Render.o AGCNMultiplier_Render.o AMF_ToStereo_Render.o AMF_ToMono_Render.o -lm -lpthread -lnative /opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: libnative_la-task.o: cannot link non-fdpic object file into fdpic executable /opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: failed to merge target specific data of file /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o) /opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: libnative_la-init.o: cannot link non-fdpic object file into fdpic executable /opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: failed to merge target specific data of file /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-init.o) /opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: libnative_la-timer.o: cannot link non-fdpic object file into fdpic executable /opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: failed to merge target specific data of file /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-timer.o) /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_sigharden': ../../../../xenomai-2.4.0/src/skins/native/task.c:48: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:48: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_start': ../../../../xenomai-2.4.0/src/skins/native/task.c:150: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:150: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_bind': ../../../../xenomai-2.4.0/src/skins/native/task.c:175: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:175: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_suspend': ../../../../xenomai-2.4.0/src/skins/native/task.c:181: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:181: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_resume': ../../../../xenomai-2.4.0/src/skins/native/task.c:186: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:186: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_yield': ../../../../xenomai-2.4.0/src/skins/native/task.c:208: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:208: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_set_periodic': ../../../../xenomai-2.4.0/src/skins/native/task.c:213: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:213: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_wait_period': ../../../../xenomai-2.4.0/src/skins/native/task.c:220: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:220: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_set_priority': ../../../../xenomai-2.4.0/src/skins/native/task.c:226: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:226: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_sleep': ../../../../xenomai-2.4.0/src/skins/native/task.c:232: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:232: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_sleep_until': ../../../../xenomai-2.4.0/src/skins/native/task.c:238: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:238: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_unblock': ../../../../xenomai-2.4.0/src/skins/native/task.c:245: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:245: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_inquire': ../../../../xenomai-2.4.0/src/skins/native/task.c:250: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:250: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_notify': ../../../../xenomai-2.4.0/src/skins/native/task.c:256: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:256: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_set_mode': ../../../../xenomai-2.4.0/src/skins/native/task.c:265: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:265: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:274: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:274: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_slice': ../../../../xenomai-2.4.0/src/skins/native/task.c:302: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:302: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_send': ../../../../xenomai-2.4.0/src/skins/native/task.c:317: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:317: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_receive': ../../../../xenomai-2.4.0/src/skins/native/task.c:324: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:324: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_reply': ../../../../xenomai-2.4.0/src/skins/native/task.c:330: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:330: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_join': ../../../../xenomai-2.4.0/src/skins/native/task.c:311: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_self': ../../../../xenomai-2.4.0/src/skins/native/task.c:284: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:284: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:284: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:289: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:292: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:292: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:295: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_delete': ../../../../xenomai-2.4.0/src/skins/native/task.c:199: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:199: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:194: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_shadow': ../../../../xenomai-2.4.0/src/skins/native/task.c:159: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:161: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:161: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:161: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:167: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:169: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:169: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_create': ../../../../xenomai-2.4.0/src/skins/native/task.c:128: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:135: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:139: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:135: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:137: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-task.o): In function `rt_task_trampoline': ../../../../xenomai-2.4.0/src/skins/native/task.c:66: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:67: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:67: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:71: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:73: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:73: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:73: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:79: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:81: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:81: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/task.c:100: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-init.o): In function `xeno_bind_skin': ../../../../xenomai-2.4.0/include/asm-generic/bits/bind.h:61: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-init.o): In function `__init_xeno_interface': ../../../../xenomai-2.4.0/src/skins/native/init.c:44: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/init.c:44: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-init.o): In function `xeno_bind_skin': ../../../../xenomai-2.4.0/include/asm-generic/bits/bind.h:63: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-init.o): In function `__init_xeno_interface': ../../../../xenomai-2.4.0/src/skins/native/init.c:55: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/init.c:55: warning: warning: relocation references a different segment ../../../../xenomai-2.4.0/src/skins/native/init.c:55: warning: warning: relocation references a different segment /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/lib/libnative.a(libnative_la-init.o): In function `xeno_bind_skin': ../../../../xenomai-2.4.0/include/asm-generic/bits/bind.h:41: warning: relocation references symbol not defined in the module /opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status make: *** [app] Error 1 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] xenomai on Blackfin BF537 2008-12-02 9:01 ` Daniele Pagani @ 2008-12-02 9:15 ` Philippe Gerum 2008-12-02 9:42 ` Daniele Pagani 0 siblings, 1 reply; 8+ messages in thread From: Philippe Gerum @ 2008-12-02 9:15 UTC (permalink / raw) To: Daniele Pagani; +Cc: xenomai Daniele Pagani wrote: > Dear Philippe, > > I've tried, anyway I receive errors. > > In attachment, my makefile and error executing it. > -mfdpic > Bf537 - uClinux-dist-2008R1.5-RC3. > > Best regards, > Daniele. > > > ----- Original Message ----- From: "Philippe Gerum" <rpm@xenomai.org> > To: "Daniele Pagani" <danielepagani@domain.hid> > Cc: <xenomai@xenomai.org> > Sent: Monday, December 01, 2008 4:08 PM > Subject: Re: [Xenomai-help] xenomai on Blackfin BF537 > > >> Daniele Pagani wrote: >>> Dear Philippe, >>> >>> thank you very much for your very fast answer. >>> >>> Anyway, please consider that I'm newbie about the matter, >>> so, >>> where I need to write these lines? >>> >>> I find in: >>> /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/bin >>> the xeno-config command. >>> >>> Then, I run: >>> ./xeno-config --xeno-cflags >>> ./xeno-config --xeno-ldflags >>> >> >> As you may have noticed, those commands output a set of compilation >> and link >> flags. Copy&paste this output verbatim respectively to the CFLAGS and >> LDFLAGS >> variables from your Makefile to build your application. >> >>> Then, what I need to do? >>> Do I need to recompile the kernel? >>> >> >> No. >> >>> Best regards, >>> Daniele. >>> >>> ----- Original Message ----- From: "Philippe Gerum" <rpm@xenomai.org> >>> To: "Daniele Pagani" <danielepagani@domain.hid> >>> Cc: <xenomai@xenomai.org> >>> Sent: Monday, December 01, 2008 3:11 PM >>> Subject: Re: [Xenomai-help] xenomai on Blackfin BF537 >>> >>> >>>> Daniele Pagani wrote: >>>>> >>>>> Dear Sirs, >>>>> I'm using Xenomai with uclinux-dist-2008R1.5 on bf537. >>>>> >>>>> Then, it is possible to use native api with a fdpic elf format? >>>>> >>>>> I receive warning like "relocation references a different segment". >>>>> >>>>> I compile with bfin-linux-uclibc-gcc .... -lnative. >>>>> >>>> >>>> We do use the fdpic format for all libs on blackfin. >>>> >>>> xeno-config --cflags >>>> xeno-config --ldflags >>>> >>>> should be used to get the proper compilation/link flags. >>>> >>>>> In my code I create 2 real time tasks. >>>>> >>>>> All works fine when I use flat format, but now I need to use fdpic elf >>>>> format and I receive errors.x >>>>> >>>>> Best regards, >>>>> Daniele. >>>>> >>>>> >>>>> ------------------------------------------------------------------------ >>>>> >>>>> >>>>> _______________________________________________ >>>>> Xenomai-help mailing list >>>>> Xenomai-help@domain.hid >>>>> https://mail.gna.org/listinfo/xenomai-help >>>> >>>> >>>> -- >>>> Philippe. >>>> >>>> >>>> >>>> -- >>>> No virus found in this incoming message. >>>> Checked by AVG. >>>> Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date: >>>> 30/11/2008 17.53 >>>> >>>> >>> >>> >> >> >> -- >> Philippe. >> >> >> >> -- >> No virus found in this incoming message. >> Checked by AVG. >> Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date: >> 30/11/2008 17.53 >> >> -- Philippe. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] xenomai on Blackfin BF537 2008-12-02 9:15 ` Philippe Gerum @ 2008-12-02 9:42 ` Daniele Pagani 2008-12-02 9:48 ` Philippe Gerum 0 siblings, 1 reply; 8+ messages in thread From: Daniele Pagani @ 2008-12-02 9:42 UTC (permalink / raw) To: rpm; +Cc: xenomai Dear Philippe, I've received the same error. Any suggestions or tests to do? Thanks, Daniele. ----- Original Message ----- From: "Philippe Gerum" <rpm@xenomai.org> To: "Daniele Pagani" <danielepagani@domain.hid> Cc: <xenomai@xenomai.org> Sent: Tuesday, December 02, 2008 10:15 AM Subject: Re: [Xenomai-help] xenomai on Blackfin BF537 > Daniele Pagani wrote: >> Dear Philippe, >> >> I've tried, anyway I receive errors. >> >> In attachment, my makefile and error executing it. >> > > -mfdpic > >> Bf537 - uClinux-dist-2008R1.5-RC3. >> >> Best regards, >> Daniele. >> >> >> ----- Original Message ----- From: "Philippe Gerum" <rpm@xenomai.org> >> To: "Daniele Pagani" <danielepagani@domain.hid> >> Cc: <xenomai@xenomai.org> >> Sent: Monday, December 01, 2008 4:08 PM >> Subject: Re: [Xenomai-help] xenomai on Blackfin BF537 >> >> >>> Daniele Pagani wrote: >>>> Dear Philippe, >>>> >>>> thank you very much for your very fast answer. >>>> >>>> Anyway, please consider that I'm newbie about the matter, >>>> so, >>>> where I need to write these lines? >>>> >>>> I find in: >>>> /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/bin >>>> the xeno-config command. >>>> >>>> Then, I run: >>>> ./xeno-config --xeno-cflags >>>> ./xeno-config --xeno-ldflags >>>> >>> >>> As you may have noticed, those commands output a set of compilation >>> and link >>> flags. Copy&paste this output verbatim respectively to the CFLAGS and >>> LDFLAGS >>> variables from your Makefile to build your application. >>> >>>> Then, what I need to do? >>>> Do I need to recompile the kernel? >>>> >>> >>> No. >>> >>>> Best regards, >>>> Daniele. >>>> >>>> ----- Original Message ----- From: "Philippe Gerum" <rpm@xenomai.org> >>>> To: "Daniele Pagani" <danielepagani@domain.hid> >>>> Cc: <xenomai@xenomai.org> >>>> Sent: Monday, December 01, 2008 3:11 PM >>>> Subject: Re: [Xenomai-help] xenomai on Blackfin BF537 >>>> >>>> >>>>> Daniele Pagani wrote: >>>>>> >>>>>> Dear Sirs, >>>>>> I'm using Xenomai with uclinux-dist-2008R1.5 on bf537. >>>>>> >>>>>> Then, it is possible to use native api with a fdpic elf format? >>>>>> >>>>>> I receive warning like "relocation references a different segment". >>>>>> >>>>>> I compile with bfin-linux-uclibc-gcc .... -lnative. >>>>>> >>>>> >>>>> We do use the fdpic format for all libs on blackfin. >>>>> >>>>> xeno-config --cflags >>>>> xeno-config --ldflags >>>>> >>>>> should be used to get the proper compilation/link flags. >>>>> >>>>>> In my code I create 2 real time tasks. >>>>>> >>>>>> All works fine when I use flat format, but now I need to use fdpic >>>>>> elf >>>>>> format and I receive errors.x >>>>>> >>>>>> Best regards, >>>>>> Daniele. >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------ >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Xenomai-help mailing list >>>>>> Xenomai-help@domain.hid >>>>>> https://mail.gna.org/listinfo/xenomai-help >>>>> >>>>> >>>>> -- >>>>> Philippe. >>>>> >>>>> >>>>> >>>>> -- >>>>> No virus found in this incoming message. >>>>> Checked by AVG. >>>>> Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date: >>>>> 30/11/2008 17.53 >>>>> >>>>> >>>> >>>> >>> >>> >>> -- >>> Philippe. >>> >>> >>> >>> -- >>> No virus found in this incoming message. >>> Checked by AVG. >>> Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date: >>> 30/11/2008 17.53 >>> >>> > > > -- > Philippe. > > > > -- > No virus found in this incoming message. > Checked by AVG. > Version: 7.5.552 / Virus Database: 270.9.12/1823 - Release Date: > 01/12/2008 19.59 > > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai-help] xenomai on Blackfin BF537 2008-12-02 9:42 ` Daniele Pagani @ 2008-12-02 9:48 ` Philippe Gerum 0 siblings, 0 replies; 8+ messages in thread From: Philippe Gerum @ 2008-12-02 9:48 UTC (permalink / raw) To: Daniele Pagani; +Cc: xenomai Daniele Pagani wrote: > Dear Philippe, > > I've received the same error. > > Any suggestions or tests to do? > Yes, try understanding why the Xenomai tools and libraries do build fine in FDPIC mode by looking at the compilation output. If this is still not enough, please have a look at the Blackfin Wiki first to get familiar with the Blackfin toolchain: http://docs.blackfin.uclinux.org/doku.php, and possibly direct your questions regarding those aspects to one of the available Blackfin forums. > Thanks, > Daniele. > > ----- Original Message ----- From: "Philippe Gerum" <rpm@xenomai.org> > To: "Daniele Pagani" <danielepagani@domain.hid> > Cc: <xenomai@xenomai.org> > Sent: Tuesday, December 02, 2008 10:15 AM > Subject: Re: [Xenomai-help] xenomai on Blackfin BF537 > > >> Daniele Pagani wrote: >>> Dear Philippe, >>> >>> I've tried, anyway I receive errors. >>> >>> In attachment, my makefile and error executing it. >>> >> >> -mfdpic >> >>> Bf537 - uClinux-dist-2008R1.5-RC3. >>> >>> Best regards, >>> Daniele. >>> >>> >>> ----- Original Message ----- From: "Philippe Gerum" <rpm@xenomai.org> >>> To: "Daniele Pagani" <danielepagani@domain.hid> >>> Cc: <xenomai@xenomai.org> >>> Sent: Monday, December 01, 2008 4:08 PM >>> Subject: Re: [Xenomai-help] xenomai on Blackfin BF537 >>> >>> >>>> Daniele Pagani wrote: >>>>> Dear Philippe, >>>>> >>>>> thank you very much for your very fast answer. >>>>> >>>>> Anyway, please consider that I'm newbie about the matter, >>>>> so, >>>>> where I need to write these lines? >>>>> >>>>> I find in: >>>>> /mnt/uClinux-dist-2008R1.5-RC3/staging/usr/bin >>>>> the xeno-config command. >>>>> >>>>> Then, I run: >>>>> ./xeno-config --xeno-cflags >>>>> ./xeno-config --xeno-ldflags >>>>> >>>> >>>> As you may have noticed, those commands output a set of compilation >>>> and link >>>> flags. Copy&paste this output verbatim respectively to the CFLAGS and >>>> LDFLAGS >>>> variables from your Makefile to build your application. >>>> >>>>> Then, what I need to do? >>>>> Do I need to recompile the kernel? >>>>> >>>> >>>> No. >>>> >>>>> Best regards, >>>>> Daniele. >>>>> >>>>> ----- Original Message ----- From: "Philippe Gerum" <rpm@xenomai.org> >>>>> To: "Daniele Pagani" <danielepagani@domain.hid> >>>>> Cc: <xenomai@xenomai.org> >>>>> Sent: Monday, December 01, 2008 3:11 PM >>>>> Subject: Re: [Xenomai-help] xenomai on Blackfin BF537 >>>>> >>>>> >>>>>> Daniele Pagani wrote: >>>>>>> >>>>>>> Dear Sirs, >>>>>>> I'm using Xenomai with uclinux-dist-2008R1.5 on bf537. >>>>>>> >>>>>>> Then, it is possible to use native api with a fdpic elf format? >>>>>>> >>>>>>> I receive warning like "relocation references a different segment". >>>>>>> >>>>>>> I compile with bfin-linux-uclibc-gcc .... -lnative. >>>>>>> >>>>>> >>>>>> We do use the fdpic format for all libs on blackfin. >>>>>> >>>>>> xeno-config --cflags >>>>>> xeno-config --ldflags >>>>>> >>>>>> should be used to get the proper compilation/link flags. >>>>>> >>>>>>> In my code I create 2 real time tasks. >>>>>>> >>>>>>> All works fine when I use flat format, but now I need to use >>>>>>> fdpic elf >>>>>>> format and I receive errors.x >>>>>>> >>>>>>> Best regards, >>>>>>> Daniele. >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------ >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Xenomai-help mailing list >>>>>>> Xenomai-help@domain.hid >>>>>>> https://mail.gna.org/listinfo/xenomai-help >>>>>> >>>>>> >>>>>> -- >>>>>> Philippe. >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> No virus found in this incoming message. >>>>>> Checked by AVG. >>>>>> Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date: >>>>>> 30/11/2008 17.53 >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Philippe. >>>> >>>> >>>> >>>> -- >>>> No virus found in this incoming message. >>>> Checked by AVG. >>>> Version: 7.5.552 / Virus Database: 270.9.12/1821 - Release Date: >>>> 30/11/2008 17.53 >>>> >>>> >> >> >> -- >> Philippe. >> >> >> >> -- >> No virus found in this incoming message. >> Checked by AVG. >> Version: 7.5.552 / Virus Database: 270.9.12/1823 - Release Date: >> 01/12/2008 19.59 >> >> > > -- Philippe. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-12-02 9:48 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-12-01 13:59 [Xenomai-help] xenomai on Blackfin BF537 Daniele Pagani 2008-12-01 14:11 ` Philippe Gerum 2008-12-01 14:49 ` Daniele Pagani 2008-12-01 15:08 ` Philippe Gerum 2008-12-02 9:01 ` Daniele Pagani 2008-12-02 9:15 ` Philippe Gerum 2008-12-02 9:42 ` Daniele Pagani 2008-12-02 9:48 ` Philippe Gerum
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.