[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] XaAES working ?



On 03/30/11 12:53, Vincent Rivière wrote:
> Alan Hourihane wrote:
>> Either something is wrong with your GCC patch
>
> Maybe, but I have never found something inexplicable until now.
>
>> or using -Wl,-t isn't the correct usage.
>
> This option can't lie, the linker itself shows what it is linking.
>
>> If I use -Wl,-t it doesn't show it's using the "mshort" directory
>
> Remember we don't have a mshort MiNTLib. So mshort/libc.a will never
> be used.
>
> However, mshort/libgcc.a should be used.
> But in order to be used, it must exist on your system, if this is not
> the case GCC will default to the standard one.
> Does /usr/lib/gcc/m68k-atari-mint/4.5.2/mshort/libgcc.a exist on your
> system ?
> And also /usr/m68k-atari-mint/lib/mshort/libgem.a ?

Yes, they exist.

> Some further ideas:
> - Compile with -v to see the linker command line

bash# m68k-atari-mint-gcc -v -mshort -o main main.c      
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/m68k-atari-mint/gcc-bin/4.5.2/m68k-atari-mint-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/m68k-atari-mint/4.5.2/lto-wrapper
Target: m68k-atari-mint
Configured with:
/var/tmp/cross/m68k-atari-mint/portage/cross-m68k-atari-mint/gcc-4.5.2/work/gcc-4.5.2/configure
--prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/m68k-atari-mint/gcc-bin/4.5.2
--includedir=/usr/lib/gcc/m68k-atari-mint/4.5.2/include
--datadir=/usr/share/gcc-data/m68k-atari-mint/4.5.2
--mandir=/usr/share/gcc-data/m68k-atari-mint/4.5.2/man
--infodir=/usr/share/gcc-data/m68k-atari-mint/4.5.2/info
--with-gxx-include-dir=/usr/lib/gcc/m68k-atari-mint/4.5.2/include/g++-v4
--host=x86_64-pc-linux-gnu --target=m68k-atari-mint
--build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point
--without-ppl --without-cloog --disable-lto --disable-nls
--with-system-zlib --disable-werror --enable-secureplt --enable-multilib
--disable-libmudflap --disable-libssp --disable-libgomp --enable-cld
--with-python-dir=/share/gcc-data/m68k-atari-mint/4.5.2/python
--enable-checking=release --disable-libgcj --enable-languages=c
--disable-bootstrap --with-bugurl=http://bugs.gentoo.org/
--with-pkgversion='Gentoo 4.5.2 p1.0, pie-0.4.5' --enable-multilib
Thread model: single
gcc version 4.5.2 (Gentoo 4.5.2 p1.0, pie-0.4.5)
COLLECT_GCC_OPTIONS='-v' '-mshort' '-o' 'main' '-m68000'
 /usr/libexec/gcc/m68k-atari-mint/4.5.2/cc1 -quiet -v -imultilib mshort
-D__M68000__ -D__MSHORT__ main.c -D_FORTIFY_SOURCE=2 -quiet -dumpbase
main.c -mshort -m68000 -auxbase main -version -o /tmp/ccaQWg3Z.s
GNU C (Gentoo 4.5.2 p1.0, pie-0.4.5) version 4.5.2 (m68k-atari-mint)
    compiled by GNU C version 4.4.5, GMP version 4.3.2, MPFR version
3.0.0-p3, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory
"/usr/lib/gcc/m68k-atari-mint/4.5.2/../../../../m68k-atari-mint/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/m68k-atari-mint/4.5.2/include
 /usr/lib/gcc/m68k-atari-mint/4.5.2/include-fixed
 /usr/lib/gcc/m68k-atari-mint/4.5.2/../../../../m68k-atari-mint/include
End of search list.
GNU C (Gentoo 4.5.2 p1.0, pie-0.4.5) version 4.5.2 (m68k-atari-mint)
    compiled by GNU C version 4.4.5, GMP version 4.3.2, MPFR version
3.0.0-p3, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: be37f24a1595d09f613cbc8771996ef2
COLLECT_GCC_OPTIONS='-v' '-mshort' '-o' 'main' '-m68000'
 /usr/libexec/gcc/m68k-atari-mint/as -m68000 -o /tmp/ccN6sAXd.o
/tmp/ccaQWg3Z.s
COMPILER_PATH=/usr/libexec/gcc/m68k-atari-mint/4.5.2/:/usr/libexec/gcc/m68k-atari-mint/4.5.2/:/usr/libexec/gcc/m68k-atari-mint/:/usr/lib/gcc/m68k-atari-mint/4.5.2/:/usr/lib/gcc/m68k-atari-mint/
LIBRARY_PATH=/usr/lib/gcc/m68k-atari-mint/4.5.2/mshort/:/usr/lib/gcc/m68k-atari-mint/4.5.2/../../../../m68k-atari-mint/lib/mshort/:/usr/lib/gcc/m68k-atari-mint/4.5.2/:/usr/lib/gcc/m68k-atari-mint/4.5.2/../../../../m68k-atari-mint/lib/
COLLECT_GCC_OPTIONS='-v' '-mshort' '-o' 'main' '-m68000'
 /usr/libexec/gcc/m68k-atari-mint/4.5.2/collect2 -o main
/usr/lib/gcc/m68k-atari-mint/4.5.2/../../../../m68k-atari-mint/lib/crt0.o -L/usr/lib/gcc/m68k-atari-mint/4.5.2
-L/usr/lib/gcc/m68k-atari-mint/4.5.2/../../../../m68k-atari-mint/lib
/tmp/ccN6sAXd.o -lgcc -lc -lgcc


> - m68k-atari-mint-gcc -print-multi-lib

bash# m68k-atari-mint-gcc -print-multi-lib
.;
m68020-60;@m68020-60
m5475;@mcpu=5475
mshort;@mshort
m68020-60/mshort;@m68020-60@mshort
m5475/mshort;@mcpu=5475@mshort

> - m68k-atari-mint-gcc -print-multi-directory -mshort

bash# m68k-atari-mint-gcc -print-multi-directory -mshort
mshort


> - m68k-atari-mint-gcc -print-file-name=libgcc.a -mshort
>

bash# m68k-atari-mint-gcc -print-file-name=libgcc.a -mshort
/usr/lib/gcc/m68k-atari-mint/4.5.2/mshort/libgcc.a

> I'm sorry but I can't test myself until tonight.
>
O.k.

Alan.