Re: [請益] ptt 在ubuntu8.10 pmake 出現 warm_un …

看板PttCurrent作者 ( )時間15年前 (2008/11/04 20:04), 編輯推噓2(203)
留言5則, 3人參與, 最新討論串2/2 (看更多)
※ 引述《michaelgod (michaelgod)》之銘言: : 小弟我用ubuntu 8.10 裝ptt bbs 結果在pmake 時候出錯 : 我google 過但是找不道solution : 請板上高手解惑 : thanks~ : % make BBSHOME=/home/bbs all install : all ===> common : all ===> common/bbs : all ===> common/osdep : all ===> common/sys : ccache gcc -g -Os -Wall -pipe -DBBSHOME='"/home/bbs"' -I../../include : -Werror -c daemon.c 這邊不知道為什麼多了一個 -Werror 可能是在 pttbbs.mk 裡 PTT_CFLAGS 最後多加了 如果沒有的話用 grep -R -- -Werror * 找一下是在哪裡加的參數 再沒有的話 check 一下 environment variable $CFLAGS 是不是有東西吧... : cc1: warnings being treated as errors : daemon.c: In function 「daemonize」: : daemon.c:52: 錯誤: 忽略宣告有 warn_unused_result 屬性的 「write」 的回傳值 : *** Error code 1 : Stop. : pmake: stopped in /home/bbs/pttbbs/common/sys : *** Error code 1 : Stop. : pmake: stopped in /home/bbs/pttbbs/common : *** Error code 1 : Stop. : pmake: stopped in /home/bbs/pttbbs -- All this will not be finished in the first 100 days. Nor will it be finished in the first 1,000 days, nor in the life of this Administration, nor even perhaps in our lifetime on this planet. But let us begin. -- John F. Kennedy, Inaugural Address -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.30.54

11/04 23:31, , 1F
8.10 的gcc會自己pass -Werror 進去..QQ
11/04 23:31, 1F

11/05 08:25, , 2F
那是 pmake 用到 bsd.lib.mk 裡面會加的
11/05 08:25, 2F

11/05 12:43, , 3F
Ubuntu 上應該沒有 bsd.lib.mk ?
11/05 12:43, 3F

11/05 12:48, , 4F
這邊有人碰到類似的狀況 http://0rz.tw/c1521 但是他可以關
11/05 12:48, 4F

11/05 12:48, , 5F
掉 -Werror ?
11/05 12:48, 5F
文章代碼(AID): #1943f3tJ (PttCurrent)
文章代碼(AID): #1943f3tJ (PttCurrent)