[uClibc] Compilation error with standard build

Toby Boreham toby at futuretech.co.uk
Tue Oct 7 23:41:25 UTC 2003


Hello,

I am running the standard build of the uclibc development environment from
http://www.uclibc.org/downloads/root_fs_i386.bz2

I have mounted it via loopback, and chrooted to the build environment with:

#!/bin/bash
sudo /usr/sbin/chroot /home/toby/embedded/filesystem /usr/bin/env -i \
	HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
	PATH=/bin:/usr/bin:/sbin:/usr/sbin \
	/bin/bash --login

When I try to compile _anything_ I get the following error:

cc -O2 -Wall -g -DLILO=0x4897777b `( if [ -r $ROOT/etc/lilo.defines ]; 
then cat
$ROOT/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE 
-DLVM -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN 
-DVERSION -DVIRTUAL;
fi ) | sed 's/-D/-DLCF_/g'` -DSHS_MAIN -o version common.c
/usr/lib/gcc-lib/i386-linux/3.3.1/../../../../i386-linux/bin/ld: cannot 
open crt1.o: No such file or directory
collect2: ld returned 1 exit status
make: *** [version] Error 1

If I copy crt* from /usr/lib to the build directory it is OK... Why is GCC
not finding the libraries? I have not changed anything in the default
filesystem.

Toby

-----Original Message-----
From: uclibc-bounces at uclibc.org [mailto:uclibc-bounces at uclibc.org] On Behalf
Of uclibc-request at uclibc.org
Sent: 07 October 2003 13:37
To: uclibc at uclibc.org
Subject: uClibc Digest, Vol 7, Issue 15


Send uClibc mailing list submissions to
	uclibc at uclibc.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://uclibc.org/mailman/listinfo/uclibc
or, via email, send a message with subject or body 'help' to
	uclibc-request at uclibc.org

You can reach the person managing the list at
	uclibc-owner at uclibc.org

When replying, please edit your Subject line so it is more specific than
"Re: Contents of uClibc digest..."


Today's Topics:

   1.  building interp.o warning (Peter S. Mazinger)
   2. Re:  386 floating point (Jeffrey Baitis)
   3.  util-linux (mount/umount) and sys_siglist (Peter S. Mazinger)
   4. Re:  Add asm-generic linux.mk (buildroot) (Peter S. Mazinger)
   5. Re:  util-linux (mount/umount) and sys_siglist (Erik Andersen)
   6. Re:  util-linux (mount/umount) and sys_siglist (Peter S. Mazinger)
   7.  munmap of non-mmaped memory by process 33 (cupsd): 00000000
      (SRINIVAS RAO)


----------------------------------------------------------------------

Message: 1
Date: Mon, 6 Oct 2003 21:27:10 +0200 (CEST)
From: "Peter S. Mazinger" <ps.m at gmx.net>
Subject: [uClibc] building interp.o warning
To: uclibc at uclibc.org
Message-ID: <Pine.LNX.4.44.0310062125270.13296-100000 at lnx.bridge.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hello!

What does the following message mean:
Assembler messages:
Warning: setting incorrect section attributes for .interp

Peter

-- 
Peter S. Mazinger <ps.m at gmx.net>   ID: 0xA5F059F2    NIC: IXUYHSKQLI
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2


____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a
FreeStarttol. Probald ki most! http://www.freestart.hu

------------------------------

Message: 2
Date: 06 Oct 2003 14:29:38 -0700
From: Jeffrey Baitis <baitisj at evolution.com>
Subject: Re: [uClibc] 386 floating point
To: andersen at codepoet.org
Cc: uclibc at uclibc.org
Message-ID: <1065475777.15172.15.camel at powerpuff.evo1.pas.lab>
Content-Type: text/plain

Hi all:

I am of the opinion that uClibC-targeted compilers should be able to
generate either soft-float or hard-float compatible output. As such, I
suggest that the following changes be made to the buildroot and toolchain
tools.

Here's a patch to be included in either buildroot/sources or
toolchain/gcc-3.3.1/sources that should enable soft-float.

        $ cat gcc-8765-soft-float.patch 
        --- gcc-3.3.1/gcc/config/t-linux.old    2003-10-02
        20:52:56.000000000 -0700
        +++ gcc-3.3.1/gcc/config/t-linux   2003-10-02 20:53:34.000000000
        -0700
        @@ -3,8 +3,8 @@
         
         # Compile crtbeginS.o and crtendS.o with pic.
         CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS) -fPIC
        -# Compile libgcc2.a with pic.
        -TARGET_LIBGCC2_CFLAGS = -fPIC
        +# Compile libgcc2.a with pic and soft float support
        +TARGET_LIBGCC2_CFLAGS = -fPIC -msoft-float
         
         # Override t-slibgcc-elf-ver to export some libgcc symbols with
         # the symbol versions that glibc used.

The following change needs to be done to the Makefiles. For buildroot:

        $ cvs diff -u Makefile
        Index: Makefile
        ===================================================================
        RCS file: /var/cvs/buildroot/Makefile,v
        retrieving revision 1.59
        diff -u -r1.59 Makefile
        --- Makefile    30 Sep 2003 20:59:17 -0000      1.59
        +++ Makefile    6 Oct 2003 21:31:09 -0000
        @@ -65,7 +65,8 @@
         #OPTIMIZE_FOR_CPU=whatever
         
         # Any additional gcc options you may want to include....
        -EXTRA_GCC_CONFIG_OPTIONS=
        +EXTRA_GCC_CONFIG_OPTIONS=--with-float=-msoft-float
        +#EXTRA_GCC_CONFIG_OPTIONS=
         #EXTRA_GCC_CONFIG_OPTIONS=--without-float
         
         # Enable the following if you want locale/gettext/i18n support.
        
And, for toolchain:

        $ cvs diff -u Makefile
        Index: Makefile
        ===================================================================
        RCS file: /var/cvs/toolchain/gcc-3.3.1/Makefile,v
        retrieving revision 1.4
        diff -u -r1.4 Makefile
        --- Makefile    10 Sep 2003 09:04:27 -0000      1.4
        +++ Makefile    6 Oct 2003 21:34:49 -0000
        @@ -63,7 +63,7 @@
         #OPTIMIZE_FOR_CPU=whatever
         
         # Any additional gcc options you may want to include....
        -EXTRA_GCC_CONFIG_OPTIONS=
        +EXTRA_GCC_CONFIG_OPTIONS=--with-float=-msoft-float
         #############################################################
         #
         # What shall we build today?
                         

I think that these changes should enable the -msoft-float compiler option on
all targets, although I have only tested the mipsel target extensively.

I hope you find this information useful.

Thanks again, Mr. Andersen (neo?) ;)

-Jeff



On Tue, 2003-09-30 at 12:31, Erik Andersen wrote:
> On Tue Sep 30, 2003 at 07:47:32PM +0100, david stevenson wrote:
> > Eric
> 
> s/Eric/Erik/
> :-)
> 
> > Do you know how to do this?
> > I am now using Thomas's suggestion of using kernel support, but I 
> > had tried to
> > build gcc with soft-float without finding the magic. 2.95.3 has a file 
> > softfloat.c but I could not find the right way to include it.
> 
> I believe the missing soft-float routines are defined in 
> <gcc-dir>/gcc/config/fp-bit.[ch]
> 
> I'm guessing that soft-float on x86 probably requires that you modify 
> <gcc-dir>/gcc/config/i386/t-i386elf so that it does the soft-float 
> stuff, similar to what is done in t-rtems-i386.
> 
> i.e. Making soft-float work on x86 appears to not be supported by gcc 
> w/o doing some hacking on the compiler to set that up.
> 
> Clearly the path of least resistance is to use the kernel FPU 
> emulator,
> 
>  -Erik
> 
> --
> Erik B. Andersen             http://codepoet-consulting.com/
> --This message was written using 73% post-consumer electrons-- 
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://uclibc.org/mailman/listinfo/uclibc
-- 
Jeffrey Baitis <baitisj at evolution.com>

------------------------------

Message: 3
Date: Mon, 6 Oct 2003 23:31:58 +0200 (CEST)
From: "Peter S. Mazinger" <ps.m at gmx.net>
Subject: [uClibc] util-linux (mount/umount) and sys_siglist
To: uclibc at uclibc.org
Message-ID: <Pine.LNX.4.44.0310062330510.19417-100000 at lnx.bridge.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hello!

Does somebody has a patch to build util-linux's mount/umount without 
sys_siglist support in uClibc?

Thanks, Peter

-- 
Peter S. Mazinger <ps.m at gmx.net>   ID: 0xA5F059F2    NIC: IXUYHSKQLI
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2


____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a
FreeStarttol. Probald ki most! http://www.freestart.hu

------------------------------

Message: 4
Date: Mon, 6 Oct 2003 23:37:48 +0200 (CEST)
From: "Peter S. Mazinger" <ps.m at gmx.net>
Subject: Re: [uClibc] Add asm-generic linux.mk (buildroot)
To: Erik Andersen <andersen at codepoet.org>
Cc: uclibc at uclibc.org
Message-ID: <Pine.LNX.4.44.0310062332140.19417-100000 at lnx.bridge.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Mon, 6 Oct 2003, Erik Andersen wrote:

> > Please add asm-generic to the included header files, they are 
> > referenced
> > from some asm/*.h files. I haven't checked if it makes sense for 
> > the toolchain too.
> 
> Can you show my some examples where this is needed.  I added it, then 
> people complained....  I do know that glibc does not provide a 
> /usr/include/asm-generic.  Does the application in question directly 
> use kernel header files?

It was about a half year ago (mdadm, used xor.h), since then I add 
asm-generic manually to my headers. I have checked a newer release, this 
one does not need it anymore. Also some ide utility does make use of it 
(ide.h), but I can't remember which one. What I remember, that both 
required kernel-headers (they checked some feature, that was not in my 
installed kernel-headers)

Peter

-- 
Peter S. Mazinger <ps.m at gmx.net>   ID: 0xA5F059F2    NIC: IXUYHSKQLI
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2


____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a
FreeStarttol. Probald ki most! http://www.freestart.hu

------------------------------

Message: 5
Date: Mon, 6 Oct 2003 15:51:34 -0600
From: Erik Andersen <andersen at codepoet.org>
Subject: Re: [uClibc] util-linux (mount/umount) and sys_siglist
To: "Peter S. Mazinger" <ps.m at gmx.net>
Cc: uclibc at uclibc.org
Message-ID: <20031006215134.GA5512 at codepoet.org>
Content-Type: text/plain; charset=us-ascii

On Mon Oct 06, 2003 at 11:31:58PM +0200, Peter S. Mazinger wrote:
> Hello!
> 
> Does somebody has a patch to build util-linux's mount/umount without
> sys_siglist support in uClibc?

You can enable UCLIBC_HAS_SYS_SIGLIST in your uClibc .config. Or just change
all instances of "sys_siglist[sig]" to instead use "strsignal(sig)"

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--

------------------------------

Message: 6
Date: Tue, 7 Oct 2003 01:16:02 +0200 (CEST)
From: "Peter S. Mazinger" <ps.m at gmx.net>
Subject: Re: [uClibc] util-linux (mount/umount) and sys_siglist
To: Erik Andersen <andersen at codepoet.org>
Cc: uclibc at uclibc.org
Message-ID: <Pine.LNX.4.44.0310070103360.28782-100000 at lnx.bridge.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Mon, 6 Oct 2003, Erik Andersen wrote:

> On Mon Oct 06, 2003 at 11:31:58PM +0200, Peter S. Mazinger wrote:
> > Hello!
> > 
> > Does somebody has a patch to build util-linux's mount/umount without
> > sys_siglist support in uClibc?
> 
> You can enable UCLIBC_HAS_SYS_SIGLIST in your uClibc .config.
This was, what I didn't wanted to do, since you define it as "will be 
removed".

> Or just change all instances of "sys_siglist[sig]" to instead use 
> "strsignal(sig)"
worked, thanks.

Peter

-- 
Peter S. Mazinger <ps.m at gmx.net>   ID: 0xA5F059F2    NIC: IXUYHSKQLI
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2


____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a
FreeStarttol. Probald ki most! http://www.freestart.hu

------------------------------

Message: 7
Date: Tue, 7 Oct 2003 00:20:33 -0700 (PDT)
From: SRINIVAS RAO <nsrao_mr at yahoo.com>
Subject: [uClibc] munmap of non-mmaped memory by process 33 (cupsd):
	00000000
To: uclibc at uclibc.org
Message-ID: <20031007072033.33713.qmail at web11708.mail.yahoo.com>
Content-Type: text/plain; charset="us-ascii"

Hi All,
 
I have been trying to compile CUPS with uClibc using the arm-elf toolchain.
It successfully compiles,but when I try to run ity on an ARM-based board I
get the following error(s):

# /bin/cupsd

munmap of non-mmaped memory by process 33 (cupsd): 00000000

munmap of non-mmaped memory by process 33 (cupsd): 00000021

#

When I try again I got this:

# cupsd

munmap of non-mmaped memory by process 44 (cupsd): 002c6e64

SIGSEGV

#

So there is a segmentation fault now!!

# cupsd

Unhandled fault: external abort on linefetch (16C1FF4) at 0x002c29b0

fault-common.c(97): start_code=0x28d040, start_stack=0x2dcf8c)

Bus error

#

Am unable to comprehend what is this?

Help will be gladly appreciated..... I am almost about to throw in the
towel.

Thanks&Regards,

NS Rao.



---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://uclibc.org/lists/uclibc/attachments/20031007/6790cb62/attachment.ht
ml

------------------------------

_______________________________________________
uClibc mailing list
uClibc at uclibc.org
http://uclibc.org/mailman/listinfo/uclibc


End of uClibc Digest, Vol 7, Issue 15
*************************************




More information about the uClibc mailing list