rtems-libbsd

Joel Sherrill joel.sherrill at oarcorp.com
Mon Jun 22 23:55:51 UTC 2015



On 6/22/2015 6:43 PM, Wu, Mark H. wrote:
> I'm trying to build rtems-libbsd for the pc386 under Cygwin64. I first had some trouble in altq-subr.c, but have gotten around that by guarding a few lines relating to using the TSC on __rtems__. I wasn't sure if that was correct or not, but the result of the change should be that the system tries to measure the TSC rate under RTEMs.
>

I thought I had posted a patch but my git send-email configuration was wrong.
I posted my version of it today.

> Now the problem I'm having is a bit more baffling:
>
> make: Circular freebsd/contrib/libpcap/scanner.c <- freebsd/contrib/libpcap/scanner.c dependency dropped.
> i386-rtems4.11-gcc --pipe -B/<installDir>/i386-rtems4.11/pc386/lib/ -specs bsp_specs -qrtems     -mtune=i386      -Wall  -O2 -g  -fno-strict-aliasing -ffreestanding -fno-common -Irtemsbsd/include -Irtemsbsd/i386/include -Ifreebsd/sys -Ifreebsd/sys/i386/include -Ifreebsd/sys/contrib/altq -Ifreebsd/sys/contrib/pf -Ifreebsd/include -Ifreebsd/lib/libc/include -Ifreebsd/lib/libc/isc/include -Ifreebsd/lib/libc/resolv -Ifreebsd/lib/libutil -Ifreebsd/lib/libkvm -Ifreebsd/lib/libmemstat -Ifreebsd/lib/libipsec -Irtemsbsd/sys -ImDNSResponder/mDNSCore -ImDNSResponder/mDNSShared -ImDNSResponder/mDNSPosix -Itestsuite/include -DHAVE_RTEMS_PCI_H=1 -Wall -Wno-format -MT freebsd/contrib/libpcap/scanner.o -MD -MP -MF freebsd/contrib/libpcap/scanner.d -std=gnu11 -D__FreeBSD__=1 -DBSD=1 -DINET6 -D_U_=__attribute__((unused)) -DHAVE_LIMITS_H=1 -DHAVE_INTTYPES=1 -DHAVE_STDINT=1 -DHAVE_STRERROR=1 -DHAVE_STRLCPY=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_NET_IF_MEDIA_H=1 -DHAVE_
SYS
>   _IOCCOM_H=1 -DNEED_YYPARSE_WRAPPER=1 -Dyylval=pcap_lval -c freebsd/contrib/libpcap/scanner.c -o freebsd/contrib/libpcap/scanner.o
> /bin/sh: -c: line 0: syntax error near unexpected token `('
> /bin/sh: -c: line 0: `i386-rtems4.11-gcc --pipe -B/<installDir>/i386-rtems4.11/pc386/lib/ -specs bsp_specs -qrtems     -mtune=i386      -Wall  -O2 -g  -fno-strict-aliasing -ffreestanding -fno-common -Irtemsbsd/include -Irtemsbsd/i386/include -Ifreebsd/sys -Ifreebsd/sys/i386/include -Ifreebsd/sys/contrib/altq -Ifreebsd/sys/contrib/pf -Ifreebsd/include -Ifreebsd/lib/libc/include -Ifreebsd/lib/libc/isc/include -Ifreebsd/lib/libc/resolv -Ifreebsd/lib/libutil -Ifreebsd/lib/libkvm -Ifreebsd/lib/libmemstat -Ifreebsd/lib/libipsec -Irtemsbsd/sys -ImDNSResponder/mDNSCore -ImDNSResponder/mDNSShared -ImDNSResponder/mDNSPosix -Itestsuite/include -DHAVE_RTEMS_PCI_H=1 -Wall -Wno-format -MT freebsd/contrib/libpcap/scanner.o -MD -MP -MF freebsd/contrib/libpcap/scanner.d -std=gnu11 -D__FreeBSD__=1 -DBSD=1 -DINET6 -D_U_=__attribute__((unused)) -DHAVE_LIMITS_H=1 -DHAVE_INTTYPES=1 -DHAVE_STDINT=1 -DHAVE_STRERROR=1 -DHAVE_STRLCPY=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_NE
T_I
>   F_MEDIA_H=1 -DHAVE_SYS_IOCCOM_H=1 -DNEED_YYPARSE_WRAPPER=1 -Dyylval=pcap_lval -c freebsd/contrib/libpcap/scanner.c -o freebsd/contrib/libpcap/scanner.o'
> Makefile:114: recipe for target 'freebsd/contrib/libpcap/scanner.o' failed
> make: *** [freebsd/contrib/libpcap/scanner.o] Error 1
>
> The circular reference appears to be line 111 of the makefile.
>
> I can't figure out what's causing the other errors - it looks like the shell is trying to *run* scanner.c? I don't see where this is happening. And scanner.c appears to be an autogenerated C file, as well.

I have been building with waf and it builds.

I am guessing something is not matching between the waf script and the Makefile.

Some tests run, others don't for me.

> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
>

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the users mailing list