Discussion:
[ast-developers] Build failures on SuSE 12.3/AMD64/64bit... / was:
Roland Mainz
2013-08-29 20:02:21 UTC
Permalink
the AT&T Software Technology ast alpha 2013-08-29 source release
has been posted to the download site
http://www.research.att.com/sw/download/alpha/
the package names and md5 checksums are
INIT 132e0403af573fa1cb1e202267fedeb8
ast-open 334615fb3a652575106194c281d27b5c
ast-ksh ebcc56d9ab673aaafbb163d6eee1a93c
the md5 sums should match the ones listed on the download page
Erm... ast-ksh.2013-08-29 doesn't build on SuSE 12.3/AMD64/64bit:
-- snip --
+ cc -D_BLD_DLL -fPIC -D_BLD_ast '-DSHOPT_CMDLIB_BLTIN=0'
'-DSH_CMDLIB_DIR="/usr/ast/bin"'
'-DSHOPT_CMDLIB_HDR="/home/test001/work/ast_ksh_20130829/build_i386_64bit_debug/tmp_gnul
inux_builtin_header.h"' -DSHOPT_SYSRC '-D_map_libc=1' -g -ggdb
-fno-builtin -fstrict-aliasing -Wstrict-aliasing -fstrict-overflow
-Wstrict-overflow -Wsequence-point -Wno-parenthes
es -Wno-unused -Wno-trigraphs -Wclobbered -Waddress -I.
-I/home/test001/work/ast_ksh_20130829/build_i386_64bit_debug/src/lib/libast
-Icomp -I/home/test001/work/ast_ksh_20130829/bu
ild_i386_64bit_debug/src/lib/libast/comp -Iinclude
-I/home/test001/work/ast_ksh_20130829/build_i386_64bit_debug/src/lib/libast/include
-Istd -I/home/test001/work/ast_ksh_20130829/
build_i386_64bit_debug/src/lib/libast/std -D_PACKAGE_ast -c
/home/test001/work/ast_ksh_20130829/build_i386_64bit_debug/src/lib/libast/misc/state.c
In file included from
/home/test001/work/ast_ksh_20130829/build_i386_64bit_debug/src/lib/libast/include/ast_std.h:362:0,
from
/home/test001/work/ast_ksh_20130829/build_i386_64bit_debug/src/lib/libast/include/ast.h:34,
from
/home/test001/work/ast_ksh_20130829/build_i386_64bit_debug/src/lib/libast/misc/state.c:26:
./ast_map.h:108:34: error: expected ')' before 'char'
mamake [lib/libast]: *** exit code 1 making state.o
-- snip --

----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Glenn Fowler
2013-08-29 20:11:51 UTC
Permalink
Post by Roland Mainz
the AT&T Software Technology ast alpha 2013-08-29 source release
has been posted to the download site
http://www.research.att.com/sw/download/alpha/
the package names and md5 checksums are
INIT 132e0403af573fa1cb1e202267fedeb8
ast-open 334615fb3a652575106194c281d27b5c
ast-ksh ebcc56d9ab673aaafbb163d6eee1a93c
the md5 sums should match the ones listed on the download page
when using non-default options please qualify "doesn't build"
(even though you provided the cc line which hints at it)
in this case I believe its
"... doesn't build using PACKAGE_OPTIONS=map-libc ..."
which means this or something equivalent
bin/package make PACKAGE_OPTIONS=map-libc

background: map-libc causes the libast build to
#define standardfoo _ast_standardfoo
for all (known) standardfoo syscall names so that -last won't clash with -lc

I will add a map-libc build to the ast build farm to avoid this in the future

thanks
Post by Roland Mainz
-- snip --
+ cc -D_BLD_DLL -fPIC -D_BLD_ast '-DSHOPT_CMDLIB_BLTIN=0'
'-DSH_CMDLIB_DIR="/usr/ast/bin"'
'-DSHOPT_CMDLIB_HDR="/home/test001/work/ast_ksh_20130829/build_i386_64bit_debug/tmp_gnul
inux_builtin_header.h"' -DSHOPT_SYSRC '-D_map_libc=1' -g -ggdb
-fno-builtin -fstrict-aliasing -Wstrict-aliasing -fstrict-overflow
-Wstrict-overflow -Wsequence-point -Wno-parenthes
es -Wno-unused -Wno-trigraphs -Wclobbered -Waddress -I.
-I/home/test001/work/ast_ksh_20130829/build_i386_64bit_debug/src/lib/libast
-Icomp -I/home/test001/work/ast_ksh_20130829/bu
ild_i386_64bit_debug/src/lib/libast/comp -Iinclude
-I/home/test001/work/ast_ksh_20130829/build_i386_64bit_debug/src/lib/libast/include
-Istd -I/home/test001/work/ast_ksh_20130829/
build_i386_64bit_debug/src/lib/libast/std -D_PACKAGE_ast -c
/home/test001/work/ast_ksh_20130829/build_i386_64bit_debug/src/lib/libast/misc/state.c
In file included from
/home/test001/work/ast_ksh_20130829/build_i386_64bit_debug/src/lib/libast/include/ast_std.h:362:0,
from
/home/test001/work/ast_ksh_20130829/build_i386_64bit_debug/src/lib/libast/include/ast.h:34,
from
./ast_map.h:108:34: error: expected ')' before 'char'
mamake [lib/libast]: *** exit code 1 making state.o
-- snip --
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Glenn Fowler
2013-08-29 21:21:14 UTC
Permalink
Post by Glenn Fowler
the AT&T Software Technology ast alpha 2013-08-29 source release
has been posted to the download site
http://www.research.att.com/sw/download/alpha/
the package names and md5 checksums are
INIT 132e0403af573fa1cb1e202267fedeb8
ast-open 334615fb3a652575106194c281d27b5c
ast-ksh ebcc56d9ab673aaafbb163d6eee1a93c
the md5 sums should match the ones listed on the download page
when using non-default options please qualify "doesn't build"
(even though you provided the cc line which hints at it)
in this case I believe its
"... doesn't build using PACKAGE_OPTIONS=map-libc ..."
which means this or something equivalent
bin/package make PACKAGE_OPTIONS=map-libc
background: map-libc causes the libast build to
#define standardfoo _ast_standardfoo
for all (known) standardfoo syscall names so that -last won't clash with -lc
I will add a map-libc build to the ast build farm to avoid this in the future
build complete

typo in src/lib/libast/features/map.c:

- printf("extern char* fgetcwd(fd, char*, size_t);\n");
+ printf("extern char* fgetcwd(int, char*, size_t);\n");
Roland Mainz
2013-08-29 21:27:20 UTC
Permalink
Post by Glenn Fowler
Post by Glenn Fowler
the AT&T Software Technology ast alpha 2013-08-29 source release
has been posted to the download site
http://www.research.att.com/sw/download/alpha/
the package names and md5 checksums are
INIT 132e0403af573fa1cb1e202267fedeb8
ast-open 334615fb3a652575106194c281d27b5c
ast-ksh ebcc56d9ab673aaafbb163d6eee1a93c
the md5 sums should match the ones listed on the download page
when using non-default options please qualify "doesn't build"
(even though you provided the cc line which hints at it)
in this case I believe its
"... doesn't build using PACKAGE_OPTIONS=map-libc ..."
which means this or something equivalent
bin/package make PACKAGE_OPTIONS=map-libc
background: map-libc causes the libast build to
#define standardfoo _ast_standardfoo
for all (known) standardfoo syscall names so that -last won't clash with -lc
I will add a map-libc build to the ast build farm to avoid this in the future
build complete
- printf("extern char* fgetcwd(fd, char*, size_t);\n");
+ printf("extern char* fgetcwd(int, char*, size_t);\n");
Thanks... you've beat me by... 45 seconds... :-)

----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Cedric Blancher
2013-08-30 02:03:25 UTC
Permalink
Post by Glenn Fowler
the AT&T Software Technology ast alpha 2013-08-29 source release
has been posted to the download site
http://www.research.att.com/sw/download/alpha/
the package names and md5 checksums are
INIT 132e0403af573fa1cb1e202267fedeb8
ast-open 334615fb3a652575106194c281d27b5c
ast-ksh ebcc56d9ab673aaafbb163d6eee1a93c
the md5 sums should match the ones listed on the download page
when using non-default options please qualify "doesn't build"
(even though you provided the cc line which hints at it)
in this case I believe its
"... doesn't build using PACKAGE_OPTIONS=map-libc ..."
which means this or something equivalent
bin/package make PACKAGE_OPTIONS=map-libc
Wait.

Isn't PACKAGE_OPTIONS=map-libc enabled by default when no other
options are given? It doesn't make sense to build without it, at least
on Linux.

Ced
--
Cedric Blancher <cedric.blancher at gmail.com>
Institute Pasteur
Glenn Fowler
2013-08-30 02:26:58 UTC
Permalink
Post by Cedric Blancher
Post by Glenn Fowler
the AT&T Software Technology ast alpha 2013-08-29 source release
has been posted to the download site
http://www.research.att.com/sw/download/alpha/
the package names and md5 checksums are
INIT 132e0403af573fa1cb1e202267fedeb8
ast-open 334615fb3a652575106194c281d27b5c
ast-ksh ebcc56d9ab673aaafbb163d6eee1a93c
the md5 sums should match the ones listed on the download page
when using non-default options please qualify "doesn't build"
(even though you provided the cc line which hints at it)
in this case I believe its
"... doesn't build using PACKAGE_OPTIONS=map-libc ..."
which means this or something equivalent
bin/package make PACKAGE_OPTIONS=map-libc
Wait.
Isn't PACKAGE_OPTIONS=map-libc enabled by default when no other
options are given? It doesn't make sense to build without it, at least
on Linux.
right now its not on by default anywhere
however it looks like its a losing battle to expect symbols from a user lib
to override those symbols referenced inside a system library
I believe that malloc & friends are the only ones that will survive in the end

for now it will stay this way
but probably within the next few months map-libc will be the default except for malloc
so ast malloc will be used everywhere
and we'll have a similar option that will map malloc => _ast_malloc
Loading...