MOHAMMED LAROUI
2018-10-17 09:10:26 UTC
Hello,
When I run the following command to build ns3 : ./build.py
--enable-examples --enable-tests I get the following error:
[ 918/2766] Compiling src/core/helper/random-variable-stream-helper.cc
[ 921/2766] Compiling src/core/model/fatal-impl.cc
[ 966/2766] Compiling src/core/model/vector.cc
[ 967/2766] Compiling src/core/model/system-path.cc
[ 968/2766] Compiling src/core/model/int64x64-cairo.cc
[ 969/2766] Compiling src/stats/helper/file-helper.cc
In file included from ../src/core/model/int64x64-cairo.cc:30:0:
../src/core/model/cairo-wideint.c: In function âcairo_uquorem64_t
_cairo_uint_96by64_32x64_divrem(cairo_uint128_t, cairo_uint64_t)â:
../src/core/model/cairo-wideint.c:694:44: error: âUINT_MAXâ was not
declared in this scope
result.quo = _cairo_uint32s_to_uint64 (UINT_MAX, UINT_MAX); //PDB cast
^
../src/core/model/cairo-wideint.c:46:52: note: in definition of macro
â_cairo_uint32s_to_uint64â
#define _cairo_uint32s_to_uint64(h,l) ((uint64_t) (h) << 32 | (l))
^
../src/core/model/cairo-wideint.c:694:44: note: suggested alternative:
âUINT8_MAXâ
result.quo = _cairo_uint32s_to_uint64 (UINT_MAX, UINT_MAX); //PDB cast
^
../src/core/model/cairo-wideint.c:46:52: note: in definition of macro
â_cairo_uint32s_to_uint64â
#define _cairo_uint32s_to_uint64(h,l) ((uint64_t) (h) << 32 | (l))
^
../src/core/model/cairo-wideint.c: In function âcairo_quorem64_t
_cairo_int_96by64_32x64_divrem(cairo_int128_t, cairo_int64_t)â:
../src/core/model/cairo-wideint.c:810:49: error: âUINT_MAXâ was not
declared in this scope
qr.quo = _cairo_uint32s_to_uint64 (0x7FFFFFFF, UINT_MAX); //PDB cast
^
../src/core/model/cairo-wideint.c:46:64: note: in definition of macro
â_cairo_uint32s_to_uint64â
#define _cairo_uint32s_to_uint64(h,l) ((uint64_t) (h) << 32 | (l))
^
../src/core/model/cairo-wideint.c:810:49: note: suggested alternative:
âUINT8_MAXâ
qr.quo = _cairo_uint32s_to_uint64 (0x7FFFFFFF, UINT_MAX); //PDB cast
^
../src/core/model/cairo-wideint.c:46:64: note: in definition of macro
â_cairo_uint32s_to_uint64â
#define _cairo_uint32s_to_uint64(h,l) ((uint64_t) (h) << 32 | (l))
^
Waf: Leaving directory
`/media/mohammed/MOHAMMED/ns-allinone-3.29/ns-3.29/build'
Build failed
-> task in 'ns3-core' failed with exit status 1 (run with -v to display
more information)
Traceback (most recent call last):
File "./build.py", line 176, in <module>
sys.exit(main(sys.argv))
File "./build.py", line 167, in main
build_ns3(config, build_examples, build_tests, args, build_options)
File "./build.py", line 87, in build_ns3
run_command([sys.executable, "waf", "build"] + build_options)
File "/media/mohammed/MOHAMMED/ns-allinone-3.29/util.py", line 25, in
run_command
raise CommandError("Command %r exited with code %i" % (argv, retval))
util.CommandError: Command ['/usr/bin/python', 'waf', 'build'] exited with
code 1
-----------------------------------
OS: Linux Mint 19
gcc version : 7.3.0
ns-3.29
PLease how can I resolve this problem ??
Thank you.
When I run the following command to build ns3 : ./build.py
--enable-examples --enable-tests I get the following error:
[ 918/2766] Compiling src/core/helper/random-variable-stream-helper.cc
[ 921/2766] Compiling src/core/model/fatal-impl.cc
[ 966/2766] Compiling src/core/model/vector.cc
[ 967/2766] Compiling src/core/model/system-path.cc
[ 968/2766] Compiling src/core/model/int64x64-cairo.cc
[ 969/2766] Compiling src/stats/helper/file-helper.cc
In file included from ../src/core/model/int64x64-cairo.cc:30:0:
../src/core/model/cairo-wideint.c: In function âcairo_uquorem64_t
_cairo_uint_96by64_32x64_divrem(cairo_uint128_t, cairo_uint64_t)â:
../src/core/model/cairo-wideint.c:694:44: error: âUINT_MAXâ was not
declared in this scope
result.quo = _cairo_uint32s_to_uint64 (UINT_MAX, UINT_MAX); //PDB cast
^
../src/core/model/cairo-wideint.c:46:52: note: in definition of macro
â_cairo_uint32s_to_uint64â
#define _cairo_uint32s_to_uint64(h,l) ((uint64_t) (h) << 32 | (l))
^
../src/core/model/cairo-wideint.c:694:44: note: suggested alternative:
âUINT8_MAXâ
result.quo = _cairo_uint32s_to_uint64 (UINT_MAX, UINT_MAX); //PDB cast
^
../src/core/model/cairo-wideint.c:46:52: note: in definition of macro
â_cairo_uint32s_to_uint64â
#define _cairo_uint32s_to_uint64(h,l) ((uint64_t) (h) << 32 | (l))
^
../src/core/model/cairo-wideint.c: In function âcairo_quorem64_t
_cairo_int_96by64_32x64_divrem(cairo_int128_t, cairo_int64_t)â:
../src/core/model/cairo-wideint.c:810:49: error: âUINT_MAXâ was not
declared in this scope
qr.quo = _cairo_uint32s_to_uint64 (0x7FFFFFFF, UINT_MAX); //PDB cast
^
../src/core/model/cairo-wideint.c:46:64: note: in definition of macro
â_cairo_uint32s_to_uint64â
#define _cairo_uint32s_to_uint64(h,l) ((uint64_t) (h) << 32 | (l))
^
../src/core/model/cairo-wideint.c:810:49: note: suggested alternative:
âUINT8_MAXâ
qr.quo = _cairo_uint32s_to_uint64 (0x7FFFFFFF, UINT_MAX); //PDB cast
^
../src/core/model/cairo-wideint.c:46:64: note: in definition of macro
â_cairo_uint32s_to_uint64â
#define _cairo_uint32s_to_uint64(h,l) ((uint64_t) (h) << 32 | (l))
^
Waf: Leaving directory
`/media/mohammed/MOHAMMED/ns-allinone-3.29/ns-3.29/build'
Build failed
-> task in 'ns3-core' failed with exit status 1 (run with -v to display
more information)
Traceback (most recent call last):
File "./build.py", line 176, in <module>
sys.exit(main(sys.argv))
File "./build.py", line 167, in main
build_ns3(config, build_examples, build_tests, args, build_options)
File "./build.py", line 87, in build_ns3
run_command([sys.executable, "waf", "build"] + build_options)
File "/media/mohammed/MOHAMMED/ns-allinone-3.29/util.py", line 25, in
run_command
raise CommandError("Command %r exited with code %i" % (argv, retval))
util.CommandError: Command ['/usr/bin/python', 'waf', 'build'] exited with
code 1
-----------------------------------
OS: Linux Mint 19
gcc version : 7.3.0
ns-3.29
PLease how can I resolve this problem ??
Thank you.
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.