Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gm2 doesn't work

82 views
Skip to first unread message

Jürgen Lerch

unread,
Jan 6, 2012, 8:42:10 PM1/6/12
to
Saluton!

I, too, have problems with gm2. I'm on Ubuntu 11.10 (64 bit).
Synaptic tells me I have gm2 1.0.4, gm2 --version says 1.0.3
(20110930). I installed gm2 using the .debs.

When I try to compile (and link) (even) a simple Hello World,
(/usr/bin/) ld complains that it can't find crt1.o and/or
crti.o. A filesearch results in finding them in
/usr/lib/x86_64-linux-gnu/. Is ld not seeing them a bug or
is Debian different from Ubuntu with respect to their
location? And how do I get the thing to find these files?
I didn't find something of help in the (online) gm2-docs
(maybe I didn't look into the right place).

(It wasn't always a problem, I did successfully compile
several self-written programs with previous versions of
the compiler and Ubuntu (and Debian).)

Ad Astra!
JuL

--
Jürgen ,,JuL'' Lerch / L'état, c'est toi. (Moi)
jyn...@gmx.de /

Rugxulo

unread,
Jan 7, 2012, 1:06:46 PM1/7/12
to
Hi,
I'm probably not the best person to answer this, but maybe it'll
help anyways,

On Jan 6, 7:42 pm, Jürgen Lerch <jyn...@gmx.de> wrote:
>
> I, too, have problems with gm2. I'm on Ubuntu 11.10 (64 bit).
> Synaptic tells me I have gm2 1.0.4, gm2 --version says 1.0.3
> (20110930). I installed gm2 using the .debs.

So you're using an official Ubuntu package? For whatever reason, I
think others (e.g. FBC, Clang) have packaged Debian and Ubuntu
separately due to minor differences, which is odd to my eyes, but I
guess they're different enough to warrant it. Gaius does have a .deb
for Debian amd64 on his site, but I don't guess you'd want that here.

I just now tried searching http://packages.ubuntu.com under oneiric
(11.10), but I couldn't find it.

> When I try to compile (and link) (even) a simple Hello World,
> (/usr/bin/) ld complains that it can't find crt1.o and/or
> crti.o. A filesearch results in finding them in
> /usr/lib/x86_64-linux-gnu/. Is ld not seeing them a bug or
> is Debian different from Ubuntu with respect to their
> location?

Didn't Debian implement some changes recently for (better) multiarch
support?

> And how do I get the thing to find these files?

You could probably use -I. -L. etc., but that's kludgy. Or try "gm2 -
print-search-dirs" to see where it's looking (which, for me, shows
"install:", "programs:", "libraries:").

> (It wasn't always a problem, I did successfully compile
> several self-written programs with previous versions of
> the compiler and Ubuntu (and Debian).)

Hmmm, that sounds like something new has broken. Does Ubuntu have a
maintainer for this package? (Doubt it, but you could try contacting
that person.)

Jürgen Lerch

unread,
Jan 7, 2012, 7:46:17 PM1/7/12
to
Saluton!

Rugxulo <rug...@gmail.com> wrote:
> On Jan 6, 7:42 pm, Jürgen Lerch <jyn...@gmx.de> wrote:
>> I, too, have problems with gm2. I'm on Ubuntu 11.10 (64 bit).
>> Synaptic tells me I have gm2 1.0.4, gm2 --version says 1.0.3
>> (20110930). I installed gm2 using the .debs.
> So you're using an official Ubuntu package? For whatever reason, I

Oh, no, sorry! I added the gm2 site to my sources.list and used
their .debs. I think there are no official Ubuntu gm2 packages.

>> When I try to compile (and link) (even) a simple Hello World,
>> (/usr/bin/) ld complains that it can't find crt1.o and/or
>> crti.o. A filesearch results in finding them in
>> /usr/lib/x86_64-linux-gnu/. Is ld not seeing them a bug or
>> is Debian different from Ubuntu with respect to their
>> location?
> Didn't Debian implement some changes recently for (better) multiarch
> support?

I have no idea.

>> And how do I get the thing to find these files?
> You could probably use -I. -L. etc., but that's kludgy.

-I is, I understand, only for .defs and .mods. -L isn't
mentioned on the website-docs ... (-fobject-path seems to be
for something different, too - at least pointing it to the
aforementioned directory doesn't work either.)

Hm. Invoking gm2 --help gives entirely different options
to the ones on the website (
http://www.nongnu.org/gm2/compiler_options.html); I see no
-L there either, but I could try other library or linker
options.

(Kludgy would be ok for now, as long as it works. ;-))

> Or try "gm2 -
> print-search-dirs" to see where it's looking (which, for me, shows
> "install:", "programs:", "libraries:").

Hm... Thanks, did't see that one (only looked on the website
before). Bewildering output ... Could be a problem with it only
looking into /4.1.2/ subdirectories or something like that ...

>> (It wasn't always a problem, I did successfully compile
>> several self-written programs with previous versions of
>> the compiler and Ubuntu (and Debian).)
> Hmmm, that sounds like something new has broken. Does Ubuntu have a
> maintainer for this package? (Doubt it, but you could try contacting
> that person.)

Doesn't seem so.

Ad Astra!
JuL

--
jyn...@gmx.de / Work like you don't need the money. Dance like
Jürgen ,,JuL'' Lerch / nobody's watching. Love like you've never
/ been hurt. - ?

Rugxulo

unread,
Jan 9, 2012, 4:57:40 PM1/9/12
to
Hi again,

On Jan 7, 6:46 pm, Jürgen Lerch <jyn...@gmx.de> wrote:
>
> Rugxulo <rugx...@gmail.com> wrote:
> > On Jan 6, 7:42 pm, Jürgen Lerch <jyn...@gmx.de> wrote:
> >>
> >> I, too, have problems with gm2. I'm on Ubuntu 11.10 (64 bit).
> >> Synaptic tells me I have gm2 1.0.4, gm2 --version says 1.0.3
> >> (20110930). I installed gm2 using the .debs.
> >
> > So you're using an official Ubuntu package?
>
> Oh, no, sorry! I added the gm2 site to my sources.list and used
> their .debs. I think there are no official Ubuntu gm2 packages.
>
> >> When I try to compile (and link) (even) a simple Hello World,
> >> (/usr/bin/) ld complains that it can't find crt1.o and/or
> >> crti.o. A filesearch results in finding them in
> >> /usr/lib/x86_64-linux-gnu/. Is ld not seeing them a bug or
> >> is Debian different from Ubuntu with respect to their
> >> location?
>
> > Or try "gm2 -
> > print-search-dirs" to see where it's looking (which, for me, shows
> > "install:", "programs:", "libraries:").
>
> Hm... Thanks, did't see that one (only looked on the website
> before). Bewildering output ... Could be a problem with it only
> looking into /4.1.2/ subdirectories or something like that ...

Apparently, on my 32-bit PuppyLinux, the following are all in /usr/
lib: crtn.o, crti.o, crt1.o
I thought GM2 was self-contained in /opt/gm2, but apparently not. So
presumably it relies on you already having the files, I guess from a
pre-existing GCC install (which is 4.4.3 for me).

I know Gaius reads here sometimes, so maybe he'll chime in. If not,
you may want to post to the gm2 mailing list:

http://lists.nongnu.org/archive/html/gm2/

P.S. It seems there is a bit of confusion regarding some recent
changes re: PIM InOut etc. I think we all missed the memo that it now
needs -flibs=pim,logitech to compile properly. See below:

http://lists.nongnu.org/archive/html/gm2/2011-12/msg00002.html

"gm2 -o Simple -flibs=pim,logitech Simple.mod"

Marco van de Voort

unread,
Jan 10, 2012, 3:33:20 PM1/10/12
to
On 2012-01-09, Rugxulo <rug...@gmail.com> wrote:
> Apparently, on my 32-bit PuppyLinux, the following are all in /usr/
> lib: crtn.o, crti.o, crt1.o
> I thought GM2 was self-contained in /opt/gm2, but apparently not. So
> presumably it relies on you already having the files, I guess from a
> pre-existing GCC install (which is 4.4.3 for me).

Afaik those aren't part of gcc, but of the OS (dynamic linker package?)

Gaius Mulley

unread,
Jan 11, 2012, 1:04:11 PM1/11/12
to
On Jan 10, 8:33 pm, Marco van de Voort <mar...@toad.stack.nl> wrote:
Hello

I've just tried on Ubuntu Oneric and it appears that the following
will fix
the gm2 package.

sudo cp /usr/lib/x86_64-linux-gnu/crt1.o /opt/gm2/lib/gcc/x86_64-linux-
gnu/4.1.2/
sudo cp /usr/lib/x86_64-linux-gnu/crti.o /opt/gm2/lib/gcc/x86_64-linux-
gnu/4.1.2/
sudo cp /usr/lib/x86_64-linux-gnu/crtn.o /opt/gm2/lib/gcc/x86_64-linux-
gnu/4.1.2/

regards,
Gaius


ag...@drrob1.com

unread,
Oct 3, 2013, 7:59:41 PM10/3/13
to
I just got bitten by this issue on a current 13.04 Ubuntu 64 bit
system in which I installed gm2 via apt-get several days ago.

I'm glad I had remembered reading about this issue almost 2 yrs ago.

FYI

mulley...@gmail.com

unread,
Oct 8, 2013, 7:21:35 AM10/8/13
to
On Friday, 4 October 2013 00:59:41 UTC+1, ag...@drrob1.com wrote:
> On Wed, 11 Jan 2012 10:04:11 -0800 (PST), Gaius Mulley
>
Hi,

I've just released a new debian package for GNU Modula-2 which hopefully
fixes the above problem.

regards,
Gaius
0 new messages