[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #12391 [Tor bundles/installation]: Building mingw-w64 is failing intermittently



#12391: Building mingw-w64 is failing intermittently
-------------------------------------+-------------------------------------
     Reporter:  gk                   |      Owner:  erinn
         Type:  defect               |     Status:  new
     Priority:  normal               |  Milestone:
    Component:  Tor                  |    Version:
  bundles/installation               |   Keywords:  gitian,
   Resolution:                       |  TorBrowserTeam201407
Actual Points:                       |  Parent ID:
       Points:                       |
-------------------------------------+-------------------------------------

Comment (by dcf):

 Replying to [comment:15 mcs]:
 > I do not think we have done a TBB build since meek was added.  Here is
 the tail of var/build.log:
 > {{{
 > # Building compilers and Go bootstrap tool for host, linux/386.
 > lib9
 > In file included from /usr/include/inttypes.h:26:0,
 >                  from /home/ubuntu/build/go/include/u.h:59,
 >                  from /home/ubuntu/build/go/src/lib9/await.c:30:
 > /usr/include/features.h:324:26: fatal error: bits/predefs.h: No such
 file or directoryIn file included from /usr/include/inttypes.h:26:0,
 >                  from /home/ubuntu/build/go/include/u.h:59,
 >                  from /home/ubuntu/build/go/src/lib9/_exits.c:26:
 > /usr/include/features.h:324:26: fatal error: bits/predefs.h: No such
 file or directory
 > compilation terminated.
 >
 > compilation terminated.
 > In file included from /usr/include/inttypes.h:26:0,
 >                  from /home/ubuntu/build/go/include/u.h:59,
 >                  from /home/ubuntu/build/go/src/lib9/atoi.c:26:
 > /usr/include/features.h:324:26: fatal error: bits/predefs.h: No such
 file or directory
 > compilation terminated.
 > In file included from /usr/include/inttypes.h:26:0,
 >                  from /home/ubuntu/build/go/include/u.h:59,
 >                  from /home/ubuntu/build/go/src/lib9/_p9dir.c:26:
 > /usr/include/features.h:324:26: fatal error: bits/predefs.h: No such
 file or directory
 > compilation terminated.
 > go tool dist: FAILED: gcc -Wall -Wstrict-prototypes -Wextra -Wunused
 -Wuninitialized -Wno-sign-compare -Wno-missing-braces -Wno-parentheses
 -Wno-unknown-pragmas -Wno-switch -Wno-comment -Wno-missing-field-
 initializers -Werror -fno-common -ggdb -pipe -O2 -c -m32 -DPLAN9PORT -I
 /home/ubuntu/build/go/include -I /home/ubuntu/build/go/src/lib9 -o
 $WORK/_exits.o /home/ubuntu/build/go/src/lib9/_exits.c
 > go tool dist: FAILED: gcc -Wall -Wstrict-prototypes -Wextra -Wunused
 -Wuninitialized -Wno-sign-compare -Wno-missing-braces -Wno-parentheses
 -Wno-unknown-pragmas -Wno-switch -Wno-comment -Wno-missing-field-
 initializers -Werror -fno-common -ggdb -pipe -O2 -c -m32 -DPLAN9PORT -I
 /home/ubuntu/build/go/include -I /home/ubuntu/build/go/src/lib9 -o
 $WORK/atoi.o /home/ubuntu/build/go/src/lib9/atoi.c
 > go tool dist: FAILED: gcc -Wall -Wstrict-prototypes -Wextra -Wunused
 -Wuninitialized -Wno-sign-compare -Wno-missing-braces -Wno-parentheses
 -Wno-unknown-pragmas -Wno-switch -Wno-comment -Wno-missing-field-
 initializers -Werror -fno-common -ggdb -pipe -O2 -c -m32 -DPLAN9PORT -I
 /home/ubuntu/build/go/include -I /home/ubuntu/build/go/src/lib9 -o
 $WORK/await.o /home/ubuntu/build/go/src/lib9/await.c
 > go tool dist: FAILED: gcc -Wall -Wstrict-prototypes -Wextra -Wunused
 -Wuninitialized -Wno-sign-compare -Wno-missing-braces -Wno-parentheses
 -Wno-unknown-pragmas -Wno-switch -Wno-comment -Wno-missing-field-
 initializers -Werror -fno-common -ggdb -pipe -O2 -c -m32 -DPLAN9PORT -I
 /home/ubuntu/build/go/include -I /home/ubuntu/build/go/src/lib9 -o
 $WORK/_p9dir.o /home/ubuntu/build/go/src/lib9/_p9dir.c
 > }}}
 >
 > Has anyone seen this before?  Maybe the cause is similar (libfaketime
 interference).  I restarted the build and it got past the PT phase on the
 second try.

 I haven't seen this error through many builds that included golang.
 However I have only tried building on Ubuntu 12.04.

 I found some references to the "bits/predefs.h" error:
  *
 http://blog.riff.org/2014_06_06_what_to_do_when_go_will_not_run_nor_install_from_source
  * https://ubuntuforums.org/showthread.php?t=1877944
  * https://lists.debian.org/debian-glibc/2013/08/msg00030.html
  * https://github.com/gogits/gogs/issues/93

 The sources say to try installing either libc6-dev-i386 or gcc-multilib.
 What does `apt-get build-dep golang` say inside the VM? It could be that
 we just need to add a new dependency in the descriptor.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12391#comment:16>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs