Discussion:
gm2 doesn't work
(too old to reply)
Jürgen Lerch
2012-01-07 01:42:10 UTC
Permalink
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)
***@gmx.de /
Rugxulo
2012-01-07 18:06:46 UTC
Permalink
Hi,
I'm probably not the best person to answer this, but maybe it'll
help anyways,
Post by Jürgen Lerch
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.
Post by Jürgen Lerch
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?
Post by Jürgen Lerch
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:").
Post by Jürgen Lerch
(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
2012-01-08 00:46:17 UTC
Permalink
Saluton!
Post by Rugxulo
Post by Jürgen Lerch
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.
Post by Rugxulo
Post by Jürgen Lerch
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.
Post by Rugxulo
Post by Jürgen Lerch
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. ;-))
Post by Rugxulo
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 ...
Post by Rugxulo
Post by Jürgen Lerch
(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
--
***@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
2012-01-09 21:57:40 UTC
Permalink
Hi again,
Post by Jürgen Lerch
Post by Rugxulo
Post by Jürgen Lerch
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.
Post by Rugxulo
Post by Jürgen Lerch
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
2012-01-10 20:33:20 UTC
Permalink
Post by Rugxulo
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
2012-01-11 18:04:11 UTC
Permalink
Post by Marco van de Voort
Post by Rugxulo
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?)
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
a***@drrob1.com
2013-10-03 23:59:41 UTC
Permalink
On Wed, 11 Jan 2012 10:04:11 -0800 (PST), Gaius Mulley
Post by Gaius Mulley
Post by Marco van de Voort
Post by Rugxulo
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?)
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
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
m***@gmail.com
2013-10-08 11:21:35 UTC
Permalink
Post by a***@drrob1.com
On Wed, 11 Jan 2012 10:04:11 -0800 (PST), Gaius Mulley
Post by Gaius Mulley
Post by Marco van de Voort
Post by Rugxulo
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?)
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
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
Hi,

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

regards,
Gaius

Loading...