mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Jens <jensl@laas.mine.nu>
To: musl@lists.openwall.com
Subject: Re: problems with dynamic linking since 0.9.1
Date: Thu, 15 Aug 2013 11:05:54 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LNX.2.10.1308151054520.16828@laas.mine.nu> (raw)
In-Reply-To: <1376538198.2737.31@driftwood>



>> (In response to the wrapper problem, I let REALGCC point to the real gcc 
>> and not the wrapper).
>
> It's not finding crtbegin.o when I do that, and the fact that (according to 
> strace), gcc thinks:
>
> access("/usr/x86_64-unknown-linux/bin/../lib/gcc/x86_64-unknown-linux/4.2.1/../../../../lib64/crtbegin.o", 
> R_OK) = -1 ENOENT (No such file or directory)
>
> Is a good place to look for it is one of the REASONS I wrote a wrapper that 
> goes "--nostdinc --nostdlib" and then starts again.
>
> ("I say we take off and nuke the entire site from orbit. Only way to be 
> sure.")
>
> However, it sounds like you're using a stale version of the aboriginal build 
> environment because I upgraded to a binutils that can build musl (and yes 
> actually tested it at one point) several months ago...

The build environment is older than aboriginal.
It is this one 
http://uclibc.org/downloads/binaries/0.9.30.1/mini-native-x86_64.tar.bz2

So I guess its a bit long in the tooth.

I dont want you guys to spend your valuable time chasing bugs if its just 
me that sees them.

Regarding the bash version, I use the above environment, but slightly 
upgraded (bash, tar).

I set REALGCC to rawgcc, and I also needed to change the musl gcc.spec 
file, to find all object files, patch I use below (linewrap damaged):

bash-4.1# more all/musl-0.9.6-1/musl-gcc.specs.pat
--- opt/musl/lib/musl-gcc.specs.orig        Fri Sep 21 07:04:50 2012
+++ opt/musl/lib/musl-gcc.specs        Fri Sep 21 07:12:34 2012
@@ -10,13 +10,13 @@
  -L/opt/musl/lib -L .%s

  *libgcc:
-libgcc.a%s %:if-exists(libgcc_eh.a%s)
+/usr/gcc/lib/libgcc.a%s %:if-exists(/usr/gcc/lib/libgcc_eh.a%s)

  *startfile:
-%{!shared: /opt/musl/lib/%{pie:S}crt1.o} /opt/musl/lib/crti.o 
%{shared|pie:crtbeginS.o%s;:crtbegin.o%s}
+%{!shared: /opt/musl/lib/%{pie:S}crt1.o} /opt/musl/lib/crti.o 
%{shared|pie:crtbeginS.o%s;:/usr/gcc/lib/crtbegin.o%s}

  *endfile:
-%{shared|pie:crtendS.o%s;:crtend.o%s} /opt/musl/lib/crtn.o
+%{shared|pie:crtendS.o%s;:/usr/gcc/lib/crtend.o%s} /opt/musl/lib/crtn.o

  *link:
  -dynamic-linker /lib/ld-musl-x86_64.so.1 -nostdlib %{shared:-shared} 
%{static:-static} %{rdynamic:-export-dynamic}

Thanks,
Jens

>
> Rob


  reply	other threads:[~2013-08-15  9:05 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-13 10:39 Jens
2013-08-13 11:07 ` Szabolcs Nagy
2013-08-13 11:18   ` Jens
2013-08-13 14:53     ` Szabolcs Nagy
2013-08-13 16:00       ` Rich Felker
2013-08-15  3:14         ` Rob Landley
2013-08-13 17:14       ` Jens
2013-08-13 18:03         ` Rich Felker
2013-08-14  9:06           ` Jens
2013-08-14 14:27             ` Rich Felker
2013-08-14 14:49               ` Szabolcs Nagy
2013-08-14 14:51                 ` Rich Felker
2013-08-14 20:47                   ` Jens
2013-08-14 20:58                     ` Rich Felker
2013-08-15 21:19                 ` Rob Landley
2013-08-14 14:51               ` Jens
2013-08-15  3:43         ` Rob Landley
2013-08-15  9:05           ` Jens [this message]
2013-08-16  8:28             ` Rob Landley
2013-08-15  2:17       ` Rob Landley
2013-08-15  3:29 ` Rob Landley
2013-08-14 22:26 writeonce

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=alpine.LNX.2.10.1308151054520.16828@laas.mine.nu \
    --to=jensl@laas.mine.nu \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).