Opened 11 years ago

Closed 11 years ago

#41362 closed defect (invalid)

calc-2.12.4.3 fails compiling

Reported by: hamid.ohadi@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: mavericks Cc: ryandesign (Ryan Carsten Schmidt)
Port: calc

Description

on a fresh install of MacPorts, calc-2.12.4.3 fails compiling with the "error: unknown type name 'size_t'":

:info:build MACOSX_DEPLOYMENT_TARGET=10.9 /usr/bin/clang  -DCALC_SRC -DCUSTOM -Wall -W -Wno-comment   -fPIC -O3 -g3 -I..   -c -o c_devnull.o c_devnull.c
:info:build In file included from c_devnull.c:40:
:info:build In file included from ../value.h:37:
:info:build In file included from ../cmath.h:36:
:info:build In file included from ../qmath.h:36:
:info:build In file included from ../zmath.h:43:
:info:build ../alloc.h:57:8: error: unknown type name 'size_t'
:info:build E_FUNC size_t strlen();
:info:build        ^
:info:build In file included from c_devnull.c:40:
:info:build In file included from ../value.h:44:
:info:build ../str.h:44:2: error: unknown type name 'size_t'
:info:build         size_t s_len;
:info:build         ^
:info:build ../str.h:54:2: error: unknown type name 'size_t'
:info:build         size_t h_used;  /* characters used so far */
:info:build         ^
:info:build ../str.h:55:2: error: unknown type name 'size_t'
:info:build         size_t h_avail; /* characters available for use */
:info:build         ^
:info:build ../str.h:68:34: error: unknown type name 'size_t'
:info:build E_FUNC long addstring(char *str, size_t len);
:info:build                                  ^
:info:build In file included from c_devnull.c:40:
:info:build ../value.h:505:8: error: unknown type name 'size_t'
:info:build E_FUNC size_t lsizeof(VALUE *vp);
:info:build        ^
:info:build ../value.h:506:8: error: unknown type name 'size_t'
:info:build E_FUNC size_t memsize(VALUE *vp);
:info:build        ^
:info:build ../value.h:524:47: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
:info:build E_FUNC STRING *stringncpy(STRING *, STRING *, size_t);
:info:build                                               ^~~~~~
:info:build 1 warning and 7 errors generated.
:info:build make[1]: *** [c_devnull.o] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_calc/calc/work/calc-2.12.4.3/custom'
:info:build make: *** [custom/.all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_calc/calc/work/calc-2.12.4.3'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_calc/calc/work/calc-2.12.4.3" && /usr/bin/make -w all 
:info:build Exit code: 2
:error:build org.macports.build for port calc returned: command execution failed
:debug:build Error code: CHILDSTATUS 61142 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for calc: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port calc for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_calc/calc/main.log

Attachments (2)

main.log (9.5 KB) - added by hamid.ohadi@… 11 years ago.
main.2.log (20.0 KB) - added by hamid.ohadi@… 11 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Port: calc added

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Hmm, it installs fine for me. Could you attach the main.log file please?

Changed 11 years ago by hamid.ohadi@…

Attachment: main.log added

comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

This is not a clean log. Also, I've updated calc to a newer version. Please wait 30 minutes, then "sudo port selfupdate" and try again and attach that main.log if it fails again.

Changed 11 years ago by hamid.ohadi@…

Attachment: main.2.log added

comment:4 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Ok, same error: unknown type name 'size_t'. size_t should be defined by the standard headers, which makes me wonder if you perhaps don't have them installed. Does the directory /usr/include exist? If not, install the command line tools by running xcode-select --install

comment:5 Changed 11 years ago by hamid.ohadi@…

Oh thank you! That fixed the problem. After I upgraded to Maverick I forgot to install the command line tools. Because everything else was compiling fine I thought there was a problem with this particular port. Sorry about that.

comment:6 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: mavericks added
Resolution: invalid
Status: newclosed

Glad that worked. It surprises me how many ports build ok under Mavericks without the command line tools, but because some don't, we still require the command line tools to be installed.

Note: See TracTickets for help on using tickets.