Compiliation problem...

1,555 views
Skip to first unread message

sinatosk

unread,
Nov 11, 2009, 6:50:49 AM11/11/09
to golang-nuts
I'm using Ubuntu 9.04 inside VirtualBox 3.0.8

I'm attempting to compile "Go" but it keeps terminating saying

"sysinfo.c:18:24: fatal error: linux/user.h: No such file or
directory"

I'm using Canonical's kernel "2.6.28-16-generic"

from what I can see the file is at "/usr/src/linux-headers-2.6.28-16-
generic/include/linux/user.h"

Am I missing something?

Thanks

Adam Langley

unread,
Nov 11, 2009, 10:39:33 AM11/11/09
to sinatosk, golang-nuts
On Wed, Nov 11, 2009 at 3:50 AM, sinatosk <sina...@gmail.com> wrote:
> "sysinfo.c:18:24: fatal error: linux/user.h: No such file or
> directory"

You typically need a package called linux-kernel-headers or some such.
It could also be linux-libc-dev.


AGL

sinatosk

unread,
Nov 11, 2009, 11:42:12 AM11/11/09
to golang-nuts
I have "linux-libc-dev" and "linux-headers-x.xx.xx-xx-generic". I've
tried both Ubuntu 9.04 and 9.10 and exactly same error.... I've been
at this for 8 hours now and it's getting disappointing...

I've done a clean install and clean make/compile

On Nov 11, 3:39 pm, Adam Langley <a...@golang.org> wrote:

sinatosk

unread,
Nov 11, 2009, 12:05:42 PM11/11/09
to golang-nuts
and I noticed this

# FIXME: GNU/Linux specific.
cat >>sysinfo.c <<EOF
#include <linux/user.h>
EOF

I don't know what you mean by "# FIXME: GNU/Linux specific."

so I went into the file "./libgo/mksysinfo.sh" on line 49 and changed

#include <linux/user.h>

to

#include <sys/user.h>

as I searching earlier on some site and that worked but now I get this
error

../../../gccgo/libgo/go/io/utils.go:12:2: error: import file ‘sort’
not found
../../../gccgo/libgo/go/io/utils.go:71:2: error: reference to
undefined name ‘sort’

so I stopped there...

Through the whole compiling today it's the only thing I changed...

Ian Lance Taylor

unread,
Nov 11, 2009, 2:26:50 PM11/11/09
to sinatosk, golang-nuts
sinatosk <sina...@gmail.com> writes:

> and I noticed this
>
> # FIXME: GNU/Linux specific.
> cat >>sysinfo.c <<EOF
> #include <linux/user.h>
> EOF
>
> I don't know what you mean by "# FIXME: GNU/Linux specific."
>
> so I went into the file "./libgo/mksysinfo.sh" on line 49 and changed
>
> #include <linux/user.h>
>
> to
>
> #include <sys/user.h>

What OS are you using? I do see <linux/user.h> on Ubuntu. It's in
the linux-libc-dev package.


> as I searching earlier on some site and that worked but now I get this
> error
>
> ../../../gccgo/libgo/go/io/utils.go:12:2: error: import file ‘sort’
> not found
> ../../../gccgo/libgo/go/io/utils.go:71:2: error: reference to
> undefined name ‘sort’
>
> so I stopped there...
>
> Through the whole compiling today it's the only thing I changed...

Whoops, that's a missing dependency in libgo/Makefile.am. I just
committed a fix to the gccgo branch. Sorry about that.

Ian

perrinmeyer

unread,
Nov 11, 2009, 4:49:45 PM11/11/09
to golang-nuts
my build also failed with "fatal error: linux/user.h: No such file or"

I'm using gentoo, anyone know the name of the packages I need to
emerge?

Thanks,

Perrin

On Nov 11, 11:26 am, Ian Lance Taylor <i...@google.com> wrote:

Prakash

unread,
Nov 12, 2009, 11:42:11 AM11/12/09
to golang-nuts


On Nov 12, 12:26 am, Ian Lance Taylor <i...@google.com> wrote:
I took the latest checked in file which contains the following line...

root@sweet-home:/usr/lib/gccgo/libgo# diff Makefile.am
Makefile.am_bkup
919c919
< io/libio.a: $(go_io_files) bytes.gox os.gox sort.gox strings.gox
sync.gox
---
> io/libio.a: $(go_io_files) bytes.gox os.gox strings.gox sync.gox

Still I'm getting the same error..

After getting the latest makefile.am. I did a make clean, re-run th
configure file & started make still it's giving the same error. It's
more than a day, I'm stuck up with this.

And I'm using Ubuntu 9.10 with kernel 2.6.31-14-generic

Please help me on this...

Thanks,
Prakash

> Ian

Anthony Desnos

unread,
Nov 12, 2009, 11:53:42 AM11/12/09
to golang-nuts
You must change in ../gccgo/libgo/mksysinfo.sh the line :
<linux/user.h>
by
<sys/user.h>

That's work with debian
> configure file & started make still it's giving the sameerror. It's

Anthony Desnos

unread,
Nov 12, 2009, 11:58:55 AM11/12/09
to golang-nuts
Now I have with sys/user.h :

../../../gccgo/libgo/go/debug/proc/regs_linux_386.go:83:16: error:
reference to undefined field or method ‘Cs’
../../../gccgo/libgo/go/debug/proc/regs_linux_386.go:85:16: error:
reference to undefined field or method ‘Ss’
../../../gccgo/libgo/go/debug/proc/regs_linux_386.go:87:16: error:
reference to undefined field or method ‘Ds’
../../../gccgo/libgo/go/debug/proc/regs_linux_386.go:89:16: error:
reference to undefined field or method ‘Es’
../../../gccgo/libgo/go/debug/proc/regs_linux_386.go:91:16: error:
reference to undefined field or method ‘Fs’
../../../gccgo/libgo/go/debug/proc/regs_linux_386.go:93:16: error:
reference to undefined field or method ‘Gs’
../../../gccgo/libgo/go/debug/proc/regs_linux_386.go:121:4: error:
reference to undefined field or method ‘Cs’
../../../gccgo/libgo/go/debug/proc/regs_linux_386.go:123:4: error:
reference to undefined field or method ‘Ss’
../../../gccgo/libgo/go/debug/proc/regs_linux_386.go:125:4: error:
reference to undefined field or method ‘Ds’
../../../gccgo/libgo/go/debug/proc/regs_linux_386.go:127:4: error:
reference to undefined field or method ‘Es’
../../../gccgo/libgo/go/debug/proc/regs_linux_386.go:129:4: error:
reference to undefined field or method ‘Fs’
../../../gccgo/libgo/go/debug/proc/regs_linux_386.go:131:4: error:
reference to undefined field or method ‘Gs’

Anthony Desnos

unread,
Nov 12, 2009, 12:07:52 PM11/12/09
to golang-nuts
I think we must rename Cs to Xcs etc

Chris Card

unread,
Nov 12, 2009, 12:09:03 PM11/12/09
to golang-nuts
On Nov 12, 4:58 pm, Anthony Desnos <anthony.des...@gmail.com> wrote:
> Now I have with sys/user.h :
>
> ../../../gccgo/libgo/go/debug/proc/regs_linux_386.go:83:16: error:
> reference to undefined field or method ‘Cs’
><snipped>

me too. It looks like the linux/user.h must be used. I can see various
on my machine, under /usr/src/kernels/... but they're not in the
include path used by make

Chris

Anthony Desnos

unread,
Nov 13, 2009, 6:24:30 AM11/13/09
to golang-nuts
This bug has not been fixed in gccgo repository ?

On 12 nov, 18:09, Chris Card <ctc...@hotmail.com> wrote:

Ian Lance Taylor

unread,
Nov 13, 2009, 10:16:53 AM11/13/09
to Anthony Desnos, golang-nuts
Anthony Desnos <anthony...@gmail.com> writes:

> This bug has not been fixed in gccgo repository ?

Not yet, sorry. The patch sent out earlier will get you going but
it's not the right approach. I'll need to develop the right patch,
but I'm spending my time on IRC and e-mail at the moment.

Ian

Dwight Schauer

unread,
Nov 14, 2009, 9:17:24 AM11/14/09
to Ian Lance Taylor, Anthony Desnos, golang-nuts
Any progress on getting a patch committed for gccgo? I'm running into
the same issue on Arch Linux, and I have all the development packages
installed.

/bin/sh /home/dwight/google-go/pkgbuil/gccgo/src/gccgo/libgo/mksysinfo.sh
sysinfo.c:18:24: fatal error: linux/user.h: No such file or directory
compilation terminated.
make[3]: *** [sysinfo.go] Error 1
make[3]: Leaving directory
`/home/dwight/google-go/pkgbuil/gccgo/src/gccgo-build/x86_64-unknown-linux-gnu/libgo'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/dwight/google-go/pkgbuil/gccgo/src/gccgo-build/x86_64-unknown-linux-gnu/libgo'
make[1]: *** [all-target-libgo] Error 2
make[1]: Leaving directory
`/home/dwight/google-go/pkgbuil/gccgo/src/gccgo-build'
make: *** [all] Error 2
==> ERROR: Build Failed.
Aborting...

Anthony Desnos

unread,
Nov 14, 2009, 9:21:17 AM11/14/09
to golang-nuts
I think that google team are working to do the patch.

But you can follow my previous instructions to have gccgo. But there
is some problems during "make install"

On 14 nov, 15:17, Dwight Schauer <dscha...@gmail.com> wrote:
> Any progress on getting a patch committed for gccgo? I'm running into
> the same issue on Arch Linux, and I have all the development packages
> installed.
>
> /bin/sh /home/dwight/google-go/pkgbuil/gccgo/src/gccgo/libgo/mksysinfo.sh
> sysinfo.c:18:24: fatal error: linux/user.h: No such file or directory
> compilation terminated.
> make[3]: *** [sysinfo.go] Error 1
> make[3]: Leaving directory
> `/home/dwight/google-go/pkgbuil/gccgo/src/gccgo-build/x86_64-unknown-linux- gnu/libgo'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/home/dwight/google-go/pkgbuil/gccgo/src/gccgo-build/x86_64-unknown-linux- gnu/libgo'
> make[1]: *** [all-target-libgo] Error 2
> make[1]: Leaving directory
> `/home/dwight/google-go/pkgbuil/gccgo/src/gccgo-build'
> make: *** [all] Error 2
> ==> ERROR: Build Failed.
>     Aborting...
>
> On Fri, Nov 13, 2009 at 9:16 AM, Ian Lance Taylor <i...@google.com> wrote:

Prakash

unread,
Nov 14, 2009, 8:03:53 PM11/14/09
to golang-nuts
Yeah <sys/user.h> & the patch given by Ian helped me over come errors
in make.

But now I'm getting error during make install :-(

/usr/bin/install -c -m 644 ../../gccgo/gcc/cp/name-lookup.h /usr/local/
lib/gcc/i686-pc-linux-gnu/4.5.0/plugin/include/cp/name-lookup.h
make[2]: *** No rule to make target `go.install-plugin', needed by
`lang.install-plugin'. Stop.
make[2]: Leaving directory `/usr/lib/objdir/gcc'
make[1]: *** [install-gcc] Error 2
make[1]: Leaving directory `/usr/lib/objdir'
make: *** [install] Error 2

How to resolve this issue???

Also while doing make I get few warnings as below & whether this might
have any impact on make install??
../../gccgo/gcc/config/i386/i386.md:15128: warning: source missing a
mode?
> > After getting the latest makefile.am. I did amakeclean, re-run th
> > configure file & startedmakestill it's giving the sameerror. It's

Prakash

unread,
Nov 15, 2009, 6:54:10 AM11/15/09
to golang-nuts
On Nov 15, 6:03 am, Prakash <prakash....@gmail.com> wrote:
> Yeah <sys/user.h> & the patch given by Ian helped me over come errors
> in make.
>
> But now I'm getting error during make install :-(
>
> /usr/bin/install -c -m 644 ../../gccgo/gcc/cp/name-lookup.h /usr/local/
> lib/gcc/i686-pc-linux-gnu/4.5.0/plugin/include/cp/name-lookup.h
> make[2]: *** No rule to make target `go.install-plugin', needed by
> `lang.install-plugin'.  Stop.
> make[2]: Leaving directory `/usr/lib/objdir/gcc'
> make[1]: *** [install-gcc] Error 2
> make[1]: Leaving directory `/usr/lib/objdir'
> make: *** [install] Error 2
>

I thought that it's because of using GCC 4.5.0 & changed the GCC
version to 4.4.1 but still this error occurs. Then I realized that the
gcc again got changed to 4.5.0, it seems while building the gccgo it's
getting upgrade to 4.5.0 since it's taking the files from the recently
checked out files for gccgo.

I badly need a solution to this make install error. Any help will be
much appreciated.

Ian Lance Taylor

unread,
Nov 15, 2009, 6:59:49 PM11/15/09
to Prakash, golang-nuts
Prakash <praka...@gmail.com> writes:

> But now I'm getting error during make install :-(
>
> /usr/bin/install -c -m 644 ../../gccgo/gcc/cp/name-lookup.h /usr/local/
> lib/gcc/i686-pc-linux-gnu/4.5.0/plugin/include/cp/name-lookup.h
> make[2]: *** No rule to make target `go.install-plugin', needed by
> `lang.install-plugin'. Stop.
> make[2]: Leaving directory `/usr/lib/objdir/gcc'
> make[1]: *** [install-gcc] Error 2
> make[1]: Leaving directory `/usr/lib/objdir'
> make: *** [install] Error 2
>
> How to resolve this issue???

I just committed a patch to fix this. Sorry about that.

http://gcc.gnu.org/ml/gcc-patches/2009-11/msg00748.html


> Also while doing make I get few warnings as below & whether this might
> have any impact on make install??
> ../../gccgo/gcc/config/i386/i386.md:15128: warning: source missing a
> mode?

You can ignore this. This is in the i386 backend, and has nothing to
do with the Go frontend.

Ian

Prakash

unread,
Nov 16, 2009, 10:32:28 AM11/16/09
to golang-nuts
Again hit by another error during make install

**************************************************************************************************
gcc -g -O2 -DIN_GCC -DGO_DEBUGGING_INFO -W -Wall -Wwrite-strings -
Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-
attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-
overlength-strings -Werror -Wold-style-definition -Wc++-compat -fno-
common -DHAVE_CONFIG_H -o cc1-dummy c-lang.o stub-objc.o attribs.o c-
errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-
info.o c-common.o c-opts.o c-format.o c-semantics.o c-ppoutput.o c-
cppbuiltin.o c-objc-common.o c-dump.o c-pch.o c-parser.o i386-c.o c-
gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o \
dummy-checksum.o main.o tree-browser.o libbackend.a ../libcpp/
libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ../
libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lmpfr -lgmp -
rdynamic -ldl -L../zlib -lz
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
make[2]: *** [cc1-dummy] Error 1
make[2]: Leaving directory `/usr/lib/objdir/gcc'
make[1]: *** [install-gcc] Error 2
make[1]: Leaving directory `/usr/lib/objdir'
make: *** [install] Error 2
**************************************************************************************************

I don't know why linker is erroring out. I can see libgcc.a file
inside the directory... Does only me hitting these errors???

Please help me on this.

~Prakash

On Nov 16, 4:59 am, Ian Lance Taylor <i...@google.com> wrote:

Ian Lance Taylor

unread,
Nov 16, 2009, 1:09:28 PM11/16/09
to Prakash, golang-nuts
Prakash <praka...@gmail.com> writes:

> gcc -g -O2 -DIN_GCC -DGO_DEBUGGING_INFO -W -Wall -Wwrite-strings -
> Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-
> attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-
> overlength-strings -Werror -Wold-style-definition -Wc++-compat -fno-
> common -DHAVE_CONFIG_H -o cc1-dummy c-lang.o stub-objc.o attribs.o c-
> errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-
> info.o c-common.o c-opts.o c-format.o c-semantics.o c-ppoutput.o c-
> cppbuiltin.o c-objc-common.o c-dump.o c-pch.o c-parser.o i386-c.o c-
> gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o \
> dummy-checksum.o main.o tree-browser.o libbackend.a ../libcpp/
> libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ../
> libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lmpfr -lgmp -
> rdynamic -ldl -L../zlib -lz
> /usr/bin/ld: cannot find -lgcc
> collect2: ld returned 1 exit status

This seems to indicate some sort of problem with the host gcc.
Although it is surprising that it is trying to rebuild gcc during
"make install". Try doing another "make" first, see if that helps.

Ian

ATOzTOA

unread,
Nov 16, 2009, 8:48:27 PM11/16/09
to golang-nuts
I can't find the file "Make-lang.in"...

On Nov 16, 4:59 am, Ian Lance Taylor <i...@google.com> wrote:
> Prakash <prakash....@gmail.com> writes:
> > But now I'm getting error duringmakeinstall:-(
>
> > /usr/bin/install-c -m 644 ../../gccgo/gcc/cp/name-lookup.h /usr/local/
> > lib/gcc/i686-pc-linux-gnu/4.5.0/plugin/include/cp/name-lookup.h
> >make[2]: *** No rule tomaketarget `go.install-plugin', needed by
> > `lang.install-plugin'.  Stop.
> >make[2]: Leaving directory `/usr/lib/objdir/gcc'
> >make[1]: *** [install-gcc] Error 2
> >make[1]: Leaving directory `/usr/lib/objdir'
> >make: *** [install] Error 2
>
> > How to resolve this issue???
>
> I just committed a patch to fix this.  Sorry about that.
>
> http://gcc.gnu.org/ml/gcc-patches/2009-11/msg00748.html
>
> > Also while doingmakeI get few warnings as below & whether this might

ATOzTOA

unread,
Nov 16, 2009, 9:08:09 PM11/16/09
to golang-nuts
Got it... "gccgo/gcc/go/Make-lang.in"

ATOzTOA

unread,
Nov 16, 2009, 10:35:31 PM11/16/09
to golang-nuts
Try reinstalling gcc after removing gcc 4.5.0... them configure, make

http://www.atoztoa.com/2009/11/making-gccgo-in-ubuntu.html

_ATOzTOA
www.atoztoa.com

On Nov 16, 8:32 pm, Prakash <prakash....@gmail.com> wrote:
> Again hit by another error duringmakeinstall
>
> **************************************************************************************************
> gcc  -g -O2 -DIN_GCC  -DGO_DEBUGGING_INFO  -W -Wall -Wwrite-strings -
> Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-
> attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-
> overlength-strings -Werror -Wold-style-definition -Wc++-compat -fno-
> common  -DHAVE_CONFIG_H  -o cc1-dummy c-lang.o stub-objc.o attribs.o c-
> errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-
> info.o c-common.o c-opts.o c-format.o c-semantics.o c-ppoutput.o c-
> cppbuiltin.o c-objc-common.o c-dump.o c-pch.o c-parser.o i386-c.o c-
> gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o \
>           dummy-checksum.o main.o tree-browser.o libbackend.a ../libcpp/
> libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a   ../
> libiberty/libiberty.a ../libdecnumber/libdecnumber.a    -lmpfr -lgmp -
> rdynamic -ldl  -L../zlib -lz
> /usr/bin/ld: cannot find -lgcc
> collect2: ld returned 1 exit statusmake[2]: *** [cc1-dummy] Error 1make[2]: Leaving directory `/usr/lib/objdir/gcc'make[1]: *** [install-gcc] Error 2make[1]: Leaving directory `/usr/lib/objdir'make: *** [install] Error 2
> **************************************************************************************************
>
> I don't know why linker is erroring out. I can see libgcc.a file
> inside the directory... Does only me hitting these errors???
>
> Please help me on this.
>
> ~Prakash
>
> On Nov 16, 4:59 am, Ian Lance Taylor <i...@google.com> wrote:
>
> > Prakash <prakash....@gmail.com> writes:
> > > But now I'm getting error duringmakeinstall:-(
>
> > > /usr/bin/install-c -m 644 ../../gccgo/gcc/cp/name-lookup.h /usr/local/
> > > lib/gcc/i686-pc-linux-gnu/4.5.0/plugin/include/cp/name-lookup.h
> > >make[2]: *** No rule tomaketarget `go.install-plugin', needed by
> > > `lang.install-plugin'.  Stop.
> > >make[2]: Leaving directory `/usr/lib/objdir/gcc'
> > >make[1]: *** [install-gcc] Error 2
> > >make[1]: Leaving directory `/usr/lib/objdir'
> > >make: *** [install] Error 2
>
> > > How to resolve this issue???
>
> > I just committed a patch to fix this.  Sorry about that.
>
> >http://gcc.gnu.org/ml/gcc-patches/2009-11/msg00748.html
>
> > > Also while doingmakeI get few warnings as below & whether this might

Ian Lance Taylor

unread,
Nov 17, 2009, 1:14:22 AM11/17/09
to Dwight Schauer, Anthony Desnos, golang-nuts
Dwight Schauer <dsch...@gmail.com> writes:

> Any progress on getting a patch committed for gccgo? I'm running into
> the same issue on Arch Linux, and I have all the development packages
> installed.
>
> /bin/sh /home/dwight/google-go/pkgbuil/gccgo/src/gccgo/libgo/mksysinfo.sh
> sysinfo.c:18:24: fatal error: linux/user.h: No such file or directory
> compilation terminated.
> make[3]: *** [sysinfo.go] Error 1
> make[3]: Leaving directory
> `/home/dwight/google-go/pkgbuil/gccgo/src/gccgo-build/x86_64-unknown-linux-gnu/libgo'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/home/dwight/google-go/pkgbuil/gccgo/src/gccgo-build/x86_64-unknown-linux-gnu/libgo'
> make[1]: *** [all-target-libgo] Error 2
> make[1]: Leaving directory
> `/home/dwight/google-go/pkgbuil/gccgo/src/gccgo-build'
> make: *** [all] Error 2


I've committed a patch to the gccgo branch which should fix this
problem.

Sorry for the long delay.

http://gcc.gnu.org/ml/gcc-patches/2009-11/msg00834.html

Ian

Anthony Desnos

unread,
Nov 17, 2009, 4:29:34 AM11/17/09
to golang-nuts
Thx Ian. I will test as soon as possible !

On 17 nov, 07:14, Ian Lance Taylor <i...@google.com> wrote:

Dwight Schauer

unread,
Nov 17, 2009, 8:25:45 AM11/17/09
to Ian Lance Taylor, Anthony Desnos, golang-nuts
Thanks. I'm able to build gccgo-svn now. I'll need change my PKGBUILD
though as I'm getting conflicts with the existing gcc package, but
this in not something I've have not run into before, so I can easily
fix that. I assume the following ./configure options will only only
affect the conflicts below?

Program names:
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names

I'll try --program-prefix=go before resorting to --prefix=/opt/gccgo-svn/

$ yaourt -U /home/abs/packages/gccgo-svn-154236-1-x86_64.pkg.tar.gz
loading package data...
checking dependencies...
(1/1) checking for file conflicts
[-----------------------------------------------------------] 100%
error: failed to prepare transaction (conflicting files)
gccgo-svn: /usr/bin/c++ exists in filesystem
gccgo-svn: /usr/bin/cpp exists in filesystem
gccgo-svn: /usr/bin/g++ exists in filesystem
gccgo-svn: /usr/bin/gcc exists in filesystem
gccgo-svn: /usr/bin/gccbug exists in filesystem
gccgo-svn: /usr/bin/gcov exists in filesystem
gccgo-svn: /usr/bin/x86_64-unknown-linux-gnu-c++ exists in filesystem
gccgo-svn: /usr/bin/x86_64-unknown-linux-gnu-g++ exists in filesystem
gccgo-svn: /usr/bin/x86_64-unknown-linux-gnu-gcc exists in filesystem
gccgo-svn: /usr/lib/libiberty.a exists in filesystem
gccgo-svn: /usr/lib64/libgomp.a exists in filesystem
gccgo-svn: /usr/lib64/libgomp.la exists in filesystem
gccgo-svn: /usr/lib64/libgomp.spec exists in filesystem
gccgo-svn: /usr/lib64/libmudflap.a exists in filesystem
gccgo-svn: /usr/lib64/libmudflap.la exists in filesystem
gccgo-svn: /usr/lib64/libmudflapth.a exists in filesystem
gccgo-svn: /usr/lib64/libmudflapth.la exists in filesystem
gccgo-svn: /usr/lib64/libssp.a exists in filesystem
gccgo-svn: /usr/lib64/libssp.la exists in filesystem
gccgo-svn: /usr/lib64/libssp_nonshared.a exists in filesystem
gccgo-svn: /usr/lib64/libssp_nonshared.la exists in filesystem
gccgo-svn: /usr/lib64/libstdc++.a exists in filesystem
gccgo-svn: /usr/lib64/libstdc++.la exists in filesystem
gccgo-svn: /usr/lib64/libsupc++.a exists in filesystem
gccgo-svn: /usr/lib64/libsupc++.la exists in filesystem
gccgo-svn: /usr/share/info/dir exists in filesystem
gccgo-svn: /usr/share/locale/be/LC_MESSAGES/cpplib.mo exists in filesystem
gccgo-svn: /usr/share/locale/be/LC_MESSAGES/gcc.mo exists in filesystem
gccgo-svn: /usr/share/locale/ca/LC_MESSAGES/cpplib.mo exists in filesystem
gccgo-svn: /usr/share/locale/da/LC_MESSAGES/cpplib.mo exists in filesystem
gccgo-svn: /usr/share/locale/da/LC_MESSAGES/gcc.mo exists in filesystem
gccgo-svn: /usr/share/locale/de/LC_MESSAGES/cpplib.mo exists in filesystem
gccgo-svn: /usr/share/locale/de/LC_MESSAGES/gcc.mo exists in filesystem
gccgo-svn: /usr/share/locale/de/LC_MESSAGES/libstdc++.mo exists in filesystem
gccgo-svn: /usr/share/locale/el/LC_MESSAGES/cpplib.mo exists in filesystem
gccgo-svn: /usr/share/locale/el/LC_MESSAGES/gcc.mo exists in filesystem
gccgo-svn: /usr/share/locale/es/LC_MESSAGES/cpplib.mo exists in filesystem
gccgo-svn: /usr/share/locale/es/LC_MESSAGES/gcc.mo exists in filesystem
gccgo-svn: /usr/share/locale/fi/LC_MESSAGES/gcc.mo exists in filesystem
gccgo-svn: /usr/share/locale/fr/LC_MESSAGES/cpplib.mo exists in filesystem
gccgo-svn: /usr/share/locale/fr/LC_MESSAGES/gcc.mo exists in filesystem
gccgo-svn: /usr/share/locale/fr/LC_MESSAGES/libstdc++.mo exists in filesystem
gccgo-svn: /usr/share/locale/id/LC_MESSAGES/cpplib.mo exists in filesystem
gccgo-svn: /usr/share/locale/id/LC_MESSAGES/gcc.mo exists in filesystem
gccgo-svn: /usr/share/locale/ja/LC_MESSAGES/cpplib.mo exists in filesystem
gccgo-svn: /usr/share/locale/ja/LC_MESSAGES/gcc.mo exists in filesystem
gccgo-svn: /usr/share/locale/nl/LC_MESSAGES/cpplib.mo exists in filesystem
gccgo-svn: /usr/share/locale/nl/LC_MESSAGES/gcc.mo exists in filesystem
gccgo-svn: /usr/share/locale/ru/LC_MESSAGES/gcc.mo exists in filesystem
gccgo-svn: /usr/share/locale/sr/LC_MESSAGES/gcc.mo exists in filesystem
gccgo-svn: /usr/share/locale/sv/LC_MESSAGES/cpplib.mo exists in filesystem
gccgo-svn: /usr/share/locale/sv/LC_MESSAGES/gcc.mo exists in filesystem
gccgo-svn: /usr/share/locale/tr/LC_MESSAGES/cpplib.mo exists in filesystem
gccgo-svn: /usr/share/locale/tr/LC_MESSAGES/gcc.mo exists in filesystem
gccgo-svn: /usr/share/locale/uk/LC_MESSAGES/cpplib.mo exists in filesystem
gccgo-svn: /usr/share/locale/vi/LC_MESSAGES/cpplib.mo exists in filesystem
gccgo-svn: /usr/share/locale/zh_CN/LC_MESSAGES/cpplib.mo exists in filesystem
gccgo-svn: /usr/share/locale/zh_CN/LC_MESSAGES/gcc.mo exists in filesystem
gccgo-svn: /usr/share/locale/zh_TW/LC_MESSAGES/cpplib.mo exists in filesystem
gccgo-svn: /usr/share/locale/zh_TW/LC_MESSAGES/gcc.mo exists in filesystem

errors occurred, no packages were upgraded.
press a key to continue

Ian Lance Taylor

unread,
Nov 17, 2009, 10:58:14 AM11/17/09
to Dwight Schauer, Anthony Desnos, golang-nuts
Dwight Schauer <dsch...@gmail.com> writes:

> Thanks. I'm able to build gccgo-svn now. I'll need change my PKGBUILD
> though as I'm getting conflicts with the existing gcc package, but
> this in not something I've have not run into before, so I can easily
> fix that. I assume the following ./configure options will only only
> affect the conflicts below?
>
> Program names:
> --program-prefix=PREFIX prepend PREFIX to installed program names
> --program-suffix=SUFFIX append SUFFIX to installed program names
>
> I'll try --program-prefix=go before resorting to --prefix=/opt/gccgo-svn/

It's been a while since I tried using --program-prefix, but, yes, in
principle, it should work to avoid naming conflicts.

--prefix will certainly work.

Ian

Srinivas

unread,
Nov 25, 2009, 12:51:10 AM11/25/09
to golang-nuts
Hi go community

First of all i would like to thank Ian Lance Taylor for helping
me through the installation procedure of gccgo in ubuntu when i was
stuck during the installation procedure.

It would be unfair on my part if i don't share it , so decided to
share my experience on installing gccgo on ubuntu 9.10 on my blog .

http://gotiny.co.cc/google-gccgo .

Hope this helps for the needy

Regards,
Srinivas Iyer

On Nov 17, 2:29 pm, Anthony Desnos <anthony.des...@gmail.com> wrote:
> Thx Ian. I will test as soon as possible !
>
> On 17 nov, 07:14, Ian Lance Taylor <i...@google.com> wrote:
>
> > Dwight Schauer <dscha...@gmail.com> writes:
> > > Any progress on getting a patch committed forgccgo? I'm running into
> > > the same issue on Arch Linux, and I have all the development packages
> > > installed.
>
> > > /bin/sh /home/dwight/google-go/pkgbuil/gccgo/src/gccgo/libgo/mksysinfo.sh
> > > sysinfo.c:18:24: fatalerror: linux/user.h: No such file or directory
> > >compilationterminated.
> > > make[3]: *** [sysinfo.go]Error1
> > > make[3]: Leaving directory
> > > `/home/dwight/google-go/pkgbuil/gccgo/src/gccgo-build/x86_64-unknown-linux- gnu/libgo'
> > > make[2]: *** [all]Error2
> > > make[2]: Leaving directory
> > > `/home/dwight/google-go/pkgbuil/gccgo/src/gccgo-build/x86_64-unknown-linux- gnu/libgo'
> > > make[1]: *** [all-target-libgo]Error2
> > > make[1]: Leaving directory
> > > `/home/dwight/google-go/pkgbuil/gccgo/src/gccgo-build'
> > > make: *** [all]Error2
>
> > I've committed a patch to thegccgobranch which should fix thisproblem.

Srinivas

unread,
Nov 25, 2009, 12:55:19 AM11/25/09
to golang-nuts
Hi go community

First of all i would like to thank Ian Lance Taylor for helping
me through the installation procedure of gccgo in ubuntu when i was
stuck during the installation procedure.

It would be unfair on my part if i don't share it , so decided to
share my experience on installing gccgo on ubuntu 9.10 on my blog .

http://gotiny.co.cc/google-gccgo .

Hope this helps for the needy

Regards,
Srinivas Iyer

On Nov 17, 2:29 pm, Anthony Desnos <anthony.des...@gmail.com> wrote:
> Thx Ian. I will test as soon as possible !
>
> On 17 nov, 07:14, Ian Lance Taylor <i...@google.com> wrote:
>
> > Dwight Schauer <dscha...@gmail.com> writes:
> > > Any progress on getting a patch committed forgccgo? I'm running into
> > > the same issue on Arch Linux, and I have all the development packages
> > > installed.
>
> > > /bin/sh /home/dwight/google-go/pkgbuil/gccgo/src/gccgo/libgo/mksysinfo.sh
> > > sysinfo.c:18:24: fatalerror: linux/user.h: No such file or directory
> > >compilationterminated.
> > > make[3]: *** [sysinfo.go]Error1
> > > make[3]: Leaving directory
> > > `/home/dwight/google-go/pkgbuil/gccgo/src/gccgo-build/x86_64-unknown-linux- gnu/libgo'
> > > make[2]: *** [all]Error2
> > > make[2]: Leaving directory
> > > `/home/dwight/google-go/pkgbuil/gccgo/src/gccgo-build/x86_64-unknown-linux- gnu/libgo'
> > > make[1]: *** [all-target-libgo]Error2
> > > make[1]: Leaving directory
> > > `/home/dwight/google-go/pkgbuil/gccgo/src/gccgo-build'
> > > make: *** [all]Error2
>
> > I've committed a patch to thegccgobranch which should fix thisproblem.
Reply all
Reply to author
Forward
0 new messages