Re: buildworld with clang breaks because no cc

2012-11-26 Thread Beeblebrox
Some strange errors continue - I'm not complaining, just informing:
/asp/src/release  # make release OR # make cdrom etc.. breaks at
kernel.txz:
=== zlib (install)
install -o root -g wheel -m 555   zlib.ko
//usr/obj/asp/src/release/dist/kernel/boot/kernel
kldxref //usr/obj/asp/src/release/dist/kernel/boot/kernel
1 error
*** [kernel.txz] Error code 2

If I remove in /etc/make.conf the call to buildflags.conf and just have in
make.conf:
CC=clang
CXX=clang++
CPP=clang-cpp
Then it works without any problems. My buildflags.conf as before only has:
/asp/src | /asp/src/* | /usr/src | /usr/src/*{
CC= clang
CPP=clang-cpp
CXX=clang++
#   USE_CCACHE
#   USE_CCACHE_CPP2
#   USE_DISTCC
THREADS=6
NO_CLEAN
}
/asp/ports | /asp/ports/*{ stuff...
Regards.



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/buildworld-with-clang-breaks-because-no-cc-tp5763472p5764269.html
Sent from the freebsd-stable mailing list archive at Nabble.com.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-26 Thread Dimitry Andric

On 2012-11-26 12:11, Beeblebrox wrote:

Some strange errors continue - I'm not complaining, just informing:
/asp/src/release  # make release OR # make cdrom etc.. breaks at
kernel.txz:
=== zlib (install)
install -o root -g wheel -m 555   zlib.ko
//usr/obj/asp/src/release/dist/kernel/boot/kernel
kldxref //usr/obj/asp/src/release/dist/kernel/boot/kernel
1 error
*** [kernel.txz] Error code 2


As said earlier, since you seem to be doing multithreaded builds, the
actual error is obscured here.  It will have occurred some time before
the part of the log you posted.

Can you upload the full log somewhere?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-26 Thread Beeblebrox
Dimitry Andric-4 wrote
 As said earlier, since you seem to be doing multithreaded builds, the
 actual error is obscured here.  It will have occurred some time before
 the part of the log you posted.

Thanks for your help Dimitry. 
I commented out THREADS = 6 in buildflags.conf and re-ran make release.
The build completed without any error - so it was just the threaded make
that was causing the relase problem.
Regards.



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/buildworld-with-clang-breaks-because-no-cc-tp5763472p5764283.html
Sent from the freebsd-stable mailing list archive at Nabble.com.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-25 Thread Jakub Lach
I have been using 

WITH_CLANG_IS_CC=true
WITHOUT_GCC=true

on stable almost since switching to clang build 
system without any build problems whatsoever.



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/buildworld-with-clang-breaks-because-no-cc-tp5763472p5764013.html
Sent from the freebsd-stable mailing list archive at Nabble.com.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-24 Thread Dimitry Andric

On 2012-11-23 12:37, Beeblebrox wrote:

I am doing a buildworld with clang on amd64 9.1-PRERELEASE #2 r242867.
In /etc/src.conf I have WITHOUT_GCC= yes. Compile progresses up to below
then breaks:

...

lint: cannot exec /usr/obj/asp/src/tmp/usr/bin/cc: No such file or directory


Currently, you cannot use WITHOUT_GCC without also setting
WITH_CLANG_IS_CC.  Some programs, like lint, are still hardcoded to run
'cc' for their processing, so if there is no 'cc' executable during the
world stage, your build will fail.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-24 Thread Dimitry Andric

On 2012-11-23 13:38, Beeblebrox wrote:

Looks like I should have placed these in my /etc/src.conf:
WITH_CLANG= yes


This is not strictly necessary, WITH_CLANG is already enabled by
default.



WITH_CLANG_EXTRAS= yes


In most cases, you will not need the llvm/clang extras, and they will
add some build time.



WITH_CLANG_IS_CC= yes


If you want to use WITHOUT_GCC, as you mentioned in your first post, you
will indeed need this setting.



I don't believe I will need anything under /usr/src/tools. How can I disable
that in /etc/src.conf? The man page does not have that info.


You cannot disable them, some of the tools under there are needed for
buildworld.  Others are just nice to have for specific jobs, like
cleaning up old files, or regression tests.

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-24 Thread Dimitry Andric

On 2012-11-23 14:45, Beeblebrox wrote:

I am now stuck with trying to make this work. I am doing buildworld with
clang and ccache enabled.


If you want to use clang in combination with ccache, you must at least
set CCACHE_CPP2 to make it work.  If you experience any issues with this
setup, always try disabling ccache first, to see if the issues go away.
In most cases, disabling ccache fixes the problems.



1. I have to keep re-starting buildworld at different points of break. When
re-started the build continues past the last break-point and goes on to
break somewhere else.
2. This continues until build gets to === usr.bin/ypwhich (all) and cannot
continue past the error.


As in your first post, you are most likely doing make -j X buildworld,
and this can obscure the actual error(s), which occur long before the
ypwhich message.  You should save the entire log, and search backwards
from the end for the actual error.  If you can't find it, post the full
log somewhere off-list.



3. I disable ccache in /usr/local/etc/buildflags.conf and re-start the
build. Progresses upto:
sh /asp/src/tools/install.sh -s -o root -g wheel -m 444 libz.so.6
/usr/obj/asp/src/lib32/usr/lib32
ln -fs libz.so.6 /usr/obj/asp/src/lib32/usr/lib32/libz.so

However, examining the contents after build-break of
/usr/obj/asp/src/lib32/usr/lib32/ shows libz.so.6 and its linked alias
libz.so.
I am not able to move any further without help because I cannot figure out
where the problem may be.


This looks like there is a problem building the 32-bit compat libraries.
What are your exact make.conf and src.conf settings?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-24 Thread Dimitry Andric

On 2012-11-23 15:14, Beeblebrox wrote:

Thanks for the suggestion. Build progressed a little further then had other
problem:

=== gnu/lib/libstdc++ (all)
building shared library libstdc++.so.6
/usr/obj/asp/src/tmp/usr/bin/ld: warning: creating a DT_TEXTREL in a shared
object.


I am not sure what causes this.  Maybe strange CFLAGS in make.conf?  Or
is this still with ccache?



clang: error: linker command failed with exit code 1 (use -v to see
invocation)
*** [libstdc++.so.6] Error code 1
Stop in /asp/src/gnu/lib/libstdc++.
*** [all] Error code 1
Stop in /asp/src/gnu/lib.
*** [gnu/lib__L] Error code 1

Why is it building gcc4.2 ??


This is not gcc, it is libstdc++.  Currently, there is no way to disable
it, as many applications will still use it.  After libc++ has matured
enough, it can probably be moved to a compat port, but that will
certainly not happen in the 9.x series. :)



Should I not be using WITH_CLANG_IS_CC= yes ?
Bummer...


This setting should work just fine.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-24 Thread Dimitry Andric

On 2012-11-23 23:03, Beeblebrox wrote:

I went ahead and hacked gnu/lib/Makefile and changed to:

if ${MK_CXX} != no
#SUBDIR+= libstdc++ libsupc++
.endif


Don't do that, it will not work.  Parts of the system need GNU libstdc++
and libsupc++.



I then restarted buildworld. Next stop, new error:

clang -m32 -march=k8 -DCOMPAT_32BIT  -isystem
/usr/obj/asp/src/lib32/usr/include/  -L/usr/obj/asp/src/lib32/usr/lib32
-B/usr/obj/asp/src/lib32/usr/lib32 -fpic -DPIC  -O2 -pipe -DNDEBUG
-std=gnu99 -Qunused-arguments -fstack-protector -Wno-pointer-sign
-Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare
-Wno-unused-value -Wno-parentheses-equality -Wno-unused-function
-Wno-conversion -Wno-switch -Wno-switch-enum -Wno-parentheses -c
/asp/src/lib/libncp/ipx.c -o ipx.So
building shared library libncp.so.4
/usr/obj/asp/src/tmp/usr/bin/ld: warning: creating a DT_TEXTREL in a shared
object.


This is still the same problem as before, some of your object files were
not created correctly.  Most likely, there is something wrong with your
make.conf and/or src.conf, please post them.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-24 Thread Beeblebrox
Hi Dimitry,
I have been working at this for 6 hours today (I don't want to tell you how
long I was at it yesterday). Thanks for your input / suggestions. I will try
to answer all of them, please let me know if I forget something.

1. Fist the good news: I have just now finished buildworld with setting
WITHOUT_GCC= yes and has WITH_CLANG= yes  WITH_CLANG_EXTRAS= yes 
WITH_CLANG_IS_CC= yes

2. First I tried to buildworld after disabling WITHOUT_GCC.
* First I had ccache and threads enabled.  The build progressed with the
exact same errors as above (many start-stop-restarts) then finally broke.
* I disabled ccache and threads, also removed /usr/obj/src. I restarted the
build, it broke at (as above):
building shared library libstdc++.so.6

3. Then I remembered that I had seen some ccache stuff flash by, despite the
fact I had disabled it. So in /etc/make.conf I disabled the call to
/usr/local/etc/buildflags.conf, cleaned /usr/obj/src and restarted the build
(no ccache, no threads, gcc not disabled). This time it completd buildworld.
What?? Why is buildflags.conf killing things?

4. Then I remembered something else: some of the source code seems to be
hard-coded as /usr/src and not as {path} (my ports, source, ccache,
distfiles are all on zpool/asp - I find it easier). I had observed in the
past that that some source code which fails to compile will compile if I cd
tu /ysr/src and re-run buildworld. The problem was that in
/usr/local/etc/buildflags.conf I had for source:
/asp/src | /asp/src/*{  which I changed to:
/asp/src | /asp/src/* | /usr/src | /usr/src/*{
The build stopped several times, I re-saterted and later disabled threads
and ccache. That is when buildworld finished successfully. Fianl
/etc/src.conf settings:
WITHOUT_GCC= yes
WITH_CLANG= yes
WITH_CLANG_EXTRAS= yes
WITH_CLANG_IS_CC= yes

5.  You should save the entire log
I don't know how to do this.

6. buildkernel also does not like ccache!!

Thank you for your input and help...





--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/buildworld-with-clang-breaks-because-no-cc-tp5763472p5763756.html
Sent from the freebsd-stable mailing list archive at Nabble.com.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-24 Thread Beeblebrox
I just finished installkernel + installworld - I'm up and running with world
that has WITHOUT_GCC= yes!!

Just for reference: I ran into this chronic error at installworld:
(to paraphrase) can't find btx/btx loader something...
I keep a separate section in my notes for chronic  recurring errors. So the
fix is:
cd /usr/src/sys/boot
# make
cd /usr/src
# make installworld

Thanks everyone...
[SOLVED]



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/buildworld-with-clang-breaks-because-no-cc-tp5763472p5763761.html
Sent from the freebsd-stable mailing list archive at Nabble.com.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-24 Thread Matthew Seaman
On 24/11/2012 13:18, Beeblebrox wrote:
 5.  You should save the entire log
 I don't know how to do this.

See script(1)

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Re: buildworld with clang breaks because no cc

2012-11-24 Thread Beeblebrox
@ Dr. Seaman:
Ahh yes, forgot about script. Thanks.

@ Chuck
So I hear you like spam. Hipster Monty Python talked about spam before it
was cool: http://www.youtube.com/watch?v=anwy2MPT5RE

Bonus: The Lumberjack Song is an alternative to the spam song:
http://www.youtube.com/watch?feature=endscreenNR=1v=xToPCaNxaow





--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/buildworld-with-clang-breaks-because-no-cc-tp5763472p5763771.html
Sent from the freebsd-stable mailing list archive at Nabble.com.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-24 Thread Konstantin Belousov
On Sat, Nov 24, 2012 at 01:55:50PM +0100, Dimitry Andric wrote:
 On 2012-11-23 15:14, Beeblebrox wrote:
  Thanks for the suggestion. Build progressed a little further then had other
  problem:
 
  === gnu/lib/libstdc++ (all)
  building shared library libstdc++.so.6
  /usr/obj/asp/src/tmp/usr/bin/ld: warning: creating a DT_TEXTREL in a shared
  object.
 
 I am not sure what causes this.  Maybe strange CFLAGS in make.conf?  Or
 is this still with ccache?
There are two usual causes for this error:
1. missed -fPIC when compiling some .c file
2. wrong assembler which uses non-pic safe relocations.

I very much doubt that #2 is the cause.


pgpglk5Ytt4ru.pgp
Description: PGP signature


Re: buildworld with clang breaks because no cc

2012-11-23 Thread Beeblebrox
I hacked it with 
cd /usr/obj/asp/src/tmp/usr/bin/
# ln -s clang cc

BUT NOW I HAVE:
=== lib/libz (install)
sh /asp/src/tools/install.sh -C -o root -g wheel -m 444   libz.a
/usr/obj/asp/src/lib32/usr/lib32
sh /asp/src/tools/install.sh -C -o root -g wheel -m 444 
/asp/src/lib/libz/zconf.h /asp/src/lib/libz/zlib.h
/usr/obj/asp/src/lib32/usr/include
sh /asp/src/tools/install.sh -s -o root -g wheel -m 444 libz.so.6
/usr/obj/asp/src/lib32/usr/lib32
ln -fs libz.so.6 /usr/obj/asp/src/lib32/usr/lib32/libz.so
1 error
*** [libraries] Error code 2
1 error
*** [build32] Error code 2
1 error
*** [buildworld] Error code 2



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/buildworld-with-clang-breaks-because-no-cc-tp5763472p5763475.html
Sent from the freebsd-stable mailing list archive at Nabble.com.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-23 Thread Beeblebrox
I am now stuck with trying to make this work. I am doing buildworld with
clang and ccache enabled.

1. I have to keep re-starting buildworld at different points of break. When
re-started the build continues past the last break-point and goes on to
break somewhere else.
2. This continues until build gets to === usr.bin/ypwhich (all) and cannot
continue past the error.
3. I disable ccache in /usr/local/etc/buildflags.conf and re-start the
build. Progresses upto:
sh /asp/src/tools/install.sh -s -o root -g wheel -m 444 libz.so.6
/usr/obj/asp/src/lib32/usr/lib32
ln -fs libz.so.6 /usr/obj/asp/src/lib32/usr/lib32/libz.so

However, examining the contents after build-break of
/usr/obj/asp/src/lib32/usr/lib32/ shows libz.so.6 and its linked alias
libz.so.
I am not able to move any further without help because I cannot figure out
where the problem may be.

Thanks for any help.



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/buildworld-with-clang-breaks-because-no-cc-tp5763472p5763503.html
Sent from the freebsd-stable mailing list archive at Nabble.com.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-23 Thread Volodymyr Kostyrko

23.11.2012 15:45, Beeblebrox:

I am now stuck with trying to make this work. I am doing buildworld with
clang and ccache enabled.

1. I have to keep re-starting buildworld at different points of break. When
re-started the build continues past the last break-point and goes on to
break somewhere else.
2. This continues until build gets to === usr.bin/ypwhich (all) and cannot
continue past the error.
3. I disable ccache in /usr/local/etc/buildflags.conf and re-start the
build. Progresses upto:
sh /asp/src/tools/install.sh -s -o root -g wheel -m 444 libz.so.6
/usr/obj/asp/src/lib32/usr/lib32
ln -fs libz.so.6 /usr/obj/asp/src/lib32/usr/lib32/libz.so

However, examining the contents after build-break of
/usr/obj/asp/src/lib32/usr/lib32/ shows libz.so.6 and its linked alias
libz.so.
I am not able to move any further without help because I cannot figure out
where the problem may be.

Thanks for any help.


Try running make buildworld without -j.

--
Sphinx of black quartz, judge my vow.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-23 Thread Beeblebrox
Thanks for the suggestion. Build progressed a little further then had other
problem:

=== gnu/lib/libstdc++ (all)
building shared library libstdc++.so.6
/usr/obj/asp/src/tmp/usr/bin/ld: warning: creating a DT_TEXTREL in a shared
object.
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
*** [libstdc++.so.6] Error code 1
Stop in /asp/src/gnu/lib/libstdc++.
*** [all] Error code 1
Stop in /asp/src/gnu/lib.
*** [gnu/lib__L] Error code 1

Why is it building gcc4.2 ?? Should I not be using WITH_CLANG_IS_CC= yes ?
Bummer...



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/buildworld-with-clang-breaks-because-no-cc-tp5763472p5763506.html
Sent from the freebsd-stable mailing list archive at Nabble.com.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-23 Thread Volodymyr Kostyrko

23.11.2012 16:14, Beeblebrox:

Thanks for the suggestion. Build progressed a little further then had other
problem:

=== gnu/lib/libstdc++ (all)
building shared library libstdc++.so.6
/usr/obj/asp/src/tmp/usr/bin/ld: warning: creating a DT_TEXTREL in a shared
object.
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
*** [libstdc++.so.6] Error code 1
Stop in /asp/src/gnu/lib/libstdc++.
*** [all] Error code 1
Stop in /asp/src/gnu/lib.
*** [gnu/lib__L] Error code 1

Why is it building gcc4.2 ?? Should I not be using WITH_CLANG_IS_CC= yes ?
Bummer...


I'd rather say you should recheck/post your relevant make.conf / 
src.conf options. And WITHOUT_GCC is not right thing to do for now, gcc 
is still needed for a number of ports.


--
Sphinx of black quartz, judge my vow.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-23 Thread Beeblebrox
OK, I disabled -j and ccache in the config file, deleted the entire previous
build and re-started a plain old run of buildworld.  Compile stopped at the
exact same place as above (libstdc++)

I did not remove WITH_CLANG_IS_CC=yes  from /etc/src.conf.
For ports building I have and use gcc-46, so I do not see any point of
building gcc-42 AND clang both.

I'm preparing to file a bug report unless anyone has suggestions.

Thanks.



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/buildworld-with-clang-breaks-because-no-cc-tp5763472p5763579.html
Sent from the freebsd-stable mailing list archive at Nabble.com.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-23 Thread Beeblebrox
I went ahead and hacked gnu/lib/Makefile and changed to:

if ${MK_CXX} != no
#SUBDIR+= libstdc++ libsupc++
.endif

I then restarted buildworld. Next stop, new error:

clang -m32 -march=k8 -DCOMPAT_32BIT  -isystem
/usr/obj/asp/src/lib32/usr/include/  -L/usr/obj/asp/src/lib32/usr/lib32 
-B/usr/obj/asp/src/lib32/usr/lib32 -fpic -DPIC  -O2 -pipe -DNDEBUG
-std=gnu99 -Qunused-arguments -fstack-protector -Wno-pointer-sign
-Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare
-Wno-unused-value -Wno-parentheses-equality -Wno-unused-function
-Wno-conversion -Wno-switch -Wno-switch-enum -Wno-parentheses -c
/asp/src/lib/libncp/ipx.c -o ipx.So
building shared library libncp.so.4
/usr/obj/asp/src/tmp/usr/bin/ld: warning: creating a DT_TEXTREL in a shared
object.
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

ls /usr/obj/asp/src/lib/libncp shows libncp.so.4 and symlink libncp.so




--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/buildworld-with-clang-breaks-because-no-cc-tp5763472p5763657.html
Sent from the freebsd-stable mailing list archive at Nabble.com.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-23 Thread Chuck Burns

On 11/23/2012 4:03 PM, Beeblebrox wrote:

I went ahead and hacked gnu/lib/Makefile and changed to:

if ${MK_CXX} != no
#SUBDIR+= libstdc++ libsupc++
.endif

I then restarted buildworld. Next stop, new error:

clang -m32 -march=k8 -DCOMPAT_32BIT  -isystem
/usr/obj/asp/src/lib32/usr/include/  -L/usr/obj/asp/src/lib32/usr/lib32
-B/usr/obj/asp/src/lib32/usr/lib32 -fpic -DPIC  -O2 -pipe -DNDEBUG
-std=gnu99 -Qunused-arguments -fstack-protector -Wno-pointer-sign
-Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare
-Wno-unused-value -Wno-parentheses-equality -Wno-unused-function
-Wno-conversion -Wno-switch -Wno-switch-enum -Wno-parentheses -c
/asp/src/lib/libncp/ipx.c -o ipx.So
building shared library libncp.so.4
/usr/obj/asp/src/tmp/usr/bin/ld: warning: creating a DT_TEXTREL in a shared
object.
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

ls /usr/obj/asp/src/lib/libncp shows libncp.so.4 and symlink libncp.so




--

You've already been told that WITHOUT_GCC is currently unsupported. 
Unsupported means.. we won't help you fix it when it breaks.  Either 
take that option out.. or quit bugging us about it.  The REASON it is 
unsupported is because it doesn't work.  If you want to fix it, have at 
it, but no need to keep spamming the mailing list hoping to get help 
doing something that is unsupported.


Chuck
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: buildworld with clang breaks because no cc

2012-11-23 Thread Beeblebrox
Thanks for your answer.

 You've already been told that WITHOUT_GCC is currently unsupported. 
No, I have not been informed of that. If you are referring to this by V
Kostryko:

 And WITHOUT_GCC is not right thing to do for now, gcc is still needed for
 a number of ports.
I understood his message to mean enable gcc because you will need it for
ports

 no need to keep spamming the mailing list hoping to get help doing
 something that is unsupported.
I am not spamming the ML, and the information that this setup is unsupported
is a sufficient answer.

Regards.
[CLOSED]



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/buildworld-with-clang-breaks-because-no-cc-tp5763472p5763720.html
Sent from the freebsd-stable mailing list archive at Nabble.com.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org