Discussion:
Ns3 Building Error
MOHAMMED LAROUI
2018-10-17 09:10:26 UTC
Permalink
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.
--
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.
Sebastien Deronne
2018-12-04 19:57:30 UTC
Permalink
I experienced the same issue on the machine of a colleague.
I pushed the solution to ns-3-dev.
--
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.
Loading...