Compiling with --enable-assembler fails

Bug #253310 reported by Lenz Grimmer
2
Affects Status Importance Assigned to Milestone
Drizzle
Fix Released
Undecided
Monty Taylor

Bug Description

This happened with revision 236 of the code base, when passing "--enable-assembler" to the configure script:

make[1]: Entering directory `/space/my/bzr/drizzle/include'
/bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=link gcc -std=gnu99 -O2 -ggdb3 -DUNIV_LINUX -W -Wall -Wextra -pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-strict-aliasing -Werror -o comp_err comp_err.o ../mysys/libmysyslt.la ../mystrings/libmystringslt.la -lz -lrt -lcrypt -lnsl -lm -lpthread
gcc -std=gnu99 -O2 -ggdb3 -DUNIV_LINUX -W -Wall -Wextra -pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-strict-aliasing -Werror -o comp_err comp_err.o ../mysys/.libs/libmysyslt.a ../mystrings/.libs/libmystringslt.a -lz -lrt -lcrypt -lnsl -lm -lpthread
../mystrings/.libs/libmystringslt.a(longlong2str_asm.o): In function `int64_t2str':
/home/lenz/my/bzr/drizzle/mystrings/longlong2str_asm.c:31: undefined reference to `int64_t2str_with_dig_vector'
../mystrings/.libs/libmystringslt.a(llstr.o): In function `ullstr':
/home/lenz/my/bzr/drizzle/mystrings/llstr.c:38: undefined reference to `int64_t10_to_str'
../mystrings/.libs/libmystringslt.a(llstr.o): In function `llstr':
/home/lenz/my/bzr/drizzle/mystrings/llstr.c:32: undefined reference to `int64_t10_to_str'
collect2: ld returned 1 exit status
make[1]: *** [comp_err] Error 1

Related branches

Revision history for this message
Monty Taylor (mordred) wrote :

I can't reproduce this. --enable-assembler works fine on my box. Can you try again? Also, can you tell me what system you are on?

Revision history for this message
Lenz Grimmer (lenzgr) wrote :

Still happens on r264 for me:

Making all in mystrings
make[2]: Entering directory `/space/my/bzr/drizzle-build/mystrings'
/bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -ggdb3 -g -O2 -DUNIV_LINUX -W -Wall -Wextra -pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-strict-aliasing -Werror -MT longlong2str_asm.lo -MD -MP -MF .deps/longlong2str_asm.Tpo -c -o longlong2str_asm.lo longlong2str_asm.c
 gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -ggdb3 -g -O2 -DUNIV_LINUX -W -Wall -Wextra -pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-strict-aliasing -Werror -MT longlong2str_asm.lo -MD -MP -MF .deps/longlong2str_asm.Tpo -c longlong2str_asm.c -fPIC -DPIC -o .libs/longlong2str_asm.o
longlong2str_asm.c:23:23: error: my_global.h: No such file or directory

This is openSUSE 11.0/x86. Attached please find the config.log for this build run.

Monty Taylor (mordred)
Changed in drizzle:
status: New → Fix Committed
Revision history for this message
Lenz Grimmer (lenzgr) wrote :

Today I updated to revision 276 from http://bazaar.launchpad.net/~mordred/drizzle/bug253310/ and the compile proceeds a bit further. Thanks! However, I now run into another compile error:

make[2]: Entering directory `/space/my/bzr/drizzle-bug253310/extra'
/bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=link gcc -std=gnu99 -ggdb3 -g -O2 -DUNIV_LINUX -W -Wall -Wextra -pedantic -Wundef-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-strict-aliasing -Werror -o my_print_defaults my_print_defaults.o ../mysys/libmysys.la ../mystrings/libmystringslt.la -lrt -lcrypt -lnsl -lm -lpthread
gcc -std=gnu99 -ggdb3 -g -O2 -DUNIV_LINUX -W -Wall -Wextra -pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-strict-aliasing -Werror -o my_print_defaults my_print_defaults.o ../mysys/.libs/libmysys.a ../mystrings/.libs/libmystringslt.a -lrt -lcrypt -lnsl -lm -lpthread
../mystrings/.libs/libmystringslt.a(llstr.o): In function `ullstr':
/home/lenz/my/bzr/drizzle-bug253310/mystrings/llstr.c:37: undefined reference to `int64_t10_to_str'
../mystrings/.libs/libmystringslt.a(llstr.o): In function `llstr':
/home/lenz/my/bzr/drizzle-bug253310/mystrings/llstr.c:31: undefined reference to `int64_t10_to_str'
collect2: ld returned 1 exit status
make[2]: *** [my_print_defaults] Error 1

Revision history for this message
Monty Taylor (mordred) wrote : Re: [Bug 253310] Re: Compiling with --enable-assembler fails

LenZ wrote:
> Today I updated to revision 276 from
> http://bazaar.launchpad.net/~mordred/drizzle/bug253310/ and the compile
> proceeds a bit further. Thanks! However, I now run into another compile
> error:

Awesome! We're getting closer at least..

> make[2]: Entering directory `/space/my/bzr/drizzle-bug253310/extra'
> /bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=link gcc -std=gnu99 -ggdb3 -g -O2 -DUNIV_LINUX -W -Wall -Wextra -pedantic -Wundef-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-strict-aliasing -Werror -o my_print_defaults my_print_defaults.o ../mysys/libmysys.la ../mystrings/libmystringslt.la -lrt -lcrypt -lnsl -lm -lpthread
> gcc -std=gnu99 -ggdb3 -g -O2 -DUNIV_LINUX -W -Wall -Wextra -pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-strict-aliasing -Werror -o my_print_defaults my_print_defaults.o ../mysys/.libs/libmysys.a ../mystrings/.libs/libmystringslt.a -lrt -lcrypt -lnsl -lm -lpthread
> ../mystrings/.libs/libmystringslt.a(llstr.o): In function `ullstr':
> /home/lenz/my/bzr/drizzle-bug253310/mystrings/llstr.c:37: undefined reference to `int64_t10_to_str'
> ../mystrings/.libs/libmystringslt.a(llstr.o): In function `llstr':
> /home/lenz/my/bzr/drizzle-bug253310/mystrings/llstr.c:31: undefined reference to `int64_t10_to_str'
> collect2: ld returned 1 exit status
> make[2]: *** [my_print_defaults] Error 1
>

Monty Taylor (mordred)
Changed in drizzle:
assignee: nobody → mordred
status: Fix Committed → Fix Released
Revision history for this message
Lenz Grimmer (lenzgr) wrote :

The same error still occurs on revision 266 - reopening this report.

gcc -std=gnu99 -ggdb3 -g -O2 -DUNIV_LINUX -W -Wall -Wextra -pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-strict-aliasing -Werror -o my_print_defaults my_print_defaults.o ../mysys/.libs/libmysys.a ../mystrings/.libs/libmystringslt.a -lrt -lcrypt -lnsl -lm -lpthread
../mystrings/.libs/libmystringslt.a(llstr.o): In function `ullstr':
/home/lenz/my/bzr/drizzle-bug253310/mystrings/llstr.c:37: undefined reference to `int64_t10_to_str'
../mystrings/.libs/libmystringslt.a(llstr.o): In function `llstr':
/home/lenz/my/bzr/drizzle-bug253310/mystrings/llstr.c:31: undefined reference to `int64_t10_to_str'

lenz@thebe:~/my/bzr/drizzle-bug253310> bzr revno
266

Changed in drizzle:
status: Fix Released → New
Revision history for this message
Monty Taylor (mordred) wrote :

LenZ wrote:
> The same error still occurs on revision 266 - reopening this report.
>
> gcc -std=gnu99 -ggdb3 -g -O2 -DUNIV_LINUX -W -Wall -Wextra -pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-strict-aliasing -Werror -o my_print_defaults my_print_defaults.o ../mysys/.libs/libmysys.a ../mystrings/.libs/libmystringslt.a -lrt -lcrypt -lnsl -lm -lpthread
> ../mystrings/.libs/libmystringslt.a(llstr.o): In function `ullstr':
> /home/lenz/my/bzr/drizzle-bug253310/mystrings/llstr.c:37: undefined reference to `int64_t10_to_str'
> ../mystrings/.libs/libmystringslt.a(llstr.o): In function `llstr':
> /home/lenz/my/bzr/drizzle-bug253310/mystrings/llstr.c:31: undefined reference to `int64_t10_to_str'
>
> lenz@thebe:~/my/bzr/drizzle-bug253310> bzr revno
> 266

Well poo!

k. Will look in to it again...

Revision history for this message
Lenz Grimmer (lenzgr) wrote :

I just pulled revision 299, and now it does not happen anymore. So I guess it's fixed now :)

Revision history for this message
Monty Taylor (mordred) wrote :

Fixed this the fun way ... assembler code has been deleted.

Changed in drizzle:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.