Re: Cross-compiling with Autoconf

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

 



On 11/03/2015 11:58 AM, Dustin Laurence wrote:

> It says it can't find crt0.o

I did some more investigation on this, and one interesting thing is that
I can't find crt0.o either--it isn't anywhere in the SDK, though a
number of other *crt*.o files exist.  That seems wrong since the
complaint is that LD can't find a file named crt0.o, but the tools work
so that we know that nothing is missing.  There is no crt0.o in /usr/lib
either, for that matter, so probably it isn't expected to exist as a
separate file.  Clearly one problem I have is not really understanding
what gcc and ld are doing under the hood.

If it helps, here are valid invocations of the SDK gcc and ld during an
ARM build (there is a *lot* of noise in those command lines from library
requirements and a bunch of other stuff, but I didn't trim anything so
there is no question about whether I took out something important):

/opt/nfast/gcc/bin/strongarm-codesafe-elf-gcc -O2 -Wall -Wpointer-arith
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -mapcs-32
-msoft-float -mlittle-endian -march=armv4 -nostdinc -fno-builtin -Werror
    -std=gnu99 -Wformat=2 -D_FORTIFY_SOURCE=2
-fno-delete-null-pointer-checks -fno-strict-aliasing -fms-extensions
-Winline -DSERVER_ADDRS='{"127.0.0.1", NULL}' -DNDEBUG
-DGEM_WORKER_THREADS=4 -DNF_CROSSCC_BSDUSR=1 -D_THREAD_SAFE
-DNF_CROSSCC=1 -DNF_CROSSCC_ARM_GCC=1 -I../trezor-crypto -I.. -include
th_api/fixstdarg.h -I/opt/nfast/c/csd/include-see/bsdlib
-I/opt/nfast/c/csd/include-see/cutils
-I/opt/nfast/c/csd/include-see/bsdsee
-I/opt/nfast/c/csd/include-see/hilibs
-I/opt/nfast/c/csd/include-see/sworld
-I/opt/nfast/c/csd/include-see/nflog -I/opt/nfast/c/csd/examples/cutils
-I/opt/nfast/c/csd/examples/hilibs  -c -MD -o socket.o ../gem_hsm/socket.c
/opt/nfast/gcc/bin/strongarm-codesafe-elf-ar rv libgem_hsm.a socket.o
/opt/nfast/gcc/bin/strongarm-codesafe-elf-ar: creating libgem_hsm.a

...

/opt/nfast/gcc/bin/strongarm-codesafe-elf-ld -warn-common -nostdlib
-Ttext 0x08400000 -Tdata 0x08600000 -z now -z relro -o gem_module.elf
gem_module.o socket.o error.o worker.o string_ref.o frame.o byte_ref.o
wallet_node.o log.o app.o random.o wallet_seed.o random_key.o
callbacks.o gem_secp256k1.o transact.o key_convert.o buf.o env.o
th_M_ACL.o th_Transact.o th_M_EllipticCurve.o th_M_Command.o
th_M_Reply.o th_M_Field.o th_M_KeyData.o th_M_PlainText.o
th_M_CipherText.o th_memset.o ncthread-unix.o ncthread-upcalls.o
normalmalloc.o nfutil.o simplebignum.o bip32.o ecdsa.o sha2.o
secp256k1.o bignum.o base58.o hmac.o ripemd160.o rand.o testutil.o
/opt/nfast/c/csd/lib-arm-gcc/hostinetsocks.o
-L/opt/nfast/c/csd/lib-arm-gcc/ -lnfkm -lvfsextras -lcutils -pthread -lc

Dustin


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux