[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A beginner's question
From: |
Gaius Mulley |
Subject: |
Re: A beginner's question |
Date: |
Sat, 08 Apr 2023 14:02:32 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Rudolf Schubert <rudolf@muc.de> writes:
> Hi Gaius,
>
> I tried to follow your hints as closely as possible but in the very end
> when I try to compile a simple test program I get a very simalar error
> message than I got previously:
>
> /usr/bin/ld: /tmp/cciW0QG5.o: in function `_M2_link':
> port_test_gm2.mod:(.text+0x16d5): undefined reference to `_M2_wraptime_ctor'
> collect2: error: ld returned 1 exit status
>
> 'Previously' means: as mentioned, I followed the instructions at
>
> https://www.nongnu.org/gm2/12/development.html
>
> and managed to build a gm2 in some local installation directory on my
> Arch Linux system. But when using this I got this error message:
>
> /usr/bin/ld: /tmp/cc0s2CjZ.o: warning: relocation against `_M2_wraptime_ctor'
> in read-only section `.text'
> /usr/bin/ld: /tmp/cc0s2CjZ.o: in function `_M2_link':
> port_test_gm2.mod:(.text+0x1a03): undefined reference to `_M2_wraptime_ctor'
> /usr/bin/ld: warning: creating DT_TEXTREL in a PIE
>
> BTW, was it to be expected that the
>
> make m2/stage2/cc1gm2
>
> in your script just did nothing because I got the message that
> there was no rule in the Makefile?
>
> The difference between my two installations is:
>
> the latter is on my Arch Linux and the former is on Debian sid. It seems that
> on both platforms there is some basic problem so that linking does not work.
> The warning on my Arch Linux does indicate that this is something with 'PIE'.
>
> Perhaps I've also missed some configuration steps or something? So my question
> would be:
>
> Whats steps exactly will I have to do in order to get a running gm2 from
> the gcc sources at git://gcc.gnu.org/git/gcc.git? Do you also use Debian sid
> or a different version? Will I need some special prerequisites? BTW, I'm
> using the 4 packages mpfr, mpc, isl, gmp from my system and did not download
> these into the gcc tree. I hope this would not make the difference?
Hi Rudolf,
My default debian system is bullseye - but I always use the prequisite
libs (mpfr etc) using the contrib packages via:
cd gcc-top-dir
./contrib/download_prerequisites
and install it local to my $HOME/opt directory and then set the PATH
and LD_LIBRARY_PATH accordingly to avoid picking up the system installed
libraries and gcc when testing building m2 projects.
I'll have a look at sid on a vm and check
regards,
Gaius
- Re: A beginner's question, (continued)
- Re: A beginner's question, Rudolf Schubert, 2023/04/07
- Re: A beginner's question, Gaius Mulley, 2023/04/07
- Re: A beginner's question, Rudolf Schubert, 2023/04/08
- Re: A beginner's question, Michael Riedl, 2023/04/08
- Re: A beginner's question, Rudolf Schubert, 2023/04/08
- Re: A beginner's question, Michael Riedl, 2023/04/08
- Re: A beginner's question, Gaius Mulley, 2023/04/08
- Re: A beginner's question, Gaius Mulley, 2023/04/08
- Re: A beginner's question,
Gaius Mulley <=
- Re: A beginner's question, Gaius Mulley, 2023/04/08
- Re: A beginner's question, Rudolf Schubert, 2023/04/08
- Re: A beginner's question, Gaius Mulley, 2023/04/08
- Re: A beginner's question, Rudolf Schubert, 2023/04/08
- Re: A beginner's question, Michael Riedl, 2023/04/08
- Re: A beginner's question, Gaius Mulley, 2023/04/14
- Re: A beginner's question, Rudolf Schubert, 2023/04/14
- Re: A beginner's question, Gaius Mulley, 2023/04/19
- Re: A beginner's question, Rudolf Schubert, 2023/04/20
- Re: A beginner's question, Gaius Mulley, 2023/04/20