[parsec-users] Errors building uptcpip: `uname -i` unknown and conflicting types

Yungang Bao ybao at CS.Princeton.EDU
Wed Nov 28 00:18:16 EST 2012


Hi Brandon,

1) Yes, you can modify the "Makefile.config" for your platform.

2) There is a conflict type between the uptcpip library and your platform.

"__mbstate_t" is defined in both the library and Linux include files.

Please comment the definition of "__mbstate_t" in uptcpip/src/include/sys/bsd__types.h

Best Regards,
Yungang

----- Original Message -----
From: "Brandon Amos" <bdamos at vt.edu>
To: "Yungang Bao" <ybao at CS.Princeton.EDU>
Sent: Wednesday, November 28, 2012 3:01:11 AM
Subject: Re: [parsec-users] Errors building uptcpip: `uname -i` unknown and conflicting types

Hi Yungang , 

Thanks for the response. Do you know what I'm doing wrong for #2? I still have errors building uptcpip. 

Thanks, 
Brandon 


On 11/26/2012 08:42 PM, Yungang Bao wrote: 


Hi Brandon,

We got it. Thank you for the feedback.

Best Regards,
Yungang

----- Original Message -----
From: "Brandon Amos" <bdamos at vt.edu> To: parsec-users at lists.cs.princeton.edu Sent: Tuesday, November 27, 2012 1:40:47 AM
Subject: [parsec-users] Errors building uptcpip: `uname -i` unknown and	conflicting types

I'm running 64-bit Arch Linux with gcc 4.4.6, make 3.8.2, and python 3.3.

I'm currently having 2 different errors when building uptcpip:

1) Without any modifications, I get the following error:

    ./parsecmgmt -a build -p uptcpip
    [PARSEC] Packages to build: parsec.uptcpip

    [PARSEC] [========== Building package parsec.uptcpip [] ==========]
    [PARSEC] [---------- Analyzing package parsec.uptcpip ----------]
    [PARSEC] parsec.uptcpip does not depend on any other packages.
    [PARSEC] [---------- Building package parsec.uptcpip ----------]
    [PARSEC] Copying source code of package parsec.uptcpip.
    [PARSEC] Running 'env /usr/bin/make':
    cp: cannot stat ‘include/unknown’: No such file or directory
    make: *** [uptcp] Error 1
    [PARSEC] Error: 'env /usr/bin/make' failed.

=======
Question 1
=======
Is a feasible solution to this to modify `Makefile` and `Makefile.config` in
`parsec-3.0/pkgs/libs/uptcpip/src` and change the `uname -i` calls to 
`uname -m`?

2) After changing the `uname` calls, I get the following errors, which I 
haven't been able to diagnose.

=======
Question 2
=======
What am I doing to cause the following errors and how can I fix it?

    ./parsecmgmt -a build -p uptcpip
    [PARSEC] Packages to build: parsec.uptcpip

    [PARSEC] [========== Building package parsec.uptcpip [] ==========]
    [PARSEC] [---------- Analyzing package parsec.uptcpip ----------]
    [PARSEC] parsec.uptcpip does not depend on any other packages.
    [PARSEC] [---------- Building package parsec.uptcpip ----------]
    [PARSEC] Removing old build directory.
    [PARSEC] Copying source code of package parsec.uptcpip.
    [PARSEC] Running 'env /usr/bin/make':
    make[1]: Entering directory
    `$PARSEC_DIR/pkgs/libs/uptcpip/obj/amd64-linux.gcc/freebsd.kern'
    gcc -DX86_64 -D__LP64__ -rdynamic -ffreestanding -O2 -g -Wall
    -D_FREEBSD_KERNEL -D_GNU_SOURCE -DSMP -I../include/
    -I../include/opt/ -I../host.support/ -I../lib/ -c -o kern_tc.o kern_tc.c
    gcc -DX86_64 -D__LP64__ -rdynamic -ffreestanding -O2 -g -Wall
    -D_FREEBSD_KERNEL -D_GNU_SOURCE -DSMP -I../include/
    -I../include/opt/ -I../host.support/ -I../lib/ -c -o kern_shutdown.o
    kern_shutdown.c
    gcc -DX86_64 -D__LP64__ -rdynamic -ffreestanding -O2 -g -Wall
    -D_FREEBSD_KERNEL -D_GNU_SOURCE -DSMP -I../include/
    -I../include/opt/ -I../host.support/ -I../lib/ -c -o subr_prf.o
    subr_prf.c
    In file included from /usr/include/_G_config.h:20,
    from /usr/include/libio.h:32,
    from /usr/include/stdio.h:74,
    from subr_prf.c:68:
    /usr/include/wchar.h:94: error: conflicting types for ‘__mbstate_t’
    ../include/sys/bsd__types.h:105: note: previous declaration of
    ‘__mbstate_t’ was here
    make[1]: *** [subr_prf.o] Error 1
    make[1]: Leaving directory
    `$PARSEC_DIR/pkgs/libs/uptcpip/obj/amd64-linux.gcc/freebsd.kern'
    make[1]: Entering directory
    `$PARSEC_DIR/pkgs/libs/uptcpip/obj/amd64-linux.gcc/freebsd.netinet'
    gcc -DX86_64 -D__LP64__ -rdynamic -ffreestanding -O2 -g -Wall
    -D_FREEBSD_KERNEL -D_GNU_SOURCE -DSMP -I../include/
    -I../include/opt/ -I../host.support/ -I../lib/ -c -o if_ether.o
    if_ether.c
    In file included from /usr/include/_G_config.h:20,
    from /usr/include/libio.h:32,
    from /usr/include/stdio.h:74,
    from ../include/sys/bsd_libkern.h:48,
    from ../include/sys/bsd_systm.h:273,
    from if_ether.c:49:
    /usr/include/wchar.h:94: error: conflicting types for ‘__mbstate_t’
    ../include/sys/bsd__types.h:105: note: previous declaration of
    ‘__mbstate_t’ was here
    make[1]: *** [if_ether.o] Error 1
    make[1]: Leaving directory
    `$PARSEC_DIR/pkgs/libs/uptcpip/obj/amd64-linux.gcc/freebsd.netinet'
    make[1]: Entering directory
    `$PARSEC_DIR/pkgs/libs/uptcpip/obj/amd64-linux.gcc/host.support'
    gcc -DX86_64 -D__LP64__ -rdynamic -ffreestanding -O2 -g -Wall
    -D_FREEBSD_KERNEL -D_GNU_SOURCE -DSMP -I../include/
    -I../include/opt/ -I../host.support/ -I../lib/ -c -o host_serv.o
    host_serv.c
    host_serv.c: In function ‘host_setup_link’:
    host_serv.c:292: warning: implicit declaration of function ‘htons’
    host_serv.c: In function ‘host_connect_link’:
    host_serv.c:322: warning: implicit declaration of function ‘htonl’
    gcc -DX86_64 -D__LP64__ -rdynamic -ffreestanding -O2 -g -Wall
    -D_FREEBSD_KERNEL -D_GNU_SOURCE -DSMP -I../include/
    -I../include/opt/ -I../host.support/ -I../lib/ -DUPTCP_CLIENT -c -o
    host_serv.o.client host_serv.c
    host_serv.c: In function ‘host_setup_link’:
    host_serv.c:292: warning: implicit declaration of function ‘htons’
    host_serv.c: In function ‘host_connect_link’:
    host_serv.c:317: warning: implicit declaration of function ‘htonl’
    gcc -DX86_64 -D__LP64__ -rdynamic -ffreestanding -O2 -g -Wall
    -D_FREEBSD_KERNEL -D_GNU_SOURCE -DSMP -I../include/
    -I../include/opt/ -I../host.support/ -I../lib/ -c -o if_host.o if_host.c
    In file included from /usr/include/_G_config.h:20,
    from /usr/include/libio.h:32,
    from /usr/include/stdio.h:74,
    from ../include/sys/bsd_libkern.h:48,
    from ../include/sys/bsd_systm.h:273,
    from if_host.c:49:
    /usr/include/wchar.h:94: error: conflicting types for ‘__mbstate_t’
    ../include/sys/bsd__types.h:105: note: previous declaration of
    ‘__mbstate_t’ was here
    make[1]: *** [if_host.o] Error 1
    make[1]: Leaving directory
    `$PARSEC_DIR/pkgs/libs/uptcpip/obj/amd64-linux.gcc/host.support'
    make[1]: Entering directory
    `$PARSEC_DIR/pkgs/libs/uptcpip/obj/amd64-linux.gcc/lib'
    gcc -std=c99 -fPIC -ffreestanding -O2 -g -D_XOPEN_SOURCE -Wall
    -I../host.support/ -c -o uptcp_api.o uptcp_api.c
    gcc -std=c99 -fPIC -ffreestanding -O2 -g -D_XOPEN_SOURCE -Wall
    -I../host.support/ -DUPTCP_CLIENT -c -o uptcp_api.o.client uptcp_api.c
    ar rcs libuptcp.a ../freebsd.kern/*.o ../freebsd.netinet/*.o *.o
    ../host.support/uptcp_statis.o ../host.support/host_serv.o
    ../host.support/if_host.o
    ar: ../freebsd.netinet/*.o: No such file or directory
    make[1]: *** [all] Error 1
    make[1]: Leaving directory
    `$PARSEC_DIR/pkgs/libs/uptcpip/obj/amd64-linux.gcc/lib'
    make: *** [uptcp] Error 2
    [PARSEC] Error: 'env /usr/bin/make' failed.

Thanks,
Brandon


_______________________________________________
parsec-users mailing list parsec-users at lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/parsec-users 


More information about the parsec-users mailing list