Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Hinko Kocevar <hinko.kocevar@cetrtapot.si>
To: buildroot@busybox.net
Subject: [Buildroot] GIT or SVN
Date: Thu, 19 Jun 2008 13:54:20 +0200	[thread overview]
Message-ID: <485A48EC.7040704@cetrtapot.si> (raw)
In-Reply-To: <20080619111343.GC6874@mx.loc>

Bernhard Fischer wrote:
> On Thu, Jun 19, 2008 at 12:53:51PM +0200, Hinko Kocevar wrote:
>> Hinko Kocevar wrote:
>>> Hello,
>>>
>>> I'm new to the uclibc buildroot. I've noticed that there are two repositories: GIT and SVN. GIT looks more up2date. Is GIT the tree to use?
>>>
>>> Also, I'm trying to create a uclibc toolchain for cris architecture. 
> 
> Thanks for noticing my typo and correcting the URL. Applied.
> 
> I didn't try to build cris. Please use 4.3.1 and disable libgomp:
> $ grep gomp .config
> BR2_EXTRA_GCC_CONFIG_OPTIONS="--disable-libgomp --disable-libssp"
> BR2_EXTRA_TARGET_GCC_CONFIG_OPTIONS="--disable-libgomp --disable-libssp"
> 
> I'm trying to build such a cris compiler now and will let you know how
> it goes.

I've tried it too. It passes the gcc-final compilation with 'BR2_EXTRA_GCC_CONFIG_OPTIONS="--disable-libgomp", but I have to disable shared library support and threads to make gcc-final compile. Otherwise uCLibc fails with:
...
  CC libc/unistd/usershell.os
  CC libc/unistd/usleep.os
  CC libpthread/linuxthreads.old/forward.oS
  CC libpthread/linuxthreads.old/libc_pthread_init.oS
  CC libc/misc/internals/__uClibc_main.oS
  CC libpthread/linuxthreads.old/libc_pthread_init.os
  CC libc/misc/internals/__uClibc_main.os
  CC libc/stdlib/atexit.os
  AS lib/crt1.o
  AS lib/Scrt1.o
  AS lib/crti.o
  AS lib/crtn.o
  STRIP -x -R .note -R .comment lib/libc.a
  AR cr lib/libc.a
  STRIP -x -R .note -R .comment lib/uclibc_nonshared.a
  AR cr lib/uclibc_nonshared.a
  AR cr libc/libc_so.a
  LD libuClibc-0.9.29.so
libc/libc_so.a(libc_pthread_init.oS): In function `testandset':
libc_pthread_init.c:(.text+0x0): multiple definition of `testandset'
libc/libc_so.a(forward.oS):forward.c:(.text+0x0): first defined here
make[2]: *** [lib/libc.so] Error 1
make[1]: *** [lib/libc.so.0] Error 2
make[1]: Leaving directory `/work/stage/buildroot/toolchain_build_cris/uClibc-0.9.29'
make: *** [/work/stage/buildroot/toolchain_build_cris/uClibc-0.9.29/lib/libc.a] Error 2



Also inspecting the uClibc make parameters UCLIBC_EXTRA_LDFLAGS and UCLIBC_EXTRA_CFLAGS - where are they used?

/usr/bin/make -j1 -C /work/stage/buildroot/toolchain_build_cris/uClibc-0.9.29 \
		PREFIX= \
		DEVEL_PREFIX=/ \
		RUNTIME_PREFIX=/ \
		HOSTCC="/usr/bin/gcc" \
		BUILD_CFLAGS="" \
		BUILD_LDFLAGS="" \
		UCLIBC_EXTRA_LDFLAGS=" --sysroot=/work/stage/buildroot/build_cris/staging_dir/ -L/work/stage/buildroot/build_cris/staging_dir/lib -L/work/stage/buildroot/build_cris/staging_dir/usr/lib" \
		UCLIBC_EXTRA_CFLAGS=" --sysroot=/work/stage/buildroot/build_cris/staging_dir/ -isysroot /work/stage/buildroot/build_cris/staging_dir -I=/usr/include -Os -pipe  -I/work/stage/buildroot/build_cris/staging_dir/usr/include " \
		all


And UCLIBC_EXTRA_CFLAGS has '-I=/usr/include' that seems a bit odd...

Regards,
Hinko

-- 
?ETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar at cetrtapot.si
Http: www.cetrtapot.si

  reply	other threads:[~2008-06-19 11:54 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-19 10:23 [Buildroot] GIT or SVN Hinko Kocevar
2008-06-19 10:53 ` Hinko Kocevar
2008-06-19 11:13   ` Bernhard Fischer
2008-06-19 11:54     ` Hinko Kocevar [this message]
2008-06-19 12:03       ` Bernhard Fischer
2008-06-19 12:20         ` Hinko Kocevar
2008-06-19 13:25         ` Hinko Kocevar
2008-06-19 19:09 ` Peter Korsgaard
2008-06-20  8:36   ` Bernhard Fischer
2008-06-20  8:40     ` Hinko Kocevar
2008-06-20 12:57       ` Bernhard Fischer
2008-06-20 13:15         ` Hinko Kocevar
2008-06-20 13:24           ` Bernhard Fischer
2008-06-23 10:10             ` Hinko Kocevar
2008-06-20 13:26         ` Hinko Kocevar
2008-06-20 14:11           ` [Buildroot] cris Bernhard Fischer
2008-06-20 14:30             ` Peter Korsgaard
2008-06-20 15:03               ` Bernhard Fischer
2008-06-23  7:27             ` Hinko Kocevar
2008-06-23  8:50               ` Hinko Kocevar
2008-06-23 13:06                 ` Bernhard Fischer
2008-06-23 14:48                   ` Hinko Kocevar
2008-06-23 13:03               ` Bernhard Fischer
2008-06-23 14:41                 ` Hinko Kocevar
2008-06-23 14:46                   ` Bernhard Fischer
2008-06-23 14:54                     ` Hinko Kocevar
2008-06-23 15:01                       ` Bernhard Fischer
2008-07-30  2:39                       ` Ralph Siemsen
2008-06-20 13:18       ` [Buildroot] GIT or SVN Peter Korsgaard
2008-07-30  8:20         ` Hinko Kocevar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=485A48EC.7040704@cetrtapot.si \
    --to=hinko.kocevar@cetrtapot.si \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox