Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #90671

Re: Feedback for a malloc implementation

From Keith Thompson <kst-u@mib.org>
Newsgroups comp.lang.c
Subject Re: Feedback for a malloc implementation
Date 2016-07-20 09:28 -0700
Organization None to speak of
Message-ID <ln1t2omfy7.fsf@kst-u.example.com> (permalink)
References <53ccbf4e-2d12-4d86-9af1-9062ff002f9c@googlegroups.com> <ecc6e5ec-a0a9-44ee-bf44-f55c9f583c98@googlegroups.com> <kfnr3aqyk5d.fsf@x-alumni2.alumni.caltech.edu> <a1e76813-e6be-4914-af4a-9247c69c895b@googlegroups.com> <kfnlh0wuxd1.fsf@x-alumni2.alumni.caltech.edu>

Show all headers | View raw


Tim Rentsch <txr@alumni.caltech.edu> writes:
[...]
> I followed your directions and checked out the distribution
> branch.  No problem running cmake.  But then the make failed.
> Here is the first error message (please excuse my wrapping the
> long lines):
>
>     [ 21%] Building CXX object test/CMakeFiles/tMallocPerfRef.dir/tMallocPerf.cpp.o
>     In file included from /usr/include/c++/4.8/thread:35:0,
>                      from /opt/software/git/akmalloc/test/tMallocPerf.cpp:307:
>     /usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error:  #error This file 
>       requires compiler and library support for the ISO\
>     C++ 2011 standard. This support is currently experimental, and must be
>       enabled with the -std=c++11 or -std=gnu++11 compi\
>     ler options.
>      #error This file requires compiler and library support for the \
>       ^

(This is arguably off-topic, but ...)

The versions of C and C++ supported by gcc and g++ by default have
changed with recent releases.  With the 4.8 version you're using,
the defaults are -std=gnu90 and -std=gnu++98.  gcc release 5 (I
checked 5.3.0) changed the default for C to -std=gnu11, and release 6
(I checked 6.1.0) changed the default for C++ to -std=gnu++14.

It's likely that you wouldn't encounter the above error if you used
gcc release 6 (you'd probably have to install it yourself).

The Makefile (and/or whatever cmake uses) should be updated to
specify the standard to use by passing the proper option to the
gcc and g++ commands.

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-16 17:45 -0700
  Re: Feedback for a malloc implementation Udyant Wig <udyant.wig@gmail.com> - 2016-07-17 12:22 +0530
    Re: Feedback for a malloc implementation Udyant Wig <udyant.wig@gmail.com> - 2016-07-17 17:58 +0530
      Re: Feedback for a malloc implementation BartC <bc@freeuk.com> - 2016-07-17 13:40 +0100
        Re: Feedback for a malloc implementation Udyant Wig <udyant.wig@gmail.com> - 2016-07-17 23:06 +0530
          Re: Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-17 13:40 -0700
  Re: Feedback for a malloc implementation Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-07-17 00:30 -0700
    Re: Feedback for a malloc implementation BartC <bc@freeuk.com> - 2016-07-17 10:54 +0100
      Re: Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-17 04:36 -0700
    Re: Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-17 04:31 -0700
      Re: Feedback for a malloc implementation Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-07-17 11:40 -0700
        Re: Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-17 13:41 -0700
  Re: Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-17 07:02 -0700
    Re: Feedback for a malloc implementation BartC <bc@freeuk.com> - 2016-07-17 20:38 +0100
      Re: Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-17 13:44 -0700
        Re: Feedback for a malloc implementation BartC <bc@freeuk.com> - 2016-07-17 22:19 +0100
          Re: Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-17 18:08 -0700
    Re: Feedback for a malloc implementation Tim Rentsch <txr@alumni.caltech.edu> - 2016-07-18 09:40 -0700
      Re: Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-18 10:48 -0700
        Re: Feedback for a malloc implementation Tim Rentsch <txr@alumni.caltech.edu> - 2016-07-20 08:45 -0700
          Re: Feedback for a malloc implementation Keith Thompson <kst-u@mib.org> - 2016-07-20 09:28 -0700
            Re: Feedback for a malloc implementation Tim Rentsch <txr@alumni.caltech.edu> - 2016-07-21 18:25 -0700
              Re: Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-22 16:52 -0700

csiph-web