This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building dmalloc 5.5.2 on OS X with crosstool-ng 1.20...


Rasit,

On Tue, Dec 2, 2014 at 7:45 AM, Rasit Eskicioglu
<rasit.eskicioglu@gmail.com> wrote:
> I'm trying to build an arm cross compiler on Yosemite (with latest updates).
> The everything works, except dmalloc.

Dmalloc is a memory allocation debugging library for the target and is
not needed to create a cross-compiler. You can simply disable it in
the .config file or via 'ct-ng menuconfig'.

> The following is a snippet from the build.log file:
>
>> arm-freescale-linux-gnueabi-gcc -fPIC -DHAVE_STDARG_H=1 -DHAVE_STDLIB_H=1
>> -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_TYPES_H=1
>> -DHAVE_W32API_WINBASE_H=0 -DHAVE_W32API_WINDEF_H=0 -DHAVE_SYS_CYGWIN_H=0
>> -DHAVE_SIGNAL_H=1  -I.
>> -I/Volumes/CTools/crosstool-NG/1.19/build/src/dmalloc-5.5.2 -DLOCK_THREADS=1
>> -c /Volumes/CTools/crosstool-NG/1.19/build/src/dmalloc-5.5.2/malloc.c -o
>> ./malloc_th.o
>> [ALL  ]    ar cr libdmallocth.a arg_check.o compat.o dmalloc_rand.o
>> dmalloc_tab.o env.o heap.o chunk_th.o error_th.o malloc_th.o
>> [ALL  ]    arm-freescale-linux-gnueabi-ranlib libdmallocth.a
>> [ALL  ]    rm -f libdmallocth.dylib libdmallocth.dylib.t
>> [ALL  ]    arm-freescale-linux-gnueabi-g++ -dynamiclib -install_name
>> libdmallocth.dylib -compatibility_version 1 -current_version 1 -o
>> libdmallocth.dylib.t libdmallocth.a
>> [ERROR]    arm-freescale-linux-gnueabi-g++: error: libdmallocth.dylib: No
>> such file or directory
>> [ERROR]    arm-freescale-linux-gnueabi-g++: error: 1: No such file or
>> directory
>> [ERROR]    arm-freescale-linux-gnueabi-g++: error: 1: No such file or
>> directory
>> [ERROR]    arm-freescale-linux-gnueabi-g++: error: unrecognized command
>> line option '-install_name'
>> [ERROR]    arm-freescale-linux-gnueabi-g++: error: unrecognized command
>> line option '-compatibility_version'
>> [ERROR]    arm-freescale-linux-gnueabi-g++: error: unrecognized command
>> line option '-current_version'
>> [ERROR]    make[1]: *** [libdmallocth.dylib] Error 1

In other words, right now it is not supported on Mac OS X, and better
off if you just disable building it. Eventually I will start working
towards making sure things either work on *BSD/Mac OS X (along with
work already done by Diorcet Yann and Ray Donnelly.

-Bryan

> Any help is appreciated.
>
> --Rasit
>
>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]