Mailinglist Archive: opensuse (3337 mails)

< Previous Next >
What is the meaning of the option -X32 ?
  • From: Maura Edeweiss Monville <memonvil@xxxxxxxxxxxxxxxx>
  • Date: Sun, 23 Apr 2006 02:08:47 -0500 (CDT)
  • Message-id: <Pine.GSO.4.58.0604230200260.21377@xxxxxxxxxxxxxxxxxxxxx>
I tried to get some info for the Tcl/Tk library file that is not linked
because it is regarded by the linker as "incompatible". .

mauede@linux:/home/mokhov/restricted/mars15/linux/lib> file -k libm15gui_linux.a
libm15gui_linux.a: current ar archive\012- archive file\012- Assembler source

Then I enquired about "ar". I remember Dr.Mockov typing "ar" during our
Monte Carlo code installation attempt. In fact I had never seen such a
command before and asked him about it. He said it archives files.

I just typed in "man ar" and read the following:

mauede@linux:~/cernlib.32-2005-ifh.de/2005/lib> man ar
NAME
ar - create, modify, and extract from archives

......................................................................
......................................................................
ar ignores an initial option spelt -X32_64, for compatibility with
AIX. The behaviour produced by this option is the default for GNU ar.
ardoes not support any of the other -X options; in particular, it does
not support -X32 which is the default for AIX ar.

What is the meaning and consequence of not supporting the option "-X32" ?
I do not know what this option does (never seen before) and am caught by
phobia at reading he magic number "32" .... I wonder if there is any
relation with this unsupported option and the linker regarding the file
"libm15gui_linux.a" as incompatible with the rest of the objects being
generated by compiling with the option -m32 ....
See the following errors returned by the linker ....


*************************************************************************
* Errors from launching the make that includes all libraries
*
*************************************************************************


mauede@linux:/home/mokhov/restricted/mars15> make
g77 -m32 -static -L/home/mauede/cernlib.32- 2005-ifh.de/2005/lib
-L/home/mokhov/restricted/mars15/linux/lib
-L/home/mokhov/restricted/mcnp4c/linux/lib
-L/home/mokhov/restricted/mars15/linux/lib
-L/home/mokhov/restricted/mars15/linux/lib -o rmars-bnab-fems-linux
marsmain.o m1505.o -lm15gui_linux -lm15linux -lm15fems_linux
-lm15trneu_linux -lm15treem_linux -lm15eve_linux -lm15cem03_linux
-lm15ext_linux -lm15blb_linux -lm15mpino_linux -lm15linux -lpacklib
-ltk8.3 -ltcl8.3 -L/usr/X11R6/lib -lX11 -ldl -lnsl -lpthread
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible
/home/mokhov/restricted/mars15/linux/lib/libm15gui_linux.a when searching
for -lm15gui_linux
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible
/home/mokhov/restricted/mars15/linux/lib/libm15gui_linux.a when searching
for -lm15gui_linux
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible
/home/mokhov/restricted/mars15/linux/lib/libm15gui_linux.a when searching
for -lm15gui_linux
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld:
cannot find -lm15gui_linux

collect2: ld returned 1 exit status
make: *** [rmars-bnab-fems-linux] Error 1

--
Maura E.M

< Previous Next >
This Thread
  • No further messages