Re: Clang now builds world and kernel, on i386 and amd64

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Olivier Smedts
Date: Tuesday, September 28, 2010 - 12:49 am

2010/9/27 Olivier Smedts <olivier@gid0.org>:

So, with "-march=athlon", buildworld is ok.

With "-march=athlon -msse" or "-march=athlon-xp" or "-march=native",
buildworld fails here :
clang -c -O2 -pipe -march=athlon -msse -fomit-frame-pointer -DIN_GCC
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -DHAVE_GTHR_DEFAULT
-I/usr/src/gnu/lib/libgcc/../../../contrib/gcclibs/include
-I/usr/src/gnu/lib/libgcc/../../../contrib/gcc/config
-I/usr/src/gnu/lib/libgcc/../../../contrib/gcc -I.
-I/usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools -std=gnu99
-fvisibility=hidden -DHIDE_EXPORTS -fPIC -fexceptions -D__GLIBC__=3
-DElfW=__ElfN -o unwind-dw2.o
/usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c
Assertion failed: (!spillIs.empty() && "No spill intervals?"),
function assignRegOrStackSlotAtInterval, file
/usr/src/lib/clang/libllvmcodegen/../../../contrib/llvm/lib/CodeGen/RegAllocLinearScan.cpp,
line 1287.
Stack dump:
0.      Program arguments: /usr/obj/usr/src/tmp/usr/bin/clang -cc1
-triple i386-undermydesk-freebsd9.0 -S -disable-free -main-file-name
unwind-dw2.c -pic-level 2 -mconstructor-aliases -target-cpu athlon
-target-feature +sse -resource-dir
/usr/obj/usr/src/tmp/usr/lib/clang/2.8 -D IN_GCC -D IN_LIBGCC2 -D
__GCC_FLOAT_NOT_NEEDED -D HAVE_GTHR_DEFAULT -D HIDE_EXPORTS -D
__GLIBC__=3 -D ElfW=__ElfN -I
/usr/src/gnu/lib/libgcc/../../../contrib/gcclibs/include -I
/usr/src/gnu/lib/libgcc/../../../contrib/gcc/config -I
/usr/src/gnu/lib/libgcc/../../../contrib/gcc -I . -I
/usr/src/gnu/lib/libgcc/../../usr.bin/cc/cc_tools -O2 -std=gnu99
-ferror-limit 19 -fmessage-length 118 -fvisibility hidden -fexceptions
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/cc-CfyzYr.s -x c
/usr/src/gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Linear Scan Register Allocator' on function
'@_Unwind_GetGR'
clang: error: clang frontend command failed due to signal 6 (use -v to
see invocation)
*** Error code 250
Stop in /usr/src/gnu/lib/libgcc.

But if I
# cd /usr/src/gnu/lib/libgcc
# make
then unwind-dw2.c compiles fine.

So the problem seems to be with clang
(/usr/obj/usr/src/tmp/usr/bin/clang) when compiled with SSE on Athlon.
Can't try with AMD k8 or Intel CPUs, my core2 follows -STABLE.


-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: olivier@gid0.org        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Clang now builds world and kernel, on i386 and amd64, Dimitry Andric, (Tue Sep 21, 11:42 pm)
Re: Clang now builds world and kernel, on i386 and amd64, Pyun YongHyeon, (Wed Sep 22, 9:50 am)
Re: Clang now builds world and kernel, on i386 and amd64, Roman Divacky, (Wed Sep 22, 11:51 pm)
Re: Clang now builds world and kernel, on i386 and amd64, Dimitry Andric, (Thu Sep 23, 4:15 am)
Re: Clang now builds world and kernel, on i386 and amd64, Dimitry Andric, (Thu Sep 23, 4:21 am)
Re: Clang now builds world and kernel, on i386 and amd64, Dimitry Andric, (Thu Sep 23, 7:45 am)
Re: Clang now builds world and kernel, on i386 and amd64, Dimitry Andric, (Fri Sep 24, 4:47 am)
Re: Clang now builds world and kernel, on i386 and amd64, Dimitry Andric, (Fri Sep 24, 7:34 am)
Re: Clang cross builds world, Mark Tinguely, (Fri Sep 24, 6:13 pm)
Re: Clang cross builds world, Dimitry Andric, (Sat Sep 25, 5:04 am)
Re: Clang now builds world and kernel, on i386 and amd64, Paul B Mahol, (Sat Sep 25, 12:16 pm)
Re: Clang now builds world and kernel, on i386 and amd64, Dimitry Andric, (Sat Sep 25, 1:23 pm)
Re: Clang now builds world and kernel, on i386 and amd64, Roman Divacky, (Sat Sep 25, 1:28 pm)
Re: Clang now builds world and kernel, on i386 and amd64, Erik Trulsson, (Sun Sep 26, 5:42 am)
Re: Clang now builds world and kernel, on i386 and amd64, Olivier Smedts, (Mon Sep 27, 12:32 am)
Re: Clang now builds world and kernel, on i386 and amd64, Olivier Smedts, (Mon Sep 27, 12:40 am)
Re: Clang now builds world and kernel, on i386 and amd64, Dimitry Andric, (Mon Sep 27, 3:38 am)
Re: Clang now builds world and kernel, on i386 and amd64, Olivier Smedts, (Mon Sep 27, 5:30 am)
Re: Clang now builds world and kernel, on i386 and amd64, Olivier Smedts, (Mon Sep 27, 7:56 am)
Re: Clang now builds world and kernel, on i386 and amd64, Olivier Smedts, (Tue Sep 28, 12:49 am)
Re: Clang now builds world and kernel, on i386 and amd64, Olivier Smedts, (Tue Sep 28, 6:41 am)
Re: Clang now builds world and kernel, on i386 and amd64, Renato Botelho, (Tue Sep 28, 2:07 pm)
Re: Clang now builds world and kernel, on i386 and amd64, Renato Botelho, (Tue Sep 28, 5:02 pm)
Re: Clang now builds world and kernel, on i386 and amd64, Derek Tattersall, (Tue Sep 28, 5:28 pm)
Re: Clang now builds world and kernel, on i386 and amd64, Renato Botelho, (Tue Sep 28, 5:32 pm)
Re: Clang now builds world and kernel, on i386 and amd64, Dimitry Andric, (Tue Sep 28, 11:43 pm)
Re: Clang now builds world and kernel, on i386 and amd64, Garrett Cooper, (Tue Sep 28, 11:58 pm)
Re: Clang now builds world and kernel, on i386 and amd64, Daniel Nebdal, (Wed Sep 29, 1:25 am)
Re: Clang now builds world and kernel, on i386 and amd64, Renato Botelho, (Wed Sep 29, 4:23 am)
Re: Clang now builds world and kernel, on i386 and amd64, Renato Botelho, (Wed Sep 29, 4:25 am)
Re: Clang now builds world and kernel, on i386 and amd64, Renato Botelho, (Wed Sep 29, 4:25 am)
Re: Clang now builds world and kernel, on i386 and amd64, Dimitry Andric, (Wed Sep 29, 4:34 am)
Re: Clang now builds world and kernel, on i386 and amd64, Derek Tattersall, (Wed Sep 29, 4:46 am)
Re: Clang now builds world and kernel, on i386 and amd64, Renato Botelho, (Wed Sep 29, 4:49 am)
Re: Clang now builds world and kernel, on i386 and amd64, Renato Botelho, (Wed Sep 29, 4:52 am)
Re: Clang now builds world and kernel, on i386 and amd64, Derek Tattersall, (Wed Sep 29, 5:13 am)
Re: Clang now builds world and kernel, on i386 and amd64, Renato Botelho, (Wed Sep 29, 5:40 am)
Re: Clang now builds world and kernel, on i386 and amd64, Renato Botelho, (Wed Sep 29, 6:12 am)
Re: Clang now builds world and kernel, on i386 and amd64, Renato Botelho, (Wed Sep 29, 6:31 am)
Re: Clang now builds world and kernel, on i386 and amd64, Roman Divacky, (Wed Sep 29, 7:06 am)
Re: Clang now builds world and kernel, on i386 and amd64, Renato Botelho, (Wed Sep 29, 8:48 am)
Re: Clang now builds world and kernel, on i386 and amd64, Derek Tattersall, (Wed Sep 29, 8:56 am)
Re: Clang now builds world and kernel, on i386 and amd64, Renato Botelho, (Wed Sep 29, 9:33 am)
Re: Clang now builds world and kernel, on i386 and amd64, Roman Divacky, (Wed Sep 29, 10:31 am)
Re: Clang now builds world and kernel, on i386 and amd64, Renato Botelho, (Wed Sep 29, 10:41 am)
Re: Clang now builds world and kernel, on i386 and amd64, Dimitry Andric, (Wed Sep 29, 10:41 am)
Re: Clang now builds world and kernel, on i386 and amd64, Roman Divacky, (Wed Sep 29, 10:44 am)
Fwd: Clang now builds world and kernel, on i386 and amd64, Renato Botelho, (Wed Sep 29, 11:02 am)
Re: Clang now builds world and kernel, on i386 and amd64, Renato Botelho, (Wed Sep 29, 11:22 am)
Re: Clang now builds world and kernel, on i386 and amd64, Dimitry Andric, (Wed Sep 29, 12:35 pm)
Re: Clang now builds world and kernel, on i386 and amd64, Renato Botelho, (Wed Sep 29, 12:47 pm)
Re: Clang now builds world and kernel, on i386 and amd64, Dimitry Andric, (Wed Sep 29, 12:49 pm)
Re: Clang now builds world and kernel, on i386 and amd64, Derek Tattersall, (Wed Sep 29, 5:18 pm)